Package com.ardor3d.extension.ui.border
Class SolidBorder
java.lang.Object
com.ardor3d.extension.ui.util.Insets
com.ardor3d.extension.ui.border.UIBorder
com.ardor3d.extension.ui.border.SolidBorder
This border draws solid colored edges around a UI component. Each edge may be a different thickness and/or color.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSolidBorder
(int top, int left, int bottom, int right) Construct a border with the given thicknesses.SolidBorder
(int top, int left, int bottom, int right, ReadOnlyColorRGBA topColor, ReadOnlyColorRGBA leftColor, ReadOnlyColorRGBA bottomColor, ReadOnlyColorRGBA rightColor) Construct a border with the given thicknesses and colors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Renderer renderer, UIComponent comp) Draw this border.void
setBottomColor
(ReadOnlyColorRGBA color) void
setColor
(ReadOnlyColorRGBA solidColor) Sets all of the border colors to the given color.void
setLeftColor
(ReadOnlyColorRGBA color) void
setRightColor
(ReadOnlyColorRGBA color) void
setTopColor
(ReadOnlyColorRGBA color) Methods inherited from class com.ardor3d.extension.ui.border.UIBorder
getBorderHeight, getBorderWidth
-
Constructor Details
-
SolidBorder
public SolidBorder(int top, int left, int bottom, int right) Construct a border with the given thicknesses. Uses the default colors.- Parameters:
top
- the topleft
- the leftbottom
- the bottomright
- the right
-
SolidBorder
public SolidBorder(int top, int left, int bottom, int right, ReadOnlyColorRGBA topColor, ReadOnlyColorRGBA leftColor, ReadOnlyColorRGBA bottomColor, ReadOnlyColorRGBA rightColor) Construct a border with the given thicknesses and colors- Parameters:
top
- the topleft
- the leftbottom
- the bottomright
- the righttopColor
- the top colorleftColor
- the left colorbottomColor
- the bottom colorrightColor
- the right color
-
-
Method Details
-
getBottomColor
-
setBottomColor
-
getLeftColor
-
setLeftColor
-
getRightColor
-
setRightColor
-
getTopColor
-
setTopColor
-
setColor
Sets all of the border colors to the given color.- Parameters:
solidColor
- new color for all borders
-
draw
Description copied from class:UIBorder
Draw this border. Override this method to do the actual work.
-