ChartCat 1.2

li.netcat.chart.data
Class ColumnLegendModel

java.lang.Object
  extended byli.netcat.chart.data.AbstractChartModelAdapter
      extended byli.netcat.chart.data.ColumnLegendModel
All Implemented Interfaces:
ChartModelAdapter, LegendModel

public class ColumnLegendModel
extends AbstractChartModelAdapter
implements LegendModel

Implementation of a legend model that uses the names of the columns as text for the legend.

Author:
Arthur Marxer

Constructor Summary
ColumnLegendModel()
          Constructs a new and empty ColumnLegendModel.
 
Method Summary
 int getColumnIndex(int entryIndex)
          Returns the index of the column for a given entry index.
 int getEntryCount()
          Returns the number of entries in this LegendModel.
 int getRowIndex(int entryIndex)
          Returns the index of the row for a given entry index.
 java.lang.String getText(int entryIndex)
          Returns the text for a given entry index.
 void invalidate()
          Invoked when the underlying model changes.
 
Methods inherited from class li.netcat.chart.data.AbstractChartModelAdapter
getChartModel, setChartModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface li.netcat.chart.data.ChartModelAdapter
getChartModel, setChartModel
 

Constructor Detail

ColumnLegendModel

public ColumnLegendModel()
Constructs a new and empty ColumnLegendModel.

Method Detail

getEntryCount

public int getEntryCount()
Description copied from interface: LegendModel
Returns the number of entries in this LegendModel.

Specified by:
getEntryCount in interface LegendModel
Returns:
The number of entries in this LegendModel.

getText

public java.lang.String getText(int entryIndex)
Description copied from interface: LegendModel
Returns the text for a given entry index.

Specified by:
getText in interface LegendModel
Parameters:
entryIndex - The index of the entry, it must be >=0 and <getEntryCount().
Returns:
The text at the given index, might also be null.

getRowIndex

public int getRowIndex(int entryIndex)
Description copied from interface: LegendModel
Returns the index of the row for a given entry index.

Specified by:
getRowIndex in interface LegendModel
Parameters:
entryIndex - The index of the entry, it must be >=0 and <getEntryCount().
Returns:
The index of the data row.

getColumnIndex

public int getColumnIndex(int entryIndex)
Description copied from interface: LegendModel
Returns the index of the column for a given entry index.

Specified by:
getColumnIndex in interface LegendModel
Parameters:
entryIndex - The index of the entry, it must be >=0 and <getEntryCount().
Returns:
The index of the data column.

invalidate

public void invalidate()
Description copied from class: AbstractChartModelAdapter
Invoked when the underlying model changes. Subclasses may override this method and discard all buffered data.

Overrides:
invalidate in class AbstractChartModelAdapter

ChartCat 1.2

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print