public class VerticalPaneSplitter extends AbstractPaneSplitter
VerticalPaneSplitter
divides the available area in two
panes: left and right. This class represents VerticalSplitter in the model.
Constructor and Description |
---|
VerticalPaneSplitter() |
Modifier and Type | Method and Description |
---|---|
void |
accept(IPaneVisitor visitor)
Accept method of Visitor pattern.
|
float |
getFirstPaneWidth() |
float |
getSecondPaneWidth() |
void |
setFirstPaneWidth(float firstPaneWidth)
Sets absolute or relative width of the left pane.
|
void |
setSecondPaneWidth(float secondPaneWidth)
Sets absolute or relative width of the right pane.
|
getFirstPane, getSecondPane, setFirstPane, setSecondPane
getPaneRect, isVisible, setPaneRect, setVisible
public float getFirstPaneWidth()
public void setFirstPaneWidth(float firstPaneWidth)
firstPaneWidth
- the values in (0,1) are considered as in percentage(relative
to the available height) and values in [1, ..] as in pixels.public float getSecondPaneWidth()
public void setSecondPaneWidth(float secondPaneWidth)
secondPaneWidth
- the values in (0,1) are considered as in percentage(relative
to the available height) and values in [1, ..] as in pixels.public void accept(IPaneVisitor visitor)
AbstractPane
accept
in class AbstractPane