|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.DefaultTableColumnModel
eu.beesoft.gantt.chart.HeaderModel
public final class HeaderModel
Model used to paint major or minor header for ChartComponent.
Instances of this class are used by ChartHeader.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.DefaultTableColumnModel |
|---|
columnMargin, columnSelectionAllowed, changeEvent, listenerList, selectionModel, tableColumns, totalColumnWidth |
| Constructor Summary | |
|---|---|
HeaderModel(ChartHeader header,
boolean isMajor)
Creates a new instance of HeaderModel. |
|
| Method Summary | |
|---|---|
ChartHeader |
getHeader()
Returns instance of ChartHeader to which this model belongs. |
ChartComponent |
getChartComponent()
Returns instance of ChartComponent which is used in JGantt. |
TimeUnit |
getTimeUnit()
Returns TimeUnit for this model. |
boolean |
update()
Updates the model according to the last changes. |
| Methods inherited from class javax.swing.table.DefaultTableColumnModel |
|---|
addColumn, addColumnModelListener, createSelectionModel, fireColumnAdded, fireColumnMarginChanged, fireColumnMoved, fireColumnRemoved, fireColumnSelectionChanged, getColumn, getColumnCount, getColumnIndex, getColumnIndexAtX, getColumnMargin, getColumnModelListeners, getColumns, getColumnSelectionAllowed, getListeners, getSelectedColumnCount, getSelectedColumns, getSelectionModel, getTotalColumnWidth, moveColumn, propertyChange, recalcWidthCache, removeColumn, removeColumnModelListener, setColumnMargin, setColumnSelectionAllowed, setSelectionModel, valueChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderModel(ChartHeader header,
boolean isMajor)
header - - Swing component to which this model belongsisMajor - - true, if this instance is model for major header, false
otherwise| Method Detail |
|---|
public ChartHeader getHeader()
ChartHeader to which this model belongs.
public ChartComponent getChartComponent()
ChartComponent which is used in JGantt.
public TimeUnit getTimeUnit()
TimeUnit for this model. It obtains it from
ZoomPolicy.
public boolean update()
ChartHeader.update() method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||