|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITimeBarViewState
A standard viewstate for the timebar viewer. This mainly holds the row heights/column widths.
Method Summary | |
---|---|
void |
addTimeBarViewStateListener(ITimeBarViewStateListener listener)
Add a listener to be informed about row height/width changes. |
int |
getDefaultRowHeight()
Retrieve the default row height. |
boolean |
getDrawOverlapping(TimeBarRow row)
Check whether the intervals in a certain row should be drawn overlapping. |
int |
getRowHeight(TimeBarRow row)
Retrieve the height of the given row. |
IRowHeightStrategy |
getRowHeightStrategy()
Retrieve the row height strategy if set. |
boolean |
getUseVariableRowHeights()
Retrieve whether to use variable row heights/widths. |
void |
removeTimeBarViewStateListener(ITimeBarViewStateListener listener)
Remove a viewstate listener. |
void |
setDefaultRowHeight(int height)
Set the default height for all rows. |
void |
setDrawOverlapping(TimeBarRow row,
boolean drawOverlapping)
Set for a single row whether the intervals should be drawn overlapping (overwriting the global setting done in the viewer/delegate). |
void |
setRowHeight(TimeBarRow row,
int height)
Set the height for a specific row. |
void |
setRowHeightStrategy(IRowHeightStrategy rowHeightStrategy)
Set a strategy for height calculation. |
void |
setUseVariableRowHeights(boolean useVariableRowHeights)
Set whether to use variable row heights/widths. |
Method Detail |
---|
void setDefaultRowHeight(int height)
height
- heightint getDefaultRowHeight()
int getRowHeight(TimeBarRow row)
row
- row to receive the height for
void setRowHeight(TimeBarRow row, int height)
row
- row to set the height forheight
- the height of the rowboolean getDrawOverlapping(TimeBarRow row)
row
- row to look for
void setDrawOverlapping(TimeBarRow row, boolean drawOverlapping)
row
- the row to set the property fordrawOverlapping
- true
for overlapping drawingvoid setUseVariableRowHeights(boolean useVariableRowHeights)
useVariableRowHeights
- true
to use variable row heights/widths. This will have an impact no
some performance aspects in the timebar viewer.boolean getUseVariableRowHeights()
true
if variable row heights/width should be usedvoid setRowHeightStrategy(IRowHeightStrategy rowHeightStrategy)
rowHeightStrategy
- the strategy for calculation or null
to remove a strategyIRowHeightStrategy getRowHeightStrategy()
null
void addTimeBarViewStateListener(ITimeBarViewStateListener listener)
listener
- listener to be informedvoid removeTimeBarViewStateListener(ITimeBarViewStateListener listener)
listener
- listener to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |