public interface ILinePolicy extends IPolicy
TimelineObjectLayer
when rendering the timeline objects and when
calculating the bounds of these objects.Modifier and Type | Method and Description |
---|---|
int |
getLineCount(Object node,
ITreeTableModel model)
Returns the number of (inner) lines shown in the row of a hierarchy node.
|
int |
getLineHeight(Object node,
ITreeTableModel model,
int lineIndex,
int rowHeight)
Returns the height of a specific (inner) line.
|
int |
getLineIndex(Object node,
ITreeTableModel model,
Object timelineObject)
Returns the index of the line on which the given timeline object shall be
placed (the indices start with 0).
|
int |
getLineLocation(Object node,
ITreeTableModel model,
int lineIndex,
int rowHeight)
Returns the y-coordinate of a specific (inner) line.
|
boolean |
isLineVisible(Object node,
ITreeTableModel model,
int lineIndex)
Determines whether a specific (inner) line is currently visible or not.
|
int getLineCount(Object node, ITreeTableModel model)
node
- the hierarchy node for which to return the total number of
linesmodel
- the tree table model to which the node belongsint getLineIndex(Object node, ITreeTableModel model, Object timelineObject)
node
- the hierarchy node for which to return the total number of
linesmodel
- the tree table model to which the node belongstimelineObject
- the timeline object for which to return the line indexint getLineLocation(Object node, ITreeTableModel model, int lineIndex, int rowHeight)
node
- the hierarchy node for which to return the total number of
linesmodel
- the tree table model to which the node belongslineIndex
- the index of the line for which to return the y-coordinaterowHeight
- the height of the row to which the line belongsgetLineHeight(Object, ITreeTableModel, int, int)
int getLineHeight(Object node, ITreeTableModel model, int lineIndex, int rowHeight)
node
- the hierarchy node for which to return the total number of
linesmodel
- the tree table model to which the node belongslineIndex
- the index of the line for which to return the heightrowHeight
- the height of the row to which the line belongsboolean isLineVisible(Object node, ITreeTableModel model, int lineIndex)
node
- the hierarchy node for which to return the total number of
linesmodel
- the tree table model to which the node belongslineIndex
- the index of the line for which to determine the visibilityCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.