Class SingleRowLayoutStrategy
java.lang.Object
com.intellij.ui.tabs.impl.singleRow.SingleRowLayoutStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract ShapeTransformcreateShapeTransform(Rectangle rectangle) abstract booleanWhether a tab that didn't fit completely on the right/bottom side in scrollable layout should be clipped or hidden altogether.protected abstract intprotected abstract intprotected abstract RectanglegetLayoutRec(int position, int fixedPos, int length, int fixedFitLength) getLayoutRect(SingleRowPassInfo data, int position, int length) abstract intgetLengthIncrement(Dimension dimension) abstract intgetMaxPosition(Rectangle bounds) abstract intgetMinPosition(Rectangle bounds) abstract RectanglegetMoreRect(SingleRowPassInfo data) abstract intgetScrollUnitIncrement(TabLabel label) Return the change of scroll offset for every unit of mouse wheel scrolling.abstract intabstract intabstract booleanbooleanabstract booleanabstract voidlayoutComp(SingleRowPassInfo data)
-
Constructor Details
-
SingleRowLayoutStrategy
-
-
Method Details
-
getStartPosition
-
getToFitLength
-
getLengthIncrement
-
getMinPosition
-
getMaxPosition
-
getFixedFitLength
-
getLayoutRect
-
getLayoutRec
protected abstract Rectangle getLayoutRec(int position, int fixedPos, int length, int fixedFitLength) -
getFixedPosition
-
getMoreRect
-
isToCenterTextWhenStretched
public abstract boolean isToCenterTextWhenStretched() -
createShapeTransform
-
canBeStretched
public abstract boolean canBeStretched() -
layoutComp
-
isSideComponentOnTabs
public boolean isSideComponentOnTabs() -
isDragOut
-
drawPartialOverflowTabs
public 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.- Returns:
- true if the tab should be clipped, false if hidden.
-
getScrollUnitIncrement
Return the change of scroll offset for every unit of mouse wheel scrolling.- Parameters:
label- the first visible tab label- Returns:
- the scroll amount
-