public abstract class VisualElement extends Component
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.geom.GeneralPath |
filling
The cached outline of a sealed path figure.
|
protected java.awt.geom.GeneralPath |
outline |
boolean |
RelativeCoordinates
A value indicating whether the metrics of this element are expressed as relative
or absolute quantities.
|
boolean |
RelativeStroke
A value indicating whether the stroke thickness of this element is expressed as relative
or absolute quantity.
|
| Modifier | Constructor and Description |
|---|---|
protected |
VisualElement()
Initializes a new instance of the
VisualElement class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addVisualElementListener(VisualElementListener listener) |
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 |
getEffectiveFill(RenderContext context) |
Brush |
getFill()
Gets the fill of this element.
|
Margins |
getMargin()
Gets the margin of this element.
|
java.lang.String |
getName()
Gets the name of this element.
|
Pen |
getStroke()
Gets the stroke of this element.
|
Component |
hitTest(double x,
double y)
Returns the component containing specified point.
|
boolean |
hitTestObj(java.awt.geom.Point2D point)
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.
|
protected void |
onInvalidated(java.util.EventObject args) |
protected void |
onPostpaint(CustomPaintEvent args) |
protected void |
onPrepaint(PrepaintEvent args) |
protected void |
onQueryAmbientPropertyValue(com.mindfusion.charting.components.gauges.QueryAmbientPropertyValueEvent args) |
void |
removeVisualElementListener(VisualElementListener listener) |
void |
setFill(Brush value)
Sets the fill of this element.
|
void |
setMargin(Margins value)
Sets the margin of this element.
|
void |
setName(java.lang.String value)
Sets the name of this element.
|
void |
setStroke(Pen value)
Sets the stroke of this element.
|
java.lang.String |
toString() |
add, 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 boolean RelativeCoordinates
public boolean RelativeStroke
protected java.awt.geom.GeneralPath filling
protected java.awt.geom.GeneralPath outline
protected VisualElement()
VisualElement class.public java.lang.String toString()
toString in class java.lang.Objectpublic 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 Component hitTest(double x, double y)
public boolean hitTestObj(java.awt.geom.Point2D point)
public void addVisualElementListener(VisualElementListener listener)
public void removeVisualElementListener(VisualElementListener listener)
protected void onQueryAmbientPropertyValue(com.mindfusion.charting.components.gauges.QueryAmbientPropertyValueEvent args)
protected void onPrepaint(PrepaintEvent args)
protected void onPostpaint(CustomPaintEvent args)
protected void onInvalidated(java.util.EventObject args)
public java.lang.String getName()
The name can be used to obtain a reference to the element through a call
to the getElementByName(java.lang.String) method.
public void setName(java.lang.String value)
The name can be used to obtain a reference to the element through a call
to the getElementByName(java.lang.String) method.
public Brush getFill()
public Brush getEffectiveFill(RenderContext context)
public void setFill(Brush value)
public Pen getStroke()
public void setStroke(Pen value)
public Margins getMargin()