com.vividsolutions.jump.workbench.model
Class AbstractLayerable
java.lang.Object
com.vividsolutions.jump.workbench.model.AbstractLayerable
- All Implemented Interfaces:
- Layerable
- Direct Known Subclasses:
- Layer, RasterImageLayer, WMSLayer
public abstract class AbstractLayerable
- extends java.lang.Object
- implements Layerable
Default implementation of the Layerable interface.
- See Also:
Layerable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractLayerable
public AbstractLayerable()
- Called by Java2XML
AbstractLayerable
public AbstractLayerable(java.lang.String name,
LayerManager layerManager)
setLayerManager
public void setLayerManager(LayerManager layerManager)
- Description copied from interface:
Layerable
- Called by Java2XML
- Specified by:
setLayerManager in interface Layerable
getLayerManager
public LayerManager getLayerManager()
- Specified by:
getLayerManager in interface Layerable
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
getName
public java.lang.String getName()
- Specified by:
getName in interface Layerable
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface Layerable
getTask
public Task getTask()
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible in interface Layerable
isVisible
public boolean isVisible()
- Specified by:
isVisible in interface Layerable
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getMaxScale
public java.lang.Double getMaxScale()
- Specified by:
getMaxScale in interface Layerable
- Returns:
- the smaller units/pixel value
setMaxScale
public Layerable setMaxScale(java.lang.Double maxScale)
- Specified by:
setMaxScale in interface Layerable
getMinScale
public java.lang.Double getMinScale()
- Specified by:
getMinScale in interface Layerable
- Returns:
- the larger units/pixel value
setMinScale
public Layerable setMinScale(java.lang.Double minScale)
- Specified by:
setMinScale in interface Layerable
isScaleDependentRenderingEnabled
public boolean isScaleDependentRenderingEnabled()
- Specified by:
isScaleDependentRenderingEnabled in interface Layerable
setScaleDependentRenderingEnabled
public Layerable setScaleDependentRenderingEnabled(boolean scaleDependentRenderingEnabled)
- Specified by:
setScaleDependentRenderingEnabled in interface Layerable