|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.label.LabelGeneratorAdaptor
com.ijchart.xychart.label.DefaultLabelGenerator
public class DefaultLabelGenerator
Title: IJChart
Description: a chart library for the Java(tm) platform.
The default label generator,this class is immutable.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static boolean |
DEFAULT_LABEL_GENERATOR_GROUP
The default flag controls whether or not the data type is group. |
Constructor Summary | |
---|---|
DefaultLabelGenerator()
No argument constructor. |
|
DefaultLabelGenerator(boolean group)
Constructor. |
|
DefaultLabelGenerator(IChartDataFormatter formatter)
Constructor. |
|
DefaultLabelGenerator(IChartDataFormatter formatter,
boolean group)
Constructor. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object. |
java.lang.String |
generateGroupLabel(IMatrixDataset dataset,
int row,
int column,
int index)
Returns this data formatter. |
int |
hashCode()
Returns a hash code. |
boolean |
isGroup()
The flag controls whether or not the data type is group. |
java.lang.String |
toString()
Returns a string representation of this Range. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_LABEL_GENERATOR_GROUP
Constructor Detail |
---|
public DefaultLabelGenerator()
public DefaultLabelGenerator(boolean group)
group
- boolean
The flag controls whether or not the data type is group.public DefaultLabelGenerator(IChartDataFormatter formatter)
formatter
- IChartDataFormatter
The data formatter (null permitted).public DefaultLabelGenerator(IChartDataFormatter formatter, boolean group)
formatter
- IChartDataFormatter
The data formatter (null permitted).group
- boolean
The flag controls whether or not the data type is group.Method Detail |
---|
public IChartDataFormatter getFormatter()
public boolean isGroup()
isGroup
in interface ILabelGenerator
isGroup
in class LabelGeneratorAdaptor
public java.lang.String generateLabel(IMatrixDataset dataset, int row, int column)
generateLabel
in interface ILabelGenerator
generateLabel
in class LabelGeneratorAdaptor
dataset
- IMatrixDataset
The dataset (null not permitted).row
- int
The dataset row number,must be greater than or equal to 0.column
- int
The dataset column number,must be greater than or equal to 0.
public java.lang.String generateGroupLabel(IMatrixDataset dataset, int row, int column, int index)
generateGroupLabel
in interface ILabelGenerator
generateGroupLabel
in class LabelGeneratorAdaptor
dataset
- IMatrixDataset
The dataset (null not permitted).row
- int
The dataset row number,must be greater than or equal to 0.column
- int
The dataset column number,must be greater than or equal to 0.index
- int
The index of a dataset data.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
The object to test against (null permitted).
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |