|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.stack.tab.layouting.AbstractTabsLayoutBlock bibliothek.gui.dock.station.stack.tab.layouting.LineTabsLayoutBlock
public class LineTabsLayoutBlock
This TabsLayoutBlock
orders its tabs in a line.
Nested Class Summary | |
---|---|
class |
LineTabsLayoutBlock.LineSize
Size information about a line on a LineTabsLayoutBlock . |
protected class |
LineTabsLayoutBlock.SizeCollector
Used to calculate the minimum and preferred size of a set of Tab s. |
protected class |
LineTabsLayoutBlock.ZOrder
Calculates the z-order of various
components requiring only a subset of all comparisons |
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.stack.tab.layouting.AbstractTabsLayoutBlock |
---|
AbstractTabsLayoutBlock.TabsSize |
Constructor Summary | |
---|---|
LineTabsLayoutBlock()
|
Method Summary | |
---|---|
protected void |
checkSelection()
Creates the tab that should be selected and adds it at an appropriate location. |
void |
doLayout()
Updates the layout of this block. |
protected Tab[] |
getCurrentTabs()
Gets all the tabs that are currently shown, ordered by z . |
int |
getIndexOfTabAt(Point mouseLocation)
Searches the index of the tab beneath mouseLocation . |
LineTabsLayoutBlock.LineSize[] |
getSizes()
Creates a map of all sizes for which this block knows how to make an optimal layout. |
Tab[] |
getTabs(Size size)
Gets all the tabs that would be shown if size would be applied. |
int |
getTabsCount(Size size)
Tells how many tabs could be shown if size would be applied. |
boolean |
isAllTabs(Size size)
Tells whether this block would be able to show all tabs if size would
be applied. |
boolean |
isSameSize()
If set, then all tabs have the same height (width) if laid out horizontal (vertical). |
void |
setSameSize(boolean sameSize)
If set, then all tabs have the same height (width) if laid out horizontal (vertical). |
Methods inherited from class bibliothek.gui.dock.station.stack.tab.layouting.AbstractTabsLayoutBlock |
---|
addTab, checkExistence, getBounds, getDockableTabMap, getOrientation, getOriginalTabLocations, getPane, getSelectedTab, getTabs, getTabsCount, getTabsOrderedByImportance, indexOfTab, insertTab, insertTab, isVisible, removeAllTabs, removeTab, removeTab, setBounds, setLayout, setOrientation, setPane |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineTabsLayoutBlock()
Method Detail |
---|
public boolean isSameSize()
true
if all tabs have the same sizepublic void setSameSize(boolean sameSize)
sameSize
- whether all tabs should have the same height.public boolean isAllTabs(Size size)
TabsLayoutBlock
size
would
be applied.
size
- the size that might be applied
true
if all tabs could be shownpublic Tab[] getTabs(Size size)
TabsLayoutBlock
size
would be applied.
size
- the size that might be applied
public int getTabsCount(Size size)
TabsLayoutBlock
size
would be applied.
size
- the size that might be applied
protected void checkSelection()
public LineTabsLayoutBlock.LineSize[] getSizes()
LayoutBlock
null
public int getIndexOfTabAt(Point mouseLocation)
TabsLayoutBlock
mouseLocation
.
mouseLocation
- the location of the mouse
mouseLocation
or -1
protected Tab[] getCurrentTabs()
z
.
public void doLayout()
AbstractTabsLayoutBlock
Tab
s managed by this block. This method
must not add or remove tabs from the block.
doLayout
in class AbstractTabsLayoutBlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |