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 TypeMethodDescriptionvoiddraw(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)intObtains the number of arrows that the user wants to draw in the same line.booleanDefines 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.booleanObtains the flipFirst attribute.If it is true only the first arrow of the line will be flipped.The rest will keep the same orientation.booleanGets 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) .voidsetArrowMarkerCount(int arrowMarkerCount) Defines the number of arrows that the user wants to draw in the same line.voidsetFlipAll(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.voidsetFlipFirst(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.voidsetFollowLineAngle(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.voidsetMarker(IMarkerSymbol marker) Methods inherited from interface org.gvsig.tools.lang.Cloneable
cloneMethods inherited from interface org.gvsig.fmap.mapcontext.rendering.symbols.styles.IStyle
drawInsideRectangle, drawOutline, getDescription, isSuitableFor, setDescriptionMethods 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 nullfeature-shp-- Throws:
org.gvsig.fmap.geom.exception.CreateGeometryException
-
getMarker
IMarkerSymbol getMarker() -
setMarker
-