public final class NodePanel extends NodeElement
Constructor and Description |
---|
NodePanel()
Constructs a new
NodePanel . |
Modifier and Type | Method and Description |
---|---|
void |
addElement(NodeElement elements)
Adds an element to this panel's element list.
|
String |
getBorderColor()
Returns the panel border color in hex.
|
BorderStyle |
getBorderStyle()
Returns the panel border style.
|
int |
getBorderWidth()
Returns the panel border width.
|
AlignmentType |
getContentAlignment()
Sets the content alignment of this panel.
|
List<NodeElement> |
getElements()
Returns the collection of the elements managed by this panel.
|
PanelLayout |
getPanelLayout()
Returns the panel layout which controls how the panel's elements are measured and arranged.
|
void |
setBorderColor(String borderColor)
Sets the panel border color.
|
void |
setBorderStyle(BorderStyle borderStyle)
Sets the panel border style.
|
void |
setBorderWidth(int borderWidth)
Sets the panel border width.
|
void |
setContentAlignment(AlignmentType contentAlignment)
Returns the default alignment of this panel.
|
void |
setPanelLayout(PanelLayout panelLayout)
Sets the panel layout which controls how the panel's elements are measured and arranged.
|
getAlignment, getBackgroundColor, getElementType, getHeight, getMargin, getMargin, getName, getWidth, setAlignment, setBackgroundColor, setHeight, setMargin, setName, setWidth
public NodePanel()
NodePanel
. The default layout is HORIZONTAL
and default alignment is CENTER
.public void addElement(NodeElement elements)
elements
- collection of elements.public List<NodeElement> getElements()
public PanelLayout getPanelLayout()
public void setPanelLayout(PanelLayout panelLayout)
panelLayout
- the panel layout.public AlignmentType getContentAlignment()
public void setContentAlignment(AlignmentType contentAlignment)
contentAlignment
- the content alignment of this Panel.public String getBorderColor()
public void setBorderColor(String borderColor)
borderColor
- a color in hexpublic int getBorderWidth()
public void setBorderWidth(int borderWidth)
borderWidth
- a number from 1 to 4.public BorderStyle getBorderStyle()
public void setBorderStyle(BorderStyle borderStyle)
borderStyle
- the border style of this panel .