com.tensegrity.graphics.primitive2D
Class Marker2D

java.lang.Object
  extended bycom.tensegrity.graphics.primitive2D.Marker2D

public final class Marker2D
extends java.lang.Object

The Marker2D class represents markers in 2d space. This includes arrows.

Version:
$Id: Marker2D.java,v 1.20 2005/04/29 09:02:42 AndreasEbbert Exp $
Author:
MichaelKegel

Field Summary
static int[][][] LINE_END
          global variable that defines a specific marker (or arrow) type
 
Method Summary
static Boundary getBoundingBox(Transform2D xform_context, java.lang.Object[][] markerdata, double direction, double org_x, double org_y)
          Returns the bounding box of the marker with the given properties
static void paint(Device device, Transform2D xform_context, java.lang.Object[][] markerdata, double direction, double org_x, double org_y)
          Global method that renders a Marker2D specified through the given markerdata onto the Device given by device at the coordinate given by org_x and org_y using the context transformation given by xform_context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_END

public static final int[][][] LINE_END
global variable that defines a specific marker (or arrow) type

Method Detail

paint

public static final void paint(Device device,
                               Transform2D xform_context,
                               java.lang.Object[][] markerdata,
                               double direction,
                               double org_x,
                               double org_y)
Global method that renders a Marker2D specified through the given markerdata onto the Device given by device at the coordinate given by org_x and org_y using the context transformation given by xform_context. The direction of the marker is specified by direction.

Parameters:
device - the Device to render the Marker2D onto
xform_context - the context transformation to use
markerdata - the data that specifies the Marker2D
direction - the direction of the Marker2D
org_x - the x component of the Marker2Ds origin
org_y - the y component of the Marker2Ds origin

getBoundingBox

public static final Boundary getBoundingBox(Transform2D xform_context,
                                            java.lang.Object[][] markerdata,
                                            double direction,
                                            double org_x,
                                            double org_y)
Returns the bounding box of the marker with the given properties

Parameters:
xform_context - The context transform
markerdata - The format data of the marker
direction - The direction
org_x - The origin x coordinate
org_y - The origin y coordinate
Returns:
The bounding box of the marker with the given properties


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.