Class Marker
java.lang.Object
org.apache.batik.gvt.Marker
A Marker describes a GraphicsNode with a reference point that can be used to
position the Marker at a particular location and a particular policy for
rotating the marker when drawing it.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GraphicsNodeGraphicsNode this marker is associated toprotected doubleRotation angle, about (0, 0) is user space.protected Point2DReference point about which the marker should be drawn -
Constructor Summary
ConstructorsConstructorDescriptionMarker(GraphicsNode markerNode, Point2D ref, double orient) Constructs a new marker. -
Method Summary
Modifier and TypeMethodDescriptionReturns theGraphicsNodethat draws this marker.doubleReturns the orientation of this marker.getRef()Returns the reference point of this marker.
-
Field Details
-
orient
protected double orientRotation angle, about (0, 0) is user space. If orient is NaN then the marker's x-axis should be aligned with the slope of the curve on the point where the object is drawn -
markerNode
GraphicsNode this marker is associated to -
ref
Reference point about which the marker should be drawn
-
-
Constructor Details
-
Marker
Constructs a new marker.- Parameters:
markerNode- the graphics node that represents the markerref- the reference pointorient- the orientation of the marker
-
-
Method Details
-
getRef
Returns the reference point of this marker. -
getOrient
public double getOrient()Returns the orientation of this marker. -
getMarkerNode
Returns theGraphicsNodethat draws this marker.
-