com.ijchart.xychart.label
Class LabelGeneratorAdaptor

java.lang.Object
  extended by com.ijchart.xychart.label.LabelGeneratorAdaptor
All Implemented Interfaces:
ILabelGenerator
Direct Known Subclasses:
DefaultLabelGenerator, DefaultPieChartLabelGenerator

public abstract class LabelGeneratorAdaptor
extends java.lang.Object
implements ILabelGenerator

Title: IJChart

Description: a chart library for the Java(tm) platform.

An abstract adapter class for generator label. The methods in this class are empty. This class exists as convenience for creating label generator objects.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Constructor Summary
LabelGeneratorAdaptor()
           
 
Method Summary
 java.lang.String generateGroupLabel(IMatrixDataset dataset, int row, int column, int index)
           The flag controls whether or not the data type is group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelGeneratorAdaptor

public LabelGeneratorAdaptor()
Method Detail

isGroup

public boolean isGroup()
The flag controls whether or not the data type is group.

Specified by:
isGroup in interface ILabelGenerator
Returns:
boolean A boolean.

generateLabel

public java.lang.String generateLabel(IMatrixDataset dataset,
                                      int row,
                                      int column)
Generates a label for the specified item. The label is typically a formatted version of the data value, but any text can be used.

Specified by:
generateLabel in interface ILabelGenerator
Parameters:
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.
Returns:
String The label (possibly null).

generateGroupLabel

public java.lang.String generateGroupLabel(IMatrixDataset dataset,
                                           int row,
                                           int column,
                                           int index)
Generates a label for the specified item. The label is typically a formatted version of the data value, but any text can be used.

Specified by:
generateGroupLabel in interface ILabelGenerator
Parameters:
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.
Returns:
String The label (possibly null).