Class AbstractLayerable
- java.lang.Object
-
- com.vividsolutions.jump.workbench.model.AbstractLayerable
-
- All Implemented Interfaces:
Layerable,LayerManagerProxy
- Direct Known Subclasses:
GeoReferencedLayerable
public abstract class AbstractLayerable extends Object implements Layerable, LayerManagerProxy
Default implementation of the Layerable interface.- See Also:
Layerable
-
-
Constructor Summary
Constructors Constructor Description AbstractLayerable()Called by Java2XMLAbstractLayerable(String name, LayerManager layerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireAppearanceChanged()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.voidfireLayerChanged(LayerEventType type)LayerManagergetLayerManager()DoublegetMaxScale()DoublegetMinScale()StringgetName()TaskgetTask()booleanisEditable()booleanisReadonly()booleanisScaleDependentRenderingEnabled()booleanisSelectable()booleanisVisible()voidsetEditable(boolean editable)Editability is not enforced; all parties are responsible for heeding this flag.voidsetLayerManager(LayerManager layerManager)Called by Java2XMLLayerablesetMaxScale(Double maxScale)LayerablesetMinScale(Double minScale)voidsetName(String name)voidsetReadonly(boolean value)Set whether this layer can be made editable.LayerablesetScaleDependentRenderingEnabled(boolean scaleDependentRenderingEnabled)voidsetSelectable(boolean value)Set whether or not features in this layer can be selected.voidsetVisible(boolean visible)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vividsolutions.jump.workbench.model.Layerable
getBlackboard
-
-
-
-
Constructor Detail
-
AbstractLayerable
public AbstractLayerable()
Called by Java2XML
-
AbstractLayerable
public AbstractLayerable(String name, LayerManager layerManager)
-
-
Method Detail
-
setLayerManager
public void setLayerManager(LayerManager layerManager)
Description copied from interface:LayerableCalled by Java2XML- Specified by:
setLayerManagerin interfaceLayerable- Parameters:
layerManager- the LayerManager
-
getLayerManager
public LayerManager getLayerManager()
- Specified by:
getLayerManagerin interfaceLayerable- Specified by:
getLayerManagerin interfaceLayerManagerProxy
-
fireLayerChanged
public void fireLayerChanged(LayerEventType type)
-
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
-
getTask
public Task getTask()
-
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
-
getMaxScale
public Double getMaxScale()
- Specified by:
getMaxScalein interfaceLayerable- Returns:
- the smaller units/pixel value
-
setMaxScale
public Layerable setMaxScale(Double maxScale)
- Specified by:
setMaxScalein interfaceLayerable
-
getMinScale
public Double getMinScale()
- Specified by:
getMinScalein interfaceLayerable- Returns:
- the larger units/pixel value
-
setMinScale
public Layerable setMinScale(Double minScale)
- Specified by:
setMinScalein interfaceLayerable
-
isScaleDependentRenderingEnabled
public boolean isScaleDependentRenderingEnabled()
- Specified by:
isScaleDependentRenderingEnabledin interfaceLayerable
-
setScaleDependentRenderingEnabled
public Layerable setScaleDependentRenderingEnabled(boolean scaleDependentRenderingEnabled)
- Specified by:
setScaleDependentRenderingEnabledin interfaceLayerable
-
-