org.apache.batik.gvt

Class Marker

public class Marker extends Object

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.
Field Summary
protected GraphicsNodemarkerNode
GraphicsNode this marker is associated to
protected doubleorient
Rotation angle, about (0, 0) is user space.
protected Point2Dref
Reference point about which the marker should be drawn
Constructor Summary
Marker(GraphicsNode markerNode, Point2D ref, double orient)
Constructs a new marker.
Method Summary
GraphicsNodegetMarkerNode()
Returns the GraphicsNode that draws this marker.
doublegetOrient()
Returns the orientation of this marker.
Point2DgetRef()
Returns the reference point of this marker.

Field Detail

markerNode

protected GraphicsNode markerNode
GraphicsNode this marker is associated to

orient

protected double orient
Rotation 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

ref

protected Point2D ref
Reference point about which the marker should be drawn

Constructor Detail

Marker

public Marker(GraphicsNode markerNode, Point2D ref, double orient)
Constructs a new marker.

Parameters: markerNode the graphics node that represents the marker ref the reference point orient the orientation of the marker

Method Detail

getMarkerNode

public GraphicsNode getMarkerNode()
Returns the GraphicsNode that draws this marker.

getOrient

public double getOrient()
Returns the orientation of this marker.

getRef

public Point2D getRef()
Returns the reference point of this marker.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.