public class RoundRectangle extends VisualElement
filling, outline, RelativeCoordinates, RelativeStroke| Constructor and Description |
|---|
RoundRectangle()
Initializes a new instance of the
RoundRectangle class. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(RenderContext context)
Draws this component in specified
RenderContext. |
double |
getRoundness()
Gets the relative roundness of this rectangle's corners.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
void |
setRoundness(double value)
Sets the relative roundness of this rectangle's corners.
|
addVisualElementListener, arrange, getEffectiveFill, getFill, getMargin, getName, getStroke, hitTest, hitTestObj, onInvalidated, onPostpaint, onPrepaint, onQueryAmbientPropertyValue, removeVisualElementListener, setFill, setMargin, setName, setStroke, toStringadd, associateJComponent, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visitpublic RoundRectangle()
RoundRectangle class.public void measure(double maxWidth,
double maxHeight,
RenderContext context)
VisualElementmeasure in class VisualElementmaxWidth - The maximum width provided by parent component.maxHeight - The maximum height provided by parent component.context - A RenderContext instance.public void draw(RenderContext context)
RenderContext.draw in class VisualElementcontext - A RenderContext instance.public double getRoundness()
public void setRoundness(double value)