|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.jidesoft.chart.model.ChartableTableModel
public class ChartableTableModel
A simple class that is both chartable and can be displayed in a table
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ChartableTableModel(String name,
List<Chartable> chartables)
|
Method Summary | |
---|---|
void |
addChartModelListener(ChartModelListener listener)
Register the listener's interest in this chart model. |
protected void |
fireModelChanged()
|
Annotation |
getAnnotation(int n)
Gets the nth annotation. |
int |
getAnnotationCount()
Returns the number of annotations |
int |
getColumnCount()
|
String |
getColumnName(int column)
|
String |
getName()
Models generally need a name so that they can be easily differentiated from one another without inspecting the data |
Chartable |
getPoint(int n)
Gets the nth point. |
int |
getPointCount()
Gets the number of points in the data set |
int |
getRowCount()
|
Object |
getValueAt(int row,
int column)
|
boolean |
isAnnotationsVisible()
Use this method to discover whether annotations should be shown or hidden. |
boolean |
isCyclical()
Should a line be drawn from the last to the first point? |
Iterator<Chartable> |
iterator()
|
void |
removeChartModelListener(ChartModelListener listener)
De-register the listener's interest in this chart model. |
void |
setAnnotationsVisible(boolean visible)
Specify whether annotations should be shown |
void |
update()
|
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartableTableModel(String name, List<Chartable> chartables)
Method Detail |
---|
public String getName()
getName
in interface ChartModel
getName
in interface Named
public Chartable getPoint(int n)
ChartModel
getPoint
in interface ChartModel
n
- the index
public int getPointCount()
ChartModel
getPointCount
in interface ChartModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public boolean isCyclical()
ChartModel
isCyclical
in interface ChartModel
public Annotation getAnnotation(int n)
AnnotationModel
getAnnotation
in interface AnnotationModel
n
- the index.
public int getAnnotationCount()
AnnotationModel
getAnnotationCount
in interface AnnotationModel
public boolean isAnnotationsVisible()
AnnotationModel
isAnnotationsVisible
in interface AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
setAnnotationsVisible
in interface AnnotationModel
visible
- whether annotations should be shownpublic Iterator<Chartable> iterator()
iterator
in interface Iterable<Chartable>
public void addChartModelListener(ChartModelListener listener)
ChartModel
addChartModelListener
in interface ChartModel
listener
- the listener that will receive eventspublic void removeChartModelListener(ChartModelListener listener)
ChartModel
removeChartModelListener
in interface ChartModel
listener
- the listener that will no longer receive eventspublic void update()
protected void fireModelChanged()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |