Interface ViewDocument
- All Superinterfaces:
org.gvsig.tools.util.Contains,Document,org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.util.PropertiesSupport
- All Known Implementing Classes:
BaseViewDocument,DefaultViewDocument
public interface ViewDocument
extends Document, org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport
-
Field Summary
FieldsFields inherited from interface org.gvsig.app.project.documents.Document
ACCESS_DOCUMENT_AUTHORIZATION -
Method Summary
Modifier and TypeMethodDescriptionvoidAñade un listener para los cambios en las bounded propertiesvoidcenter(org.gvsig.fmap.geom.primitive.Envelope envelope) Center view in the envelope.booleancontains(org.gvsig.fmap.dal.DataStore store) Return true if this view has a layer with this store.booleancontains(org.gvsig.fmap.mapcontext.layers.FLayer layer) Return true if layer is in this view.Iterator<org.gvsig.fmap.mapcontext.layers.FLayer> Get all layer in the view TOC.org.gvsig.fmap.mapcontext.layers.FLayerorg.gvsig.fmap.mapcontext.MapContextGets the Map contexts of the main map in the view.org.gvsig.fmap.mapcontext.MapContextGets the Map context from the locator, which is the small map in the left-bottom corner of the View.getName()Gets the name of the Vieworg.gvsig.crs.projection.lib.ProjectionGets the CRS of the viewIterator<org.gvsig.fmap.mapcontext.layers.FLayer> iterator()Get the first level of layer in the view TOC.Iterable<org.gvsig.fmap.mapcontext.layers.FLayer> layers()voidvoidsetMapContext(org.gvsig.fmap.mapcontext.MapContext fmap) voidsetMapOverViewContext(org.gvsig.fmap.mapcontext.MapContext fmap) voidsetProjection(org.gvsig.crs.projection.lib.Projection proj) Methods inherited from interface org.gvsig.tools.util.Contains
containsMethods inherited from interface org.gvsig.app.project.documents.Document
addListener, afterAdd, afterRemove, getComment, getCreationDate, getFactory, getMainComponent, getMainWindow, getOpenWhenTheUserCreates, getOwner, getPropertiesWindow, getTypeName, getWindowLayout, isAvailable, isLocked, isModified, isTemporary, lock, refresh, setComment, setCreationDate, setModified, setName, setOwner, setProject, setWindowLayout, unlockMethods inherited from interface org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesSupport
getExtendedProperties, getProperty, setPropertyMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToStateMethods inherited from interface org.gvsig.tools.util.PropertiesSupport
getProperties, getProperty, setProperty
-
Field Details
-
VIEW_PROPERTIES_PAGE_GROUP
- See Also:
-
LAYER_PROPERTIES_PAGE_GROUP
- See Also:
-
-
Method Details
-
getMapContext
org.gvsig.fmap.mapcontext.MapContext getMapContext()Gets the Map contexts of the main map in the view.- Returns:
- MapContext
-
getMapOverViewContext
org.gvsig.fmap.mapcontext.MapContext getMapOverViewContext()Gets the Map context from the locator, which is the small map in the left-bottom corner of the View.- Returns:
-
setMapContext
void setMapContext(org.gvsig.fmap.mapcontext.MapContext fmap) -
setMapOverViewContext
void setMapOverViewContext(org.gvsig.fmap.mapcontext.MapContext fmap) -
getName
String getName()Gets the name of the View -
getProject
Project getProject()- Specified by:
getProjectin interfaceDocument
-
addPropertyChangeListener
Description copied from interface:DocumentAñade un listener para los cambios en las bounded properties- Specified by:
addPropertyChangeListenerin interfaceDocument- Parameters:
listener-
-
getProjection
org.gvsig.crs.projection.lib.Projection getProjection()Gets the CRS of the view- Returns:
- CRS of the view
-
setProjection
void setProjection(org.gvsig.crs.projection.lib.Projection proj) -
setBackColor
-
getLayer
-
iterator
Iterator<org.gvsig.fmap.mapcontext.layers.FLayer> iterator()Get the first level of layer in the view TOC.- Returns:
- layers in TOC
-
deepiterator
Iterator<org.gvsig.fmap.mapcontext.layers.FLayer> deepiterator()Get all layer in the view TOC.- Returns:
- layers in TOC
-
layers
Iterable<org.gvsig.fmap.mapcontext.layers.FLayer> layers() -
contains
boolean contains(org.gvsig.fmap.mapcontext.layers.FLayer layer) Return true if layer is in this view.- Parameters:
layer-- Returns:
-
contains
boolean contains(org.gvsig.fmap.dal.DataStore store) Return true if this view has a layer with this store.- Parameters:
store-- Returns:
-
center
void center(org.gvsig.fmap.geom.primitive.Envelope envelope) Center view in the envelope.- Parameters:
envelope-
-