de.erichseifert.gral.plots
Class DataPoint

java.lang.Object
  extended by de.erichseifert.gral.plots.DataPoint
Direct Known Subclasses:
Tick

public class DataPoint
extends Object

Class for storing points of a plot.


Constructor Summary
DataPoint(PointND<Double> position, Drawable drawable, Shape point)
          Creates a new DataPoint object with the specified position, Drawable, and shape.
 
Method Summary
 Drawable getDrawable()
          Returns the Drawable which represents this DataPoint2D.
 Shape getPoint()
          Returns the point of this DataPoint2D.
 PointND<Double> getPosition()
          Returns the coordinates of this DataPoint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPoint

public DataPoint(PointND<Double> position,
                 Drawable drawable,
                 Shape point)
Creates a new DataPoint object with the specified position, Drawable, and shape.

Parameters:
position - Coordinates.
drawable - Representation.
point - Point.
Method Detail

getPosition

public PointND<Double> getPosition()
Returns the coordinates of this DataPoint.

Returns:
Position.

getDrawable

public Drawable getDrawable()
Returns the Drawable which represents this DataPoint2D.

Returns:
Drawable instance.

getPoint

public Shape getPoint()
Returns the point of this DataPoint2D.

Returns:
Point.


Copyright © 2009-2010. All Rights Reserved.