public class BorderComponent extends Component
| Constructor and Description |
|---|
BorderComponent()
Initializes a new instance of the
BorderComponent class. |
| Modifier and Type | Method and Description |
|---|---|
void |
arrange(double x,
double y,
double w,
double h,
RenderContext context)
Sets the location and size of this component relative to its parent.
|
void |
draw(RenderContext context)
Draws this component in specified
RenderContext. |
Brush |
getBorderBrush()
Gets the
Brush used to draw the border outlines. |
double |
getBorderThickness()
Gets the border thickness.
|
Component |
getContent()
Gets the
Component displayed inside this border. |
double |
getCornerRadiusBottomLeft()
Gets the bottom-left corner radius.
|
double |
getCornerRadiusBottomRight()
Gets the bottom-right corner radius.
|
double |
getCornerRadiusTopLeft()
Gets the top-left corner radius.
|
double |
getCornerRadiusTopRight()
Gets the top-right corner radius.
|
double |
getPadding()
Gets the padding space between this border and its Content.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
void |
setBorderBrush(Brush value)
Sets the
Brush used to draw the border outlines. |
void |
setBorderThickness(double value)
Sets the border thickness.
|
void |
setContent(Component value)
Sets the
Component displayed inside this border. |
void |
setCornerRadiusBottomLeft(double value)
Sets the bottom-left corner radius.
|
void |
setCornerRadiusBottomRight(double value)
Sets the bottom-right corner radius.
|
void |
setCornerRadiusTopLeft(double value)
Sets the top-left corner radius.
|
void |
setCornerRadiusTopRight(double value)
Sets the top-right corner radius.
|
void |
setPadding(double value)
Sets the padding space between this border and its Content.
|
add, associateJComponent, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getMargin, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, hitTest, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setMargin, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visitpublic BorderComponent()
BorderComponent class.public void measure(double maxWidth,
double maxHeight,
RenderContext context)
measure in class ComponentmaxWidth - The maximum width provided by parent component.maxHeight - The maximum height provided by parent component.context - A RenderContext instance.public void arrange(double x,
double y,
double w,
double h,
RenderContext context)
arrange in class Componentx - A double value specifying horizontal position.y - A double value specifying vertical position.w - A double value specifying the component's width.h - A double value specifying the component's height.context - A RenderContext instance.public void draw(RenderContext context)
RenderContext.draw in class Componentcontext - A RenderContext instance.public double getPadding()
public void setPadding(double value)
public double getCornerRadiusTopLeft()
public void setCornerRadiusTopLeft(double value)
public double getCornerRadiusTopRight()
public void setCornerRadiusTopRight(double value)
public double getCornerRadiusBottomLeft()
public void setCornerRadiusBottomLeft(double value)
public double getCornerRadiusBottomRight()
public void setCornerRadiusBottomRight(double value)
public double getBorderThickness()
public void setBorderThickness(double value)