com.vividsolutions.jump.workbench.model
Class AbstractLayerable

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.model.AbstractLayerable
All Implemented Interfaces:
Layerable
Direct Known Subclasses:
Layer, WMSLayer

public abstract class AbstractLayerable
extends java.lang.Object
implements Layerable

Default implementation of the Layerable interface.

See Also:
Layerable

Constructor Summary
AbstractLayerable()
          Called by Java2XML
AbstractLayerable(java.lang.String name, LayerManager layerManager)
           
 
Method Summary
 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.
 void fireLayerChanged(LayerEventType type)
           
 LayerManager getLayerManager()
           
 java.lang.Double getMaxScale()
           
 java.lang.Double getMinScale()
           
 java.lang.String getName()
           
 boolean isScaleDependentRenderingEnabled()
           
 boolean isVisible()
           
 void setLayerManager(LayerManager layerManager)
          Called by Java2XML
 Layerable setMaxScale(java.lang.Double maxScale)
           
 Layerable setMinScale(java.lang.Double minScale)
           
 void setName(java.lang.String name)
           
 Layerable setScaleDependentRenderingEnabled(boolean scaleDependentRenderingEnabled)
           
 void setVisible(boolean visible)
           
 java.lang.String toString()
           
 
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(java.lang.String name,
                         LayerManager layerManager)
Method Detail

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

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()

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