java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.impl.AbstractLineSymbol
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol, org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol_v2, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent
Direct Known Subclasses:
MultiLayerLineSymbol, PictureLineSymbol, SimpleLineSymbol

public abstract class AbstractLineSymbol extends org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol implements org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
AbstractLineSymbol is the class that implements the interface for line symbols. It is considered as the father of all the XXXLineSymbols and will implement all the methods that these classes had not developed (and correspond with one of the methods of AbstractLineSymbol class).
Author:
2005-2009 jaume dominguez faus - jaume.dominguez@iver.es, 2009- César Ordiñana - gvSIG team
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol

    LOGGER, SYMBOL_PERSISTENCE_DEFINITION_NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    PAPER, WORLD

    Fields inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol

    SYMBOL_NAME

    Fields inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol

    SELECTION_COLOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
     
     
    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
     
    protected org.gvsig.fmap.geom.Geometry
     
    final int
     
    boolean
    isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    static org.gvsig.fmap.geom.Geometry
    offsetFShape(org.gvsig.fmap.geom.Geometry shp, double offset)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setAlpha(int outlineAlpha)
     
    void
    setColor(Color color)
     
    void
     
    void
    setLineStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle lineStyle)
     
    void
    setReferenceSystem(int system)
     
    void
    setUnit(int unitIndex)
     

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol

    cloneForSelection, cloneForSelection, draw, drawInsideRectangle, equals, getDescription, getFeature, getID, getRequiredFeatureAttributeNames, getSymbolForSelection, getSymbolForSelection, isShapeVisible, print, setDescription, setFeature, setID, setIsShapeVisible

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport

    copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, isInPixels, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnits

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport

    copyCartographicContext, getCartographicContext, getReferenceSystem, getUnit, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, setCartographicContext, toCartographicUnits

    Methods inherited from interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol

    getLineWidth, setLineWidth

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.IPrintable

    print

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol

    draw, draw, drawInsideRectangle, getDescription, getFeature, getID, getSymbolForSelection, getSymbolForSelection, isShapeVisible, setDescription, setFeature, setID
  • Field Details

    • LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME

      public static final String LINE_SYMBOL_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • AbstractLineSymbol

      public AbstractLineSymbol()
  • Method Details

    • getColor

      public Color getColor()
      Specified by:
      getColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
      Specified by:
      getColor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • setLineColor

      public void setLineColor(Color color)
      Specified by:
      setLineColor in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
    • setColor

      public void setColor(Color color)
      Specified by:
      setColor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • getSymbolType

      public final int getSymbolType()
      Specified by:
      getSymbolType in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.geom.Geometry geom)
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol
    • getLineStyle

      public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle getLineStyle()
      Specified by:
      getLineStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
    • setLineStyle

      public void setLineStyle(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle lineStyle)
      Specified by:
      setLineStyle in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
    • setUnit

      public void setUnit(int unitIndex)
      Specified by:
      setUnit in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setUnit in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • setReferenceSystem

      public void setReferenceSystem(int system)
      Specified by:
      setReferenceSystem in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setReferenceSystem in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
    • getAlpha

      public int getAlpha()
      Specified by:
      getAlpha in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
    • setAlpha

      public void setAlpha(int outlineAlpha)
      Specified by:
      setAlpha in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.line.ILineSymbol
    • getSampleGeometry

      protected org.gvsig.fmap.geom.Geometry getSampleGeometry(Rectangle r)
    • offsetFShape

      public static org.gvsig.fmap.geom.Geometry offsetFShape(org.gvsig.fmap.geom.Geometry shp, double offset)
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
      Throws:
      CloneNotSupportedException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      loadFromState in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Overrides:
      saveToState in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractSymbol
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException