Class SingleRowLayoutStrategy

java.lang.Object
com.intellij.ui.tabs.impl.singleRow.SingleRowLayoutStrategy

public abstract class SingleRowLayoutStrategy extends Object
  • Constructor Details

    • SingleRowLayoutStrategy

      protected SingleRowLayoutStrategy(SingleRowLayout layout)
  • Method Details

    • getStartPosition

      public abstract int getStartPosition(SingleRowPassInfo data)
    • getToFitLength

      public abstract int getToFitLength(SingleRowPassInfo data)
    • getLengthIncrement

      public abstract int getLengthIncrement(Dimension dimension)
    • getMinPosition

      public abstract int getMinPosition(Rectangle bounds)
    • getMaxPosition

      public abstract int getMaxPosition(Rectangle bounds)
    • getFixedFitLength

      protected abstract int getFixedFitLength(SingleRowPassInfo data)
    • getLayoutRect

      public Rectangle getLayoutRect(SingleRowPassInfo data, int position, int length)
    • getLayoutRec

      protected abstract Rectangle getLayoutRec(int position, int fixedPos, int length, int fixedFitLength)
    • getFixedPosition

      protected abstract int getFixedPosition(SingleRowPassInfo data)
    • getMoreRect

      public abstract Rectangle getMoreRect(SingleRowPassInfo data)
    • isToCenterTextWhenStretched

      public abstract boolean isToCenterTextWhenStretched()
    • createShapeTransform

      public abstract ShapeTransform createShapeTransform(Rectangle rectangle)
    • canBeStretched

      public abstract boolean canBeStretched()
    • layoutComp

      public abstract void layoutComp(SingleRowPassInfo data)
    • isSideComponentOnTabs

      public boolean isSideComponentOnTabs()
    • isDragOut

      public abstract boolean isDragOut(TabLabel tabLabel, int deltaX, int deltaY)
    • 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

      public abstract int getScrollUnitIncrement(TabLabel label)
      Return the change of scroll offset for every unit of mouse wheel scrolling.
      Parameters:
      label - the first visible tab label
      Returns:
      the scroll amount