|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.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 ChartModelgetName in interface Namedpublic Chartable getPoint(int n)
ChartModel
getPoint in interface ChartModeln - the index
public int getPointCount()
ChartModel
getPointCount in interface ChartModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getRowCount()
getRowCount in interface TableModel
public Object getValueAt(int row,
int column)
getValueAt in interface TableModelpublic boolean isCyclical()
ChartModel
isCyclical in interface ChartModelpublic Annotation getAnnotation(int n)
AnnotationModel
getAnnotation in interface AnnotationModeln - the index.
public int getAnnotationCount()
AnnotationModel
getAnnotationCount in interface AnnotationModelpublic boolean isAnnotationsVisible()
AnnotationModel
isAnnotationsVisible in interface AnnotationModelpublic void setAnnotationsVisible(boolean visible)
AnnotationModel
setAnnotationsVisible in interface AnnotationModelvisible - whether annotations should be shownpublic Iterator<Chartable> iterator()
iterator in interface Iterable<Chartable>public void addChartModelListener(ChartModelListener listener)
ChartModel
addChartModelListener in interface ChartModellistener - the listener that will receive eventspublic void removeChartModelListener(ChartModelListener listener)
ChartModel
removeChartModelListener in interface ChartModellistener - 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 | ||||||||