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
FFrame which uses a MapContext object, usually because their content is
dependent on the MapContext properties
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidZooms to the extent containing all the layers loaded in the map.getATMap()Gets a buffered image containing a cached version of the painted result of this FFrame.booleanGets the synchronization mode for the map extent.booleanGets the synchronization mode for layers.booleanDeprecated.org.gvsig.fmap.mapcontext.MapContextReturns the MapContext contained in this FFrameView, which is usually a clone of the associated View.Gets the scale and extent types.intDeprecated.voidmovePoints(Point2D px1, Point2D px2) voidrefresh()Invalidates the FFrameView cache, which will cause the FFrame to be repainted on the next drawing cycle.voidvoidvoidsetExtentSynced(boolean synced) Sets the synchronization mode for the map extent.voidsetLayerSynced(boolean synced) Sets the synchronization mode for map layers.voidsetLinked(boolean b) Deprecated.voidsetNewEnvelope(org.gvsig.fmap.geom.primitive.Envelope r) Sets the extent of the MapContext contained in this FFrameView.voidsetPointsToZoom(Point2D px1, Point2D px2) voidsetScale(double d) Sets the scale of the MapContext contained in this FFrameView.voidsetScaleType(IFFrameUseFMap.SCALE_TYPE scaleType) Sets the scale and extent types.Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.app.project.documents.layout.fframes.IFFrame
contains, draw, drawDraft, drawHandlers, drawSymbolTag, frameAdded, frameRemoved, getBoundBox, getBoundingBox, getContains, getDocument, getFrameFactory, getLastMoveRect, getLayoutContext, getLevel, getMapCursor, getMovieRect, getMovieRect, getName, getNameFFrame, getRotation, getSelected, getTag, intersects, isSelected, setBoundBox, setDocument, setFrameFactory, setLayoutContext, setLevel, setNum, setRotation, setSelected, setSelected, setTag, updateRectMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable
printMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObserversMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Field Details
-
AUTOMATICO
Deprecated.Kept for the moment for backward-compatibility, it will be removed on the future.- See Also:
-
CONSTANTE
Deprecated.Kept for the moment for backward-compatibility, it will be removed on the future.- See Also:
-
MANUAL
Deprecated.- See Also:
-
-
Method Details
-
getATMap
AffineTransform getATMap() -
setATMap
-
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 ifgetScaleType()equals toIFFrameUseFMap.SCALE_TYPE.FIXED_SCALEorIFFrameUseFMap.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.ReadExceptionZooms to the extent containing all the layers loaded in the map.- Throws:
org.gvsig.fmap.dal.exception.ReadException
-
setPointsToZoom
-
movePoints
-
refreshOriginalExtent
void refreshOriginalExtent() -
getLayerSynced
boolean getLayerSynced()Gets the synchronization mode for layers. Iftrue, 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:
trueif the layers are synchronized between the FFrameView and the View,falseotherwise.
-
setLayerSynced
void setLayerSynced(boolean synced) Sets the synchronization mode for map layers. Iftrue, 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-trueto enable layers synchronization between the FFrameView and the View,falseotherwise.
-
getExtentSynced
boolean getExtentSynced()Gets the synchronization mode for the map extent. Iftrue, 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:
trueif the map extent is synchronized between the FFrameView and the View,falseotherwise.
-
setExtentSynced
void setExtentSynced(boolean synced) Sets the synchronization mode for the map extent. Iftrue, 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-trueto enable extent synchronization between the FFrameView and the View,falseotherwise.
-
setScale
void setScale(double d) Sets the scale of the MapContext contained in this FFrameView. It will be ignored ifgetScaleType()equals toIFFrameUseFMap.SCALE_TYPE.FIXED_SCALEorIFFrameUseFMap.SCALE_TYPE.FIXED_EXTENT- Parameters:
d- Scale to be set
-
getScaleType
IFFrameUseFMap.SCALE_TYPE getScaleType()Gets the scale and extent types. It can be one of the following:IFFrameUseFMap.SCALE_TYPE.NORMAL,IFFrameUseFMap.SCALE_TYPE.FIXED_SCALEorIFFrameUseFMap.SCALE_TYPE.FIXED_EXTENT- Returns:
- The scale type
-
setScaleType
Sets the scale and extent types. It can be one of the following:IFFrameUseFMap.SCALE_TYPE.NORMAL,IFFrameUseFMap.SCALE_TYPE.FIXED_SCALEorIFFrameUseFMap.SCALE_TYPE.FIXED_EXTENT -
getTypeScale
Deprecated.Kept for the moment for backward-compatibility, it will be removed on the future. -
setLinked
Deprecated.Kept for the moment for backward-compatibility, it will be removed on the future. -
getLinked
Deprecated.Kept for the moment for backward-compatibility, it will be removed on the future.
-