Java 类com.intellij.openapi.ui.ThreeComponentsSplitter 实例源码

项目:intellij-ce-playground    文件:GfxTraceViewPanel.java   
public void resize() {
  ThreeComponentsSplitter threePane = getThreePanes();

  assert (threePane.getLastComponent() instanceof JBSplitter);
  JBSplitter bottomSplitter = (JBSplitter)threePane.getLastComponent();

  assert (threePane.getInnerComponent() instanceof JBSplitter);
  JBSplitter middleSplitter = (JBSplitter)threePane.getInnerComponent();

  int scrubberHeight = getScrubberScrollPane().getMinimumSize().height;
  if (threePane.getFirstSize() < scrubberHeight) {
    int totalHeight = threePane.getHeight();
    int residualHeightAfter = Math.max(0, totalHeight - scrubberHeight);

    threePane.setFirstSize(scrubberHeight);
    int middleSize = middleSplitter.getPreferredSize().height;
    int bottomSize = bottomSplitter.getPreferredSize().height;
    if (bottomSize + middleSize > 0) {
      threePane.setLastSize(residualHeightAfter * bottomSize / (bottomSize + middleSize)); // Split the middle and bottom panes evenly.
    }
    else {
      threePane.setLastSize(residualHeightAfter / 2);
    }
  }
}
项目:intellij-ce-playground    文件:WiseSplitter.java   
public WiseSplitter(final Runnable refresher, final Splitter parentSplitter) {
  myRefresher = refresher;
  myParentSplitter = parentSplitter;

  myInnerSplitter = new ThreeComponentsSplitter(false);
  Disposer.register(this, myInnerSplitter);
  myInnerSplitter.setHonorComponentsMinimumSize(true);
  myInnerSplitterContents = new HashMap<CommittedChangesFilterKey, Integer>();
  updateBorders();
}
项目:tools-idea    文件:WiseSplitter.java   
public WiseSplitter(final Runnable refresher, final Splitter parentSplitter) {
  myRefresher = refresher;
  myParentSplitter = parentSplitter;

  myInnerSplitter = new ThreeComponentsSplitter(false);
  Disposer.register(this, myInnerSplitter);
  myInnerSplitter.setHonorComponentsMinimumSize(true);
  myInnerSplitterContents = new HashMap<CommittedChangesFilterKey, Integer>();
  updateBorders();
}
项目:consulo    文件:WiseSplitter.java   
public WiseSplitter(final Runnable refresher, final Splitter parentSplitter) {
  myRefresher = refresher;
  myParentSplitter = parentSplitter;

  myInnerSplitter = new ThreeComponentsSplitter(false);
  Disposer.register(this, myInnerSplitter);
  myInnerSplitter.setHonorComponentsMinimumSize(true);
  myInnerSplitterContents = new HashMap<CommittedChangesFilterKey, Integer>();
  updateBorders();
}
项目:intellij-ce-playground    文件:ToolWindowsPane.java   
ToolWindowsPane(final IdeFrameImpl frame, ToolWindowManagerImpl manager) {
  myManager = manager;

  setOpaque(false);
  myFrame = frame;
  myId2Button = new HashMap<String, StripeButton>();
  myId2Decorator = new HashMap<String, InternalDecorator>();
  myButton2Info = new HashMap<StripeButton, WindowInfoImpl>();
  myDecorator2Info = new HashMap<InternalDecorator, WindowInfoImpl>();
  myUISettingsListener = new MyUISettingsListenerImpl();
  myId2SplitProportion = new HashMap<String, Float>();

  // Splitters

  myVerticalSplitter = new ThreeComponentsSplitter(true);
  Disposer.register(this, myVerticalSplitter);
  myVerticalSplitter.setDividerWidth(0);
  myVerticalSplitter.setDividerMouseZoneSize(Registry.intValue("ide.splitter.mouseZone"));
  myVerticalSplitter.setBackground(Color.gray);
  myHorizontalSplitter = new ThreeComponentsSplitter(false);
  Disposer.register(this, myHorizontalSplitter);
  myHorizontalSplitter.setDividerWidth(0);
  myHorizontalSplitter.setDividerMouseZoneSize(Registry.intValue("ide.splitter.mouseZone"));
  myHorizontalSplitter.setBackground(Color.gray);
  myWidescreen = UISettings.getInstance().WIDESCREEN_SUPPORT;
  myLeftHorizontalSplit = UISettings.getInstance().LEFT_HORIZONTAL_SPLIT;
  myRightHorizontalSplit = UISettings.getInstance().RIGHT_HORIZONTAL_SPLIT;
  if (myWidescreen) {
    myHorizontalSplitter.setInnerComponent(myVerticalSplitter);
  }
  else {
    myVerticalSplitter.setInnerComponent(myHorizontalSplitter);
  }

  // Tool stripes

  myTopStripe = new Stripe(SwingConstants.TOP, manager);
  myStripes.add(myTopStripe);
  myLeftStripe = new Stripe(SwingConstants.LEFT, manager);
  myStripes.add(myLeftStripe);
  myBottomStripe = new Stripe(SwingConstants.BOTTOM, manager);
  myStripes.add(myBottomStripe);
  myRightStripe = new Stripe(SwingConstants.RIGHT, manager);
  myStripes.add(myRightStripe);

  updateToolStripesVisibility();

  // Layered pane

  myLayeredPane = new MyLayeredPane(myWidescreen ? myHorizontalSplitter : myVerticalSplitter);

  // Compose layout

  add(myTopStripe, JLayeredPane.POPUP_LAYER);
  add(myLeftStripe, JLayeredPane.POPUP_LAYER);
  add(myBottomStripe, JLayeredPane.POPUP_LAYER);
  add(myRightStripe, JLayeredPane.POPUP_LAYER);
  add(myLayeredPane, JLayeredPane.DEFAULT_LAYER);
}
项目:intellij-ce-playground    文件:ToolWindowsPane.java   
Splitter(ThreeComponentsSplitter splitter) {
  mySplitter = splitter;
}
项目:intellij-ce-playground    文件:ToolWindowsPane.java   
FirstComponent(ThreeComponentsSplitter splitter) {
  super(splitter);
}
项目:intellij-ce-playground    文件:ToolWindowsPane.java   
LastComponent(ThreeComponentsSplitter splitter) {
  super(splitter);
}
项目:intellij-ce-playground    文件:GfxTraceViewPanel.java   
public ThreeComponentsSplitter getThreePanes() {
  return myThreePanes;
}
项目:intellij-ce-playground    文件:GuiEditor.java   
@Override
public ThreeComponentsSplitter getContentSplitter() {
  return myContentSplitter;
}
项目:intellij-ce-playground    文件:DesignerEditorPanel.java   
public final ThreeComponentsSplitter getContentSplitter() {
  return myContentSplitter;
}
项目:tools-idea    文件:ToolWindowsPane.java   
ToolWindowsPane(final IdeFrameImpl frame, ToolWindowManagerImpl manager){
  myManager = manager;

  setOpaque(false);
  myFrame=frame;
  myId2Button=new HashMap<String,StripeButton>();
  myId2Decorator=new HashMap<String,InternalDecorator>();
  myButton2Info=new HashMap<StripeButton, WindowInfoImpl>();
  myDecorator2Info=new HashMap<InternalDecorator, WindowInfoImpl>();
  myUISettingsListener=new MyUISettingsListenerImpl();
  myId2SplitProportion = new HashMap<String, Float>();

  // Splitters

  myVerticalSplitter = new ThreeComponentsSplitter(true);
  Disposer.register(this, myVerticalSplitter);
  myVerticalSplitter.setDividerWidth(0);
  myVerticalSplitter.setDividerMouseZoneSize(Registry.intValue("ide.splitter.mouseZone"));
  myVerticalSplitter.setBackground(Color.gray);
  myHorizontalSplitter = new ThreeComponentsSplitter(false);
  Disposer.register(this, myHorizontalSplitter);
  myHorizontalSplitter.setDividerWidth(0);
  myHorizontalSplitter.setDividerMouseZoneSize(Registry.intValue("ide.splitter.mouseZone"));
  myHorizontalSplitter.setBackground(Color.gray);
  myWidescreen = UISettings.getInstance().WIDESCREEN_SUPPORT;
  if (myWidescreen) {
    myHorizontalSplitter.setInnerComponent(myVerticalSplitter);
  }
  else {
    myVerticalSplitter.setInnerComponent(myHorizontalSplitter);
  }

  // Tool stripes

  myTopStripe=new Stripe(SwingConstants.TOP, manager);
  myStripes.add(myTopStripe);
  myLeftStripe=new Stripe(SwingConstants.LEFT, manager);
  myStripes.add(myLeftStripe);
  myBottomStripe=new Stripe(SwingConstants.BOTTOM, manager);
  myStripes.add(myBottomStripe);
  myRightStripe=new Stripe(SwingConstants.RIGHT, manager);
  myStripes.add(myRightStripe);

  updateToolStripesVisibility();

  // Layered pane

  myLayeredPane=new MyLayeredPane(myWidescreen ? myHorizontalSplitter : myVerticalSplitter);

  // Compose layout

  add(myTopStripe, JLayeredPane.POPUP_LAYER);
  add(myLeftStripe,  JLayeredPane.POPUP_LAYER);
  add(myBottomStripe,  JLayeredPane.POPUP_LAYER);
  add(myRightStripe,  JLayeredPane.POPUP_LAYER);
  add(myLayeredPane,  JLayeredPane.DEFAULT_LAYER);
}
项目:tools-idea    文件:ToolWindowsPane.java   
Splitter(ThreeComponentsSplitter splitter) {
  mySplitter = splitter;
}
项目:tools-idea    文件:ToolWindowsPane.java   
FirstComponent(ThreeComponentsSplitter splitter) {
  super(splitter);
}
项目:tools-idea    文件:ToolWindowsPane.java   
LastComponent(ThreeComponentsSplitter splitter) {
  super(splitter);
}
项目:tools-idea    文件:DesignerEditorPanel.java   
public final ThreeComponentsSplitter getContentSplitter() {
  return myContentSplitter;
}
项目:cordovastudio    文件:CordovaDesignerEditorPanel.java   
public final ThreeComponentsSplitter getContentSplitter() {
    return myContentSplitter;
}
项目:consulo-ui-designer    文件:GuiEditor.java   
@Override
public ThreeComponentsSplitter getContentSplitter()
{
    return myContentSplitter;
}
项目:consulo    文件:DesktopToolWindowPanelImpl.java   
DesktopToolWindowPanelImpl(@Nonnull IdeFrameImpl frame, @Nonnull DesktopToolWindowManagerImpl manager) {
  myManager = manager;

  setOpaque(false);
  myFrame = frame;

  // Splitters
  myVerticalSplitter = new ThreeComponentsSplitter(true);
  Disposer.register(this, myVerticalSplitter);
  myVerticalSplitter.setDividerWidth(0);
  myVerticalSplitter.setDividerMouseZoneSize(Registry.intValue("ide.splitter.mouseZone"));
  myVerticalSplitter.setBackground(Color.gray);
  myHorizontalSplitter = new ThreeComponentsSplitter(false);
  Disposer.register(this, myHorizontalSplitter);
  myHorizontalSplitter.setDividerWidth(0);
  myHorizontalSplitter.setDividerMouseZoneSize(Registry.intValue("ide.splitter.mouseZone"));
  myHorizontalSplitter.setBackground(Color.gray);
  myWidescreen = UISettings.getInstance().getWideScreenSupport();
  myLeftHorizontalSplit = UISettings.getInstance().getLeftHorizontalSplit();
  myRightHorizontalSplit = UISettings.getInstance().getRightHorizontalSplit();
  if (myWidescreen) {
    myHorizontalSplitter.setInnerComponent(myVerticalSplitter);
  }
  else {
    myVerticalSplitter.setInnerComponent(myHorizontalSplitter);
  }

  // Tool stripes

  myTopStripe = new DesktopStripePanelImpl(SwingConstants.TOP, manager);
  myStripes.add(myTopStripe);
  myLeftStripe = new DesktopStripePanelImpl(SwingConstants.LEFT, manager);
  myStripes.add(myLeftStripe);
  myBottomStripe = new DesktopStripePanelImpl(SwingConstants.BOTTOM, manager);
  myStripes.add(myBottomStripe);
  myRightStripe = new DesktopStripePanelImpl(SwingConstants.RIGHT, manager);
  myStripes.add(myRightStripe);

  updateToolStripesVisibility();

  // Layered pane

  myLayeredPane = new MyLayeredPane(myWidescreen ? myHorizontalSplitter : myVerticalSplitter);

  // Compose layout

  add(myTopStripe, JLayeredPane.POPUP_LAYER);
  add(myLeftStripe, JLayeredPane.POPUP_LAYER);
  add(myBottomStripe, JLayeredPane.POPUP_LAYER);
  add(myRightStripe, JLayeredPane.POPUP_LAYER);
  add(myLayeredPane, JLayeredPane.DEFAULT_LAYER);
}
项目:consulo    文件:DesktopToolWindowPanelImpl.java   
Splitter(@Nonnull ThreeComponentsSplitter splitter) {
  mySplitter = splitter;
}
项目:consulo    文件:DesktopToolWindowPanelImpl.java   
FirstComponent(@Nonnull ThreeComponentsSplitter splitter) {
  super(splitter);
}
项目:consulo    文件:DesktopToolWindowPanelImpl.java   
LastComponent(@Nonnull ThreeComponentsSplitter splitter) {
  super(splitter);
}
项目:intellij-ce-playground    文件:DesignerEditorPanelFacade.java   
ThreeComponentsSplitter getContentSplitter();
项目:consulo    文件:DesignerEditorPanelFacade.java   
ThreeComponentsSplitter getContentSplitter();