public class VisualElementContainer extends VisualElement
filling, outline, RelativeCoordinates, RelativeStroke| Constructor and Description |
|---|
VisualElementContainer()
Initializes a new instance of the
VisualElementContainer 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. |
boolean |
hitTestObj(java.awt.geom.Point2D p)
Checks whether the specified point lies within the visual element.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
addVisualElementListener, getEffectiveFill, getFill, getMargin, getName, getStroke, hitTest, 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 VisualElementContainer()
VisualElementContainer 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 arrange(double x,
double y,
double w,
double h,
RenderContext context)
VisualElementarrange in class VisualElementx - 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 VisualElementcontext - A RenderContext instance.public boolean hitTestObj(java.awt.geom.Point2D p)
VisualElementhitTestObj in class VisualElement