public class ArrowLinesLayer
- Object
- AbstractLayer
- LinesLayer
- ArrowLinesLayer
ImplementsLayer
This class is responsible for painting arrows that indicates direction
of walk on map.
Constructors
public ArrowLinesLayer() | Constructor with default projection Mercator. |
public ArrowLinesLayer(String name) | Constructor with default projection Mercator. |
public ArrowLinesLayer(Projection p, String name) | Constructor with custom projection and layer name. |
Methods
protected void paintSegment(Graphics g, Coord[] segment, Tile tile) | Paints arrows on each segment. |
public int getArrowHeight() | Returns the arrow height in pixels |
public void setArrowHeight(int arrowHeight) | Sets the arrow height |
public int getArrowSegmentLength() | Gets the arrow segment length |
public void setArrowSegmentLength(int arrowSegmentLength) | Sets the arrow segment length |
public int getArrowWidth() | Gets the arrow width in pixels |
public void setArrowWidth(int arrowWidth) | Sets the arrow width |
Inherited fields
From LinesLayer
From AbstractLayer
Inherited methods
Constructor details
ArrowLinesLayer
public ArrowLinesLayer()Constructor with default projection Mercator.
ArrowLinesLayer
public ArrowLinesLayer(String name)Constructor with default projection Mercator.
ArrowLinesLayer
public ArrowLinesLayer(Projection p, String name)Constructor with custom projection and layer name.
Method details
paintSegment
protected void paintSegment(Graphics g, Coord[] segment, Tile tile)Paints arrows on each segment. arrowSegmentLength decides how many
arrows will be on each segment.
getArrowHeight
public int getArrowHeight()Returns the arrow height in pixels
Returns
the arrow height
setArrowHeight
public void setArrowHeight(int arrowHeight)Sets the arrow height
getArrowSegmentLength
public int getArrowSegmentLength()Gets the arrow segment length
Returns
segment length
setArrowSegmentLength
public void setArrowSegmentLength(int arrowSegmentLength)Sets the arrow segment length
Parameters
arrowSegmentLengthint- to set
getArrowWidth
public int getArrowWidth()Gets the arrow width in pixels
Returns
the arrow width
setArrowWidth
public void setArrowWidth(int arrowWidth)Sets the arrow width
Parameters
arrowWidthint- to set