Class AbstractLayerable
java.lang.Object
com.vividsolutions.jump.workbench.model.AbstractLayerable
- All Implemented Interfaces:
Layerable, LayerManagerProxy
- Direct Known Subclasses:
GeoReferencedLayerable
Default implementation of the Layerable interface.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCalled by Java2XMLAbstractLayerable(String name, LayerManager layerManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe only time #fireAppearanceChanged must be called is when a party modifies an attribute of one of the Styles, because Styles don't notify their layer when they change.voidgetName()getTask()booleanbooleanbooleanbooleanbooleanvoidsetEditable(boolean editable) Editability is not enforced; all parties are responsible for heeding this flag.voidsetLayerManager(LayerManager layerManager) Called by Java2XMLsetMaxScale(Double maxScale) setMinScale(Double minScale) voidvoidsetReadonly(boolean value) Set whether this layer can be made editable.setScaleDependentRenderingEnabled(boolean scaleDependentRenderingEnabled) voidsetSelectable(boolean value) Set whether or not features in this layer can be selected.voidsetVisible(boolean visible) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Layerable
getBlackboard
-
Constructor Details
-
AbstractLayerable
public AbstractLayerable()Called by Java2XML -
AbstractLayerable
-
-
Method Details
-
setLayerManager
Description copied from interface:LayerableCalled by Java2XML- Specified by:
setLayerManagerin interfaceLayerable- Parameters:
layerManager- the LayerManager
-
getLayerManager
- Specified by:
getLayerManagerin interfaceLayerable- Specified by:
getLayerManagerin interfaceLayerManagerProxy
-
fireLayerChanged
-
fireAppearanceChanged
public void fireAppearanceChanged()The only time #fireAppearanceChanged must be called is when a party modifies an attribute of one of the Styles, because Styles don't notify their layer when they change. But if a party adds or removes a feature, or applies an EditTransaction to a feature, #fireAppearanceChanged will be called automatically. This event will be ignored if LayerManager#isFiringEvents is false -
getName
-
setName
-
getTask
-
isVisible
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceLayerable
-
setEditable
public void setEditable(boolean editable) Editability is not enforced; all parties are responsible for heeding this flag.- Specified by:
setEditablein interfaceLayerable
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceLayerable
-
isReadonly
public boolean isReadonly()- Specified by:
isReadonlyin interfaceLayerable- Returns:
- true if this layer should always be 'readonly' I.e.: The layer should never have the editable field set to true.
-
setReadonly
public void setReadonly(boolean value) Set whether this layer can be made editable.- Specified by:
setReadonlyin interfaceLayerable
-
isSelectable
public boolean isSelectable()- Specified by:
isSelectablein interfaceLayerable- Returns:
- true if features in this layer can be selected.
-
setSelectable
public void setSelectable(boolean value) Set whether or not features in this layer can be selected.- Specified by:
setSelectablein interfaceLayerable- Parameters:
value- true if features in this layer can be selected
-
toString
-
getMaxScale
- Specified by:
getMaxScalein interfaceLayerable- Returns:
- the smaller units/pixel value
-
setMaxScale
- Specified by:
setMaxScalein interfaceLayerable
-
getMinScale
- Specified by:
getMinScalein interfaceLayerable- Returns:
- the larger units/pixel value
-
setMinScale
- Specified by:
setMinScalein interfaceLayerable
-
isScaleDependentRenderingEnabled
public boolean isScaleDependentRenderingEnabled()- Specified by:
isScaleDependentRenderingEnabledin interfaceLayerable
-
setScaleDependentRenderingEnabled
- Specified by:
setScaleDependentRenderingEnabledin interfaceLayerable
-