Package com.ardor3d.extension.ui.border
Class ImageBorder
java.lang.Object
com.ardor3d.extension.ui.util.Insets
com.ardor3d.extension.ui.border.UIBorder
com.ardor3d.extension.ui.border.ImageBorder
This border takes a set of images and draws them around the edge of a UI component. There are eight possible border
images - 4 for the sides of the component and 4 for the corners. Of these, only the sides must be provided. If the
corners are null, the top and bottom will stretch to fill in the gaps.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionImageBorder
(SubTex subtex) Construct this border as a 9-slice using the given subtex and its defined borders.ImageBorder
(SubTex leftEdge, SubTex rightEdge, SubTex topEdge, SubTex bottomEdge) Construct this border using the given edge images.ImageBorder
(SubTex leftEdge, SubTex rightEdge, SubTex topEdge, SubTex bottomEdge, SubTex topLeftCorner, SubTex topRightCorner, SubTex bottomLeftCorner, SubTex bottomRightCorner) Construct this border using the given edge and side images. -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Renderer renderer, UIComponent comp) Draw this border.void
setBottomEdge
(SubTex bottomEdge) void
setBottomLeftCorner
(SubTex bottomLeftCorner) void
setBottomRightCorner
(SubTex bottomRightCorner) void
setLeftEdge
(SubTex leftEdge) void
setRightEdge
(SubTex rightEdge) void
setTopEdge
(SubTex topEdge) void
setTopLeftCorner
(SubTex topLeftCorner) void
setTopRightCorner
(SubTex topRightCorner) Methods inherited from class com.ardor3d.extension.ui.border.UIBorder
getBorderHeight, getBorderWidth
-
Constructor Details
-
ImageBorder
Construct this border as a 9-slice using the given subtex and its defined borders.- Parameters:
subtex
- the subtex
-
ImageBorder
Construct this border using the given edge images. The corners will not be drawn.- Parameters:
leftEdge
- the left edgerightEdge
- the right edgetopEdge
- the top edgebottomEdge
- the bottom edge
-
ImageBorder
public ImageBorder(SubTex leftEdge, SubTex rightEdge, SubTex topEdge, SubTex bottomEdge, SubTex topLeftCorner, SubTex topRightCorner, SubTex bottomLeftCorner, SubTex bottomRightCorner) Construct this border using the given edge and side images.- Parameters:
leftEdge
- the left edgerightEdge
- the right edgetopEdge
- the top edgebottomEdge
- the bottom edgetopLeftCorner
- the top left cornertopRightCorner
- the top right cornerbottomLeftCorner
- the bottom left cornerbottomRightCorner
- the bottom right corner
-
-
Method Details
-
getBottomEdge
-
setBottomEdge
-
getBottomLeftCorner
-
setBottomLeftCorner
-
getBottomRightCorner
-
setBottomRightCorner
-
getLeftEdge
-
setLeftEdge
-
getRightEdge
-
setRightEdge
-
getTopEdge
-
setTopEdge
-
getTopLeftCorner
-
setTopLeftCorner
-
getTopRightCorner
-
setTopRightCorner
-
draw
Description copied from class:UIBorder
Draw this border. Override this method to do the actual work.
-