- java.lang.Object
-
- com.googlecode.lanterna.gui2.AbstractComponent<Panel>
-
- com.googlecode.lanterna.gui2.Panel
-
- com.googlecode.lanterna.gui2.SplitPanel
-
- All Implemented Interfaces:
Component
,Container
,TextGUIElement
public class SplitPanel extends Panel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
SplitPanel.ScrollPanelLayoutManager
-
Nested classes/interfaces inherited from class com.googlecode.lanterna.gui2.Panel
Panel.DefaultPanelRenderer
-
-
Field Summary
Fields Modifier and Type Field Description private Component
compA
private Component
compB
private boolean
isHorizontal
private double
ratio
private ImageComponent
thumb
-
Constructor Summary
Constructors Modifier Constructor Description protected
SplitPanel(Component a, Component b, boolean isHorizontal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ImageComponent
makeThumb()
static SplitPanel
ofHorizontal(Component left, Component right)
static SplitPanel
ofVertical(Component top, Component bottom)
void
setRatio(int left, int right)
-
Methods inherited from class com.googlecode.lanterna.gui2.Panel
addComponent, addComponent, addComponent, calculatePreferredSize, containsComponent, createDefaultRenderer, getChildCount, getChildren, getChildrenList, getFillColorOverride, getLayoutManager, handleInput, invalidate, isInvalid, nextFocus, previousFocus, removeAllComponents, removeComponent, setFillColorOverride, setLayoutManager, updateLookupMap
-
Methods inherited from class com.googlecode.lanterna.gui2.AbstractComponent
addTo, draw, getBasePane, getGlobalPosition, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, isInside, isVisible, onAdded, onAfterDrawing, onBeforeDrawing, onRemoved, runOnGUIThreadIfExistsOtherwiseRunDirect, self, setLayoutData, setPosition, setPreferredSize, setRenderer, setSize, setTheme, setVisible, toBasePane, toGlobal, withBorder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.googlecode.lanterna.gui2.Component
addTo, getBasePane, getGlobalPosition, getLayoutData, getParent, getPosition, getPreferredSize, getRenderer, getSize, getTextGUI, getTheme, getThemeDefinition, hasParent, isInside, isVisible, onAdded, onRemoved, setLayoutData, setPosition, setPreferredSize, setSize, setTheme, setVisible, toBasePane, toGlobal, withBorder
-
Methods inherited from interface com.googlecode.lanterna.gui2.TextGUIElement
draw
-
-
-
-
Field Detail
-
compA
private final Component compA
-
thumb
private final ImageComponent thumb
-
compB
private final Component compB
-
isHorizontal
private boolean isHorizontal
-
ratio
private double ratio
-
-
Method Detail
-
ofHorizontal
public static SplitPanel ofHorizontal(Component left, Component right)
-
ofVertical
public static SplitPanel ofVertical(Component top, Component bottom)
-
makeThumb
ImageComponent makeThumb()
-
setRatio
public void setRatio(int left, int right)
-
-