public abstract class SingleRowLayout extends TabsLayoutBase implements MorePopupAware
Disposable.Parent| Modifier and Type | Field and Description |
|---|---|
SingleRowPassInfo |
myLastSingRowLayout |
ActionToolbar |
myMoreToolbar |
myCallbackKEY| Constructor and Description |
|---|
SingleRowLayout() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applyTabLayout(SingleRowPassInfo data,
TabLabel label,
int length) |
protected void |
calculateRequiredLength(SingleRowPassInfo data) |
boolean |
canShowMorePopup() |
protected boolean |
checkLayoutLabels(SingleRowPassInfo data,
boolean isForcedLayout) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected SingleRowPassInfo |
doLayout(java.util.List<TabInfo> infosToShow,
boolean isForced) |
TabsLayoutCallback |
getCallback() |
protected double |
getDragOutMultiplier() |
int |
getDropIndexFor(java.awt.Point point) |
protected int |
getRequiredLength(TabInfo eachInfo) |
int |
getScrollUnitIncrement() |
protected int |
getSplitterSideTabsLimit() |
void |
init(TabsLayoutCallback callback) |
boolean |
isDragOut(TabLabel tabLabel,
int deltaX,
int deltaY) |
boolean |
isSingleRow() |
boolean |
isTabOutOfView(TabInfo tabInfo) |
boolean |
isToolbarOnTabs() |
protected java.awt.Rectangle |
layout(javax.swing.JComponent c,
int x,
int y,
int width,
int height) |
protected java.awt.Rectangle |
layout(javax.swing.JComponent component,
java.awt.Rectangle bounds) |
protected java.awt.Rectangle |
layoutComp(int componentX,
int componentY,
javax.swing.JComponent comp,
int deltaWidth,
int deltaHeight) |
protected java.awt.Rectangle |
layoutComp(java.awt.Rectangle bounds,
javax.swing.JComponent comp,
int deltaWidth,
int deltaHeight) |
protected void |
layoutLabels(SingleRowPassInfo data) |
protected void |
layoutMoreButton(SingleRowPassInfo data) |
protected void |
prepareLayoutPassInfo(SingleRowPassInfo data,
TabInfo selected) |
protected abstract void |
recomputeToLayout(SingleRowPassInfo data) |
void |
scroll(int units) |
void |
showMorePopup() |
getMouseListener, getMouseMotionListener, getMouseWheelListener, ignoreTabLabelLimitedWidthWhenPaint, layoutContainer, mouseMotionEventDispatched, reset, resetLayout, resetLayoutpublic SingleRowPassInfo myLastSingRowLayout
public final ActionToolbar myMoreToolbar
public void init(TabsLayoutCallback callback)
init in interface TabsLayoutinit in class TabsLayoutBaseprotected boolean checkLayoutLabels(SingleRowPassInfo data, boolean isForcedLayout)
public void scroll(int units)
public int getScrollUnitIncrement()
public void dispose()
Disposabledispose in interface Disposabledispose in class TabsLayoutBaseprotected java.awt.Rectangle layoutComp(int componentX,
int componentY,
javax.swing.JComponent comp,
int deltaWidth,
int deltaHeight)
layoutComp in class TabsLayoutBaseprotected java.awt.Rectangle layoutComp(java.awt.Rectangle bounds,
javax.swing.JComponent comp,
int deltaWidth,
int deltaHeight)
layoutComp in class TabsLayoutBaseprotected java.awt.Rectangle layout(javax.swing.JComponent c,
int x,
int y,
int width,
int height)
layout in class TabsLayoutBaseprotected java.awt.Rectangle layout(javax.swing.JComponent component,
java.awt.Rectangle bounds)
layout in class TabsLayoutBaseprotected double getDragOutMultiplier()
getDragOutMultiplier in class TabsLayoutBaseprotected SingleRowPassInfo doLayout(java.util.List<TabInfo> infosToShow, boolean isForced)
doLayout in class TabsLayoutBaseprotected void prepareLayoutPassInfo(SingleRowPassInfo data, TabInfo selected)
protected void layoutMoreButton(SingleRowPassInfo data)
protected void layoutLabels(SingleRowPassInfo data)
protected boolean applyTabLayout(SingleRowPassInfo data, TabLabel label, int length)
protected abstract void recomputeToLayout(SingleRowPassInfo data)
protected void calculateRequiredLength(SingleRowPassInfo data)
protected int getRequiredLength(TabInfo eachInfo)
public boolean canShowMorePopup()
canShowMorePopup in interface MorePopupAwarepublic void showMorePopup()
showMorePopup in interface MorePopupAwarepublic boolean isTabOutOfView(TabInfo tabInfo)
public int getDropIndexFor(java.awt.Point point)
getDropIndexFor in interface TabsLayoutpublic boolean isToolbarOnTabs()
isToolbarOnTabs in interface TabsLayoutisToolbarOnTabs in class TabsLayoutBasepublic boolean isSingleRow()
isSingleRow in interface TabsLayoutpublic boolean isDragOut(TabLabel tabLabel, int deltaX, int deltaY)
isDragOut in interface TabsLayoutisDragOut in class TabsLayoutBasepublic TabsLayoutCallback getCallback()
protected int getSplitterSideTabsLimit()