public abstract class SingleRowLayout extends TabsLayoutBase implements MorePopupAware
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
SingleRowPassInfo |
myLastSingRowLayout |
ActionToolbar |
myMoreToolbar |
myCallback
KEY
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, resetLayout
public SingleRowPassInfo myLastSingRowLayout
public final ActionToolbar myMoreToolbar
public void init(TabsLayoutCallback callback)
init
in interface TabsLayout
init
in class TabsLayoutBase
protected boolean checkLayoutLabels(SingleRowPassInfo data, boolean isForcedLayout)
public void scroll(int units)
public int getScrollUnitIncrement()
public void dispose()
Disposable
dispose
in interface Disposable
dispose
in class TabsLayoutBase
protected java.awt.Rectangle layoutComp(int componentX, int componentY, javax.swing.JComponent comp, int deltaWidth, int deltaHeight)
layoutComp
in class TabsLayoutBase
protected java.awt.Rectangle layoutComp(java.awt.Rectangle bounds, javax.swing.JComponent comp, int deltaWidth, int deltaHeight)
layoutComp
in class TabsLayoutBase
protected java.awt.Rectangle layout(javax.swing.JComponent c, int x, int y, int width, int height)
layout
in class TabsLayoutBase
protected java.awt.Rectangle layout(javax.swing.JComponent component, java.awt.Rectangle bounds)
layout
in class TabsLayoutBase
protected double getDragOutMultiplier()
getDragOutMultiplier
in class TabsLayoutBase
protected SingleRowPassInfo doLayout(java.util.List<TabInfo> infosToShow, boolean isForced)
doLayout
in class TabsLayoutBase
protected 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 MorePopupAware
public void showMorePopup()
showMorePopup
in interface MorePopupAware
public boolean isTabOutOfView(TabInfo tabInfo)
public int getDropIndexFor(java.awt.Point point)
getDropIndexFor
in interface TabsLayout
public boolean isToolbarOnTabs()
isToolbarOnTabs
in interface TabsLayout
isToolbarOnTabs
in class TabsLayoutBase
public boolean isSingleRow()
isSingleRow
in interface TabsLayout
public boolean isDragOut(TabLabel tabLabel, int deltaX, int deltaY)
isDragOut
in interface TabsLayout
isDragOut
in class TabsLayoutBase
public TabsLayoutCallback getCallback()
protected int getSplitterSideTabsLimit()