public interface ColumnDockActionSource
ColumnDockActionSource
is a list of DockActionSource
s, all with some offset. The
list and the offsets may change at any time.Modifier and Type | Method and Description |
---|---|
void |
addListener(ColumnDockActionSourceListener listener)
Adds the observer
listener to this source. |
Orientation |
getOrientation()
Gets the orientation of this source.
|
bibliothek.gui.dock.action.DockActionSource |
getSource(int index)
Gets the
index 'th source of this ColumnDockActionSource . |
int |
getSourceCount()
Gets the total number of
DockActionSource s that are currently available. |
int |
getSourceLength(int index)
Gets the available length in pixel for the
index 'th source. |
int |
getSourceOffset(int index)
Gets the offset of the
index 'th source in pixel. |
void |
removeListener(ColumnDockActionSourceListener listener)
Removes the observer
listener from this source. |
void addListener(ColumnDockActionSourceListener listener)
listener
to this source.listener
- the new observervoid removeListener(ColumnDockActionSourceListener listener)
listener
from this source.listener
- the observer to removeint getSourceCount()
DockActionSource
s that are currently available.bibliothek.gui.dock.action.DockActionSource getSource(int index)
index
'th source of this ColumnDockActionSource
.index
- the index of the sourceDockActionSource
, must not be null
but may be emptyOrientation getOrientation()
getSourceOffset(int)
points: either along the x, or along the y axis.null
int getSourceOffset(int index)
index
'th source in pixel. The offset is relative to
the Dockable
to which this ColumnDockActionSource
belongs.index
- the index of the sourceint getSourceLength(int index)
index
'th source.index
- the index of the source