public class

DataPoint

extends Object
implements Data<Tx, Ty> SelectableData
java.lang.Object
   ↳ com.shinobicontrols.charts.DataPoint<Tx, Ty>
Known Direct Subclasses

Class Overview

Represents a simple XY data point for a Series on a ShinobiChart.

In a chart, one or more series are visualized. The data displayed by a series is contained in a corresponding DataAdapter. Each of these data adapters contains individual data points (objects that implement Data ). This class is one such implementation of that interface, and is designed to represent these data items.

Each DataPoint represents a simple data point in a series. The simple data point is made up of an X and a Y object (not multiple Y objects). It does not need to know what these objects are, it merely looks after them. Knowing how to interpret and translate these objects onto a chart is the job of an Axis.

Summary

Public Constructors
DataPoint(Tx x, Ty y)
Constructs a simple data point with the given X and Y values.
DataPoint(Tx x, Ty y, boolean selected)
Constructs a simple data point with the given X and Y values.
Public Methods
boolean getSelected()
Returns the initial selection state
Tx getX()
Returns the X value object
Ty getY()
Returns the Y value object
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.shinobicontrols.charts.Data
From interface com.shinobicontrols.charts.SelectableData

Public Constructors

public DataPoint (Tx x, Ty y)

Constructs a simple data point with the given X and Y values. Note that you are required to supply non-null values for x and y

Parameters
x The X value for the data point
y The Y value for the data point

public DataPoint (Tx x, Ty y, boolean selected)

Constructs a simple data point with the given X and Y values. This overload allows you to set an initial selection state for the point Note that you are required to supply non-null values for x and y

Parameters
x The X value for the data point
y The Y value for the data point
selected The initial selection state

Public Methods

public boolean getSelected ()

Returns the initial selection state

Returns
  • The initial selection state

public Tx getX ()

Returns the X value object

Returns
  • The X value object

public Ty getY ()

Returns the Y value object

Returns
  • The Y value object