Interface IArrowDecoratorStyle

All Superinterfaces:
Cloneable, org.gvsig.tools.lang.Cloneable, org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle, org.gvsig.tools.persistence.Persistent

public interface IArrowDecoratorStyle extends org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
Version:
$Id$
Author:
gvSIG Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature feature)
    Draws an arrow(or other symbol that substitutes an arrow selected by the user) in a line.When the line is drawn, the symbol is added and takes care of the different options of the user(for example if he wants to flip the first symbol or all and the number of symbols per line to be drawn)
    int
    Obtains the number of arrows that the user wants to draw in the same line.
     
    boolean
    Defines the flipAll attribute.If the value of this attribute is true all the arrows that we had drawn in the same line will be flipped.
    boolean
    Obtains the flipFirst attribute.If it is true only the first arrow of the line will be flipped.The rest will keep the same orientation.
    boolean
    Gets the followLineAngle attribute.This attribute allows the arrow that we are going to draw to be more or less aligned with the line where it will be included (depending on the angle) .
    void
    setArrowMarkerCount(int arrowMarkerCount)
    Defines the number of arrows that the user wants to draw in the same line.
    void
    setFlipAll(boolean flipAll)
    Obtains the flipAll attribute.If the value of this attribute is true all the arrows that we had drawn in the same line will be flipped.
    void
    setFlipFirst(boolean flipFirst)
    Sets the flipFirst attribute.If it is true only the first arrow of the line will be flipped.The rest will keep the same orientation.
    void
    setFollowLineAngle(boolean followLineAngle)
    Sets the followLineAngle attribute.This attribute allows the arrow that we are going to draw to be more or less aligned with the line where it will be included.
    void
     

    Methods inherited from interface org.gvsig.tools.lang.Cloneable

    clone

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

    drawInsideRectangle, drawOutline, getDescription, isSuitableFor, setDescription

    Methods inherited from interface org.gvsig.tools.persistence.Persistent

    loadFromState, saveToState
  • Method Details

    • getArrowMarkerCount

      int getArrowMarkerCount()
      Obtains the number of arrows that the user wants to draw in the same line.
      Returns:
    • setArrowMarkerCount

      void setArrowMarkerCount(int arrowMarkerCount)
      Defines the number of arrows that the user wants to draw in the same line.
    • isFlipAll

      boolean isFlipAll()
      Defines the flipAll attribute.If the value of this attribute is true all the arrows that we had drawn in the same line will be flipped.
      Returns:
    • setFlipAll

      void setFlipAll(boolean flipAll)
      Obtains the flipAll attribute.If the value of this attribute is true all the arrows that we had drawn in the same line will be flipped.
    • isFlipFirst

      boolean isFlipFirst()
      Obtains the flipFirst attribute.If it is true only the first arrow of the line will be flipped.The rest will keep the same orientation.
      Returns:
    • setFlipFirst

      void setFlipFirst(boolean flipFirst)
      Sets the flipFirst attribute.If it is true only the first arrow of the line will be flipped.The rest will keep the same orientation.
    • isFollowLineAngle

      boolean isFollowLineAngle()
      Gets the followLineAngle attribute.This attribute allows the arrow that we are going to draw to be more or less aligned with the line where it will be included (depending on the angle) .
      Returns:
    • setFollowLineAngle

      void setFollowLineAngle(boolean followLineAngle)
      Sets the followLineAngle attribute.This attribute allows the arrow that we are going to draw to be more or less aligned with the line where it will be included. (depending on the angle).
      Parameters:
      followingLineAngle -
    • draw

      void draw(Graphics2D g, AffineTransform affineTransform, org.gvsig.fmap.geom.Geometry geom, org.gvsig.fmap.dal.feature.Feature feature) throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Draws an arrow(or other symbol that substitutes an arrow selected by the user) in a line.When the line is drawn, the symbol is added and takes care of the different options of the user(for example if he wants to flip the first symbol or all and the number of symbols per line to be drawn)
      Parameters:
      g -
      affineTransform - , can be null
      feature -
      shp -
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • getMarker

      IMarkerSymbol getMarker()
    • setMarker

      void setMarker(IMarkerSymbol marker)