Interface IFFrameUseFMap

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.dispose.Disposable, IFFrame, org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable, org.gvsig.tools.observer.Observable, org.gvsig.tools.persistence.Persistent
All Known Implementing Classes:
FFrameOverView, FFrameView

public interface IFFrameUseFMap extends IFFrame
FFrame which uses a MapContext object, usually because their content is dependent on the MapContext properties
  • Field Details

  • Method Details

    • getATMap

      AffineTransform getATMap()
    • setATMap

      void setATMap(AffineTransform at)
    • getMapContext

      org.gvsig.fmap.mapcontext.MapContext getMapContext()
      Returns the MapContext contained in this FFrameView, which is usually a clone of the associated View. This MapContext may be synchronized with the View one, depending on the scale type that has been set (see {getTypeScale().
      Returns:
      The mapContext object
    • refresh

      void refresh()
      Invalidates the FFrameView cache, which will cause the FFrame to be repainted on the next drawing cycle.
    • setNewEnvelope

      void setNewEnvelope(org.gvsig.fmap.geom.primitive.Envelope r)
      Sets the extent of the MapContext contained in this FFrameView. It will be ignored if getScaleType() equals to IFFrameUseFMap.SCALE_TYPE.FIXED_SCALE or IFFrameUseFMap.SCALE_TYPE.FIXED_EXTENT
      Parameters:
      r - Envelope to be set
    • getBufferedImage

      BufferedImage getBufferedImage()
      Gets a buffered image containing a cached version of the painted result of this FFrame. The size of the buffered image will match only the visible area of the component, not the full size of it.
      Returns:
      The cached image or null if the image is not available
    • fullExtent

      void fullExtent() throws org.gvsig.fmap.dal.exception.ReadException
      Zooms to the extent containing all the layers loaded in the map.
      Throws:
      org.gvsig.fmap.dal.exception.ReadException
    • setPointsToZoom

      void setPointsToZoom(Point2D px1, Point2D px2)
    • movePoints

      void movePoints(Point2D px1, Point2D px2)
    • refreshOriginalExtent

      void refreshOriginalExtent()
    • getLayerSynced

      boolean getLayerSynced()
      Gets the synchronization mode for layers. If true, layers will be synchronized between the FFrameView and the associated View, so any change in the FFrameView (layer added or removed, visibility changed, symbology change, etc) will be propagated to the associated View, and vice versa.
      Returns:
      true if the layers are synchronized between the FFrameView and the View, false otherwise.
    • setLayerSynced

      void setLayerSynced(boolean synced)
      Sets the synchronization mode for map layers. If true, layers will be synchronized between the FFrameView and the associated View, so any change in the FFrameView (layer added or removed, visibility changed, symbology change, etc) will be propagated to the associated View, and vice versa.
      Parameters:
      synced - true to enable layers synchronization between the FFrameView and the View, false otherwise.
    • getExtentSynced

      boolean getExtentSynced()
      Gets the synchronization mode for the map extent. If true, the map extent will be synchronized between the FFrameView and the associated View, so any change in the FFrameView (pan, zoom in, zoom out...) will be propagated to the associated View, and vice versa.
      Returns:
      true if the map extent is synchronized between the FFrameView and the View, false otherwise.
    • setExtentSynced

      void setExtentSynced(boolean synced)
      Sets the synchronization mode for the map extent. If true, the map extent will be synchronized between the FFrameView and the associated View, so any change in the FFrameView (pan, zoom in, zoom out...) will be propagated to the associated View, and vice versa.
      Parameters:
      synced - true to enable extent synchronization between the FFrameView and the View, false otherwise.
    • setScale

      void setScale(double d)
      Sets the scale of the MapContext contained in this FFrameView. It will be ignored if getScaleType() equals to IFFrameUseFMap.SCALE_TYPE.FIXED_SCALE or IFFrameUseFMap.SCALE_TYPE.FIXED_EXTENT
      Parameters:
      d - Scale to be set
    • getScaleType

      Returns:
      The scale type
    • setScaleType

      void setScaleType(IFFrameUseFMap.SCALE_TYPE scaleType)
    • getTypeScale

      @Deprecated int getTypeScale()
      Deprecated.
      Kept for the moment for backward-compatibility, it will be removed on the future.
    • setLinked

      @Deprecated void setLinked(boolean b)
      Deprecated.
      Kept for the moment for backward-compatibility, it will be removed on the future.
    • getLinked

      @Deprecated boolean getLinked()
      Deprecated.
      Kept for the moment for backward-compatibility, it will be removed on the future.