List of usage examples for com.intellij.openapi.wm ToolWindowAnchor isHorizontal
public boolean isHorizontal()
From source file:com.intellij.ide.actions.ResizeToolWindowAction.java
License:Apache License
protected void stretch(ToolWindow wnd, boolean isHorizontalStretching, boolean isIncrementAction) { ToolWindowScrollable scrollable = getScrollable(wnd, isHorizontalStretching); if (scrollable == null) return;/* w ww .j a va 2 s .c o m*/ ToolWindowAnchor anchor = wnd.getAnchor(); if (isHorizontalStretching && !anchor.isHorizontal()) { incWidth(wnd, scrollable.getNextHorizontalScroll(), (anchor == ToolWindowAnchor.LEFT) == isIncrementAction); } else if (!isHorizontalStretching && anchor.isHorizontal()) { incHeight(wnd, scrollable.getNextVerticalScroll(), (anchor == ToolWindowAnchor.TOP) != isIncrementAction); } }