public class SeriesComponentHandle extends ComponentHandle
Graph
and provides information
about the series of the component.Modifier and Type | Field and Description |
---|---|
protected boolean |
m_seriesAreRows |
m_dataAccess
Constructor and Description |
---|
SeriesComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int series)
Constructor that uses an
int to identify the series of
the component. |
SeriesComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
int series,
int edge)
Constructor that uses an
int to identify the series of
the component. |
SeriesComponentHandle(int id,
java.lang.String name,
java.lang.Object comp,
SeriesComponentInfo info)
Constructor that uses a
SeriesComponentInfo to identify
the series of the component. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ComponentInfo |
getComponentInfo()
Retrieves the
SeriesComponentInfo for the component
that this SeriesComponentHandle represents. |
int |
getEdge()
Retrieves the edge that the series is on.
|
int |
getSeries()
Retrieves the series number of the component.
|
Attributes[] |
getSeriesAttributes()
The attributes that make up the series ex: Country - USA, Product - Coke
|
void |
setSeriesAreRows(boolean seriesAreRows) |
java.lang.String |
toString()
Retrieves a
String representation of this object. |
getComponent, getID, getName, setDataAccess
public SeriesComponentHandle(int id, java.lang.String name, java.lang.Object comp, int series)
int
to identify the series of
the component.id
- A constant, such as Graph.DATAMARKER
, that
identifies the component that this
SeriesComponentHandle
represents.name
- The name of the represented component.comp
- The actual reference to the component.series
- The series to which the component belongs.public SeriesComponentHandle(int id, java.lang.String name, java.lang.Object comp, SeriesComponentInfo info)
SeriesComponentInfo
to identify
the series of the component.id
- A constant, such as Graph.DATAMARKER
, that
identifies the component that this
SeriesComponentHandle
represents.name
- The name of the represented component.comp
- The actual reference to the component.info
- The SeriesComponentInfo
that identifies
the series.public SeriesComponentHandle(int id, java.lang.String name, java.lang.Object comp, int series, int edge)
int
to identify the series of
the component.id
- A constant, such as Graph.DATAMARKER
, that
identifies the component that this
SeriesComponentHandle
represents.name
- The name of the represented component.comp
- The actual reference to the component.series
- The series to which the component belongs.edge
- the edge the series is onpublic int getSeries()
SeriesComponentInfo
.
Series numbers begin at zero.public int getEdge()
Graph.isDataRowShownAsASeries
.DataDirector.COLUMN_EDGE
,
DataDirector.ROW_EDGE
,
Graph.isDataRowShownAsASeries()
public java.lang.String toString()
String
representation of this object.
The String
contains the name of this class, the name of the
component, and the series number of the component.
Series numbers begin at zero.toString
in class java.lang.Object
String
representation of this object.public ComponentInfo getComponentInfo()
SeriesComponentInfo
for the component
that this SeriesComponentHandle
represents.getComponentInfo
in class ComponentHandle
SeriesComponentInfo
can be null
,
but this is not normal.DataComponentHandle
public Attributes[] getSeriesAttributes()
public boolean equals(java.lang.Object o)
equals
in class ComponentHandle
SeriesComponentHandle
.public void setSeriesAreRows(boolean seriesAreRows)