public abstract class SingleRowLayoutStrategy
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SingleRowLayoutStrategy(SingleRowLayout layout) |
Modifier and Type | Method and Description |
---|---|
abstract LayoutPassInfo.LineCoordinates |
computeExtraBorderLine(SingleRowPassInfo data) |
abstract ShapeTransform |
createShapeTransform(java.awt.Rectangle rectangle) |
abstract boolean |
drawPartialOverflowTabs()
Whether a tab that didn't fit completely on the right/bottom side in scrollable layout should be clipped or hidden altogether.
|
protected abstract int |
getFixedFitLength(SingleRowPassInfo data) |
protected abstract int |
getFixedPosition(SingleRowPassInfo data) |
protected abstract java.awt.Rectangle |
getLayoutRec(int position,
int fixedPos,
int length,
int fixedFitLength) |
java.awt.Rectangle |
getLayoutRect(SingleRowPassInfo data,
int position,
int length) |
abstract int |
getLengthIncrement(java.awt.Dimension dimension) |
abstract int |
getMaxPosition(java.awt.Rectangle bounds) |
abstract int |
getMinPosition(java.awt.Rectangle bounds) |
abstract java.awt.Rectangle |
getMoreRect(SingleRowPassInfo data) |
abstract int |
getScrollUnitIncrement(TabLabel label)
Return the change of scroll offset for every unit of mouse wheel scrolling.
|
abstract int |
getStartPosition(SingleRowPassInfo data) |
protected abstract java.awt.Rectangle |
getTabRectangle(SingleRowPassInfo data) |
abstract int |
getToFitLength(SingleRowPassInfo data) |
abstract boolean |
isDragOut(TabLabel tabLabel,
int deltaX,
int deltaY) |
abstract boolean |
isToCenterTextWhenStretched() |
boolean |
isToolbarOnTabs() |
abstract void |
layoutComp(SingleRowPassInfo data) |
void |
layoutComp(SingleRowPassInfo data,
int deltaX,
int deltaY,
int deltaWidth,
int deltaHeight) |
protected SingleRowLayoutStrategy(SingleRowLayout layout)
public abstract int getStartPosition(SingleRowPassInfo data)
public abstract int getToFitLength(SingleRowPassInfo data)
public abstract int getLengthIncrement(java.awt.Dimension dimension)
public abstract int getMinPosition(java.awt.Rectangle bounds)
public abstract int getMaxPosition(java.awt.Rectangle bounds)
protected abstract int getFixedFitLength(SingleRowPassInfo data)
public java.awt.Rectangle getLayoutRect(SingleRowPassInfo data, int position, int length)
protected abstract java.awt.Rectangle getLayoutRec(int position, int fixedPos, int length, int fixedFitLength)
protected abstract java.awt.Rectangle getTabRectangle(SingleRowPassInfo data)
protected abstract int getFixedPosition(SingleRowPassInfo data)
public abstract java.awt.Rectangle getMoreRect(SingleRowPassInfo data)
public abstract boolean isToCenterTextWhenStretched()
public abstract ShapeTransform createShapeTransform(java.awt.Rectangle rectangle)
public abstract void layoutComp(SingleRowPassInfo data)
public boolean isToolbarOnTabs()
public abstract boolean isDragOut(TabLabel tabLabel, int deltaX, int deltaY)
public abstract boolean drawPartialOverflowTabs()
public abstract int getScrollUnitIncrement(TabLabel label)
label
- the first visible tab labelpublic abstract LayoutPassInfo.LineCoordinates computeExtraBorderLine(SingleRowPassInfo data)
public void layoutComp(SingleRowPassInfo data, int deltaX, int deltaY, int deltaWidth, int deltaHeight)