java.lang.Object
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle
org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.SimpleLineStyle
All Implemented Interfaces:
Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ISimpleLineStyle, org.gvsig.tools.lang.Cloneable, org.gvsig.tools.persistence.Persistent

public class SimpleLineStyle extends AbstractStyle implements org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport, org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ISimpleLineStyle
Author:
2005-2008 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.style.AbstractStyle

    LOGGER, STYLE_PERSISTENCE_DEFINITION_NAME

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

    PAPER, WORLD
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor method
    SimpleLineStyle(float width, int cap, int join, float miterlimit, float[] dash, float dash_phase)
    Constructor method
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
     
    org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IArrowDecoratorStyle
     
    double
     
     
     
    float
     
    double
     
     
    boolean
    isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
     
    void
    loadFromState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    saveToState(org.gvsig.tools.persistence.PersistentState state)
     
    void
    setArrowDecorator(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IArrowDecoratorStyle arrowDecoratorStyle)
     
    void
    setCartographicContext(org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext ctx)
     
    void
    setLineWidth(float width)
     
    void
    setOffset(double offset)
     
    void
    setStroke(Stroke stroke)
     

    Methods inherited from class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.AbstractStyle

    getDescription, setDescription

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

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

    Methods inherited from class java.lang.Object

    equals, 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, setReferenceSystem, setUnit, toCartographicUnits

    Methods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle

    getDescription, setDescription
  • Field Details

    • SIMPLE_LINE_STYLE_PERSISTENCE_DEFINITION_NAME

      public static final String SIMPLE_LINE_STYLE_PERSISTENCE_DEFINITION_NAME
      See Also:
  • Constructor Details

    • SimpleLineStyle

      public SimpleLineStyle()
      Constructor method
    • SimpleLineStyle

      public SimpleLineStyle(float width, int cap, int join, float miterlimit, float[] dash, float dash_phase)
      Constructor method
      Parameters:
      width -
      cap -
      join -
      miterlimit -
      dash -
      dash_phase -
  • Method Details

    • drawInsideRectangle

      public void drawInsideRectangle(Graphics2D g, Rectangle r)
      Specified by:
      drawInsideRectangle in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • getClassName

      public String getClassName()
    • getStroke

      public Stroke getStroke()
      Specified by:
      getStroke in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • getCartographicStroke

      public Stroke getCartographicStroke()
      Specified by:
      getCartographicStroke in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • getLineWidth

      public float getLineWidth()
      Specified by:
      getLineWidth in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • setLineWidth

      public void setLineWidth(float width)
      Specified by:
      setLineWidth in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol symbol)
      Specified by:
      isSuitableFor in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • setStroke

      public void setStroke(Stroke stroke)
      Specified by:
      setStroke in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • drawOutline

      public void drawOutline(Graphics2D g, Rectangle r)
      Specified by:
      drawOutline in interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
    • getOffset

      public double getOffset()
      Specified by:
      getOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • getCartographicOffset

      public double getCartographicOffset()
      Specified by:
      getCartographicOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • setOffset

      public void setOffset(double offset)
      Specified by:
      setOffset in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • getArrowDecorator

      public org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IArrowDecoratorStyle getArrowDecorator()
      Specified by:
      getArrowDecorator in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • setArrowDecorator

      public void setArrowDecorator(org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.IArrowDecoratorStyle arrowDecoratorStyle)
      Specified by:
      setArrowDecorator in interface org.gvsig.symbology.fmap.mapcontext.rendering.symbol.style.ILineStyle
    • clone

      public Object clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.tools.lang.Cloneable
      Overrides:
      clone in class AbstractStyle
      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 AbstractStyle
      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 AbstractStyle
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • setCartographicContext

      public void setCartographicContext(org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport.CartographicContext ctx)
      Specified by:
      setCartographicContext in interface org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport
      Overrides:
      setCartographicContext in class org.gvsig.symbology.fmap.mapcontext.rendering.symbol.impl.AbstractCartographicSupport