public class LineTabsLayoutBlock extends AbstractTabsLayoutBlock
TabsLayoutBlock orders its tabs in a line.| Modifier and Type | Class and Description |
|---|---|
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
Tabs. |
protected class |
LineTabsLayoutBlock.ZOrder
Calculates the
z-order of various
components requiring only a subset of all comparisons |
AbstractTabsLayoutBlock.TabsSize| Constructor and Description |
|---|
LineTabsLayoutBlock() |
| Modifier and Type | Method and Description |
|---|---|
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).
|
addTab, checkExistence, getBounds, getDockableTabMap, getOrientation, getOriginalTabLocations, getPane, getSelectedTab, getTabs, getTabsCount, getTabsOrderedByImportance, indexOfTab, insertTab, insertTab, isVisible, removeAllTabs, removeTab, removeTab, setBounds, setLayout, setOrientation, setPanepublic 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)
TabsLayoutBlocksize would
be applied.size - the size that might be appliedtrue if all tabs could be shownpublic Tab[] getTabs(Size size)
TabsLayoutBlocksize would be applied.size - the size that might be appliedpublic int getTabsCount(Size size)
TabsLayoutBlocksize would be applied.size - the size that might be appliedprotected void checkSelection()
public LineTabsLayoutBlock.LineSize[] getSizes()
LayoutBlocknullpublic int getIndexOfTabAt(Point mouseLocation)
TabsLayoutBlockmouseLocation.mouseLocation - the location of the mousemouseLocation or -1protected Tab[] getCurrentTabs()
z.public void doLayout()
AbstractTabsLayoutBlockTabs managed by this block. This method
must not add or remove tabs from the block.doLayout in class AbstractTabsLayoutBlockCopyright © 2017 Docking Frames. All rights reserved.