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:
  • Constructor Details

    • AbstractLayerable

      public AbstractLayerable()
      Called by Java2XML
    • AbstractLayerable

      public AbstractLayerable(String name, LayerManager layerManager)
  • Method Details

    • setLayerManager

      public void setLayerManager(LayerManager layerManager)
      Description copied from interface: Layerable
      Called by Java2XML
      Specified by:
      setLayerManager in interface Layerable
      Parameters:
      layerManager - the LayerManager
    • getLayerManager

      public LayerManager getLayerManager()
      Specified by:
      getLayerManager in interface Layerable
      Specified by:
      getLayerManager in interface LayerManagerProxy
    • 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 String getName()
      Specified by:
      getName in interface Layerable
    • setName

      public void setName(String name)
      Specified by:
      setName in interface Layerable
    • getTask

      public Task getTask()
    • isVisible

      public boolean isVisible()
      Specified by:
      isVisible in interface Layerable
    • setVisible

      public void setVisible(boolean visible)
      Specified by:
      setVisible in interface Layerable
    • setEditable

      public void setEditable(boolean editable)
      Editability is not enforced; all parties are responsible for heeding this flag.
      Specified by:
      setEditable in interface Layerable
    • isEditable

      public boolean isEditable()
      Specified by:
      isEditable in interface Layerable
    • isReadonly

      public boolean isReadonly()
      Specified by:
      isReadonly in interface Layerable
      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:
      setReadonly in interface Layerable
    • isSelectable

      public boolean isSelectable()
      Specified by:
      isSelectable in interface Layerable
      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:
      setSelectable in interface Layerable
      Parameters:
      value - true if features in this layer can be selected
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMaxScale

      public Double getMaxScale()
      Specified by:
      getMaxScale in interface Layerable
      Returns:
      the smaller units/pixel value
    • setMaxScale

      public Layerable setMaxScale(Double maxScale)
      Specified by:
      setMaxScale in interface Layerable
    • getMinScale

      public Double getMinScale()
      Specified by:
      getMinScale in interface Layerable
      Returns:
      the larger units/pixel value
    • setMinScale

      public Layerable setMinScale(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