public abstract class Panel extends Component
| Constructor and Description |
|---|
Panel()
Initializes a new instance of the
Panel class. |
| Modifier and Type | Method and Description |
|---|---|
void |
associateJComponent(Component source,
javax.swing.JComponent component)
Associates a Swing JComponent with the source
Component. |
void |
draw(RenderContext context)
Draws this component in specified
RenderContext. |
com.mindfusion.common.ObservableList<Component> |
getChildren()
Gets the list of child components of this panel.
|
RootControl |
getParentControl()
Gets a reference to the control containing this panel.
|
Component |
hitTest(double x,
double y)
Returns the component containing specified point.
|
void |
invalidate(java.awt.geom.Rectangle2D rect)
Invalidates the appearance of this component and calls its
Component.draw(com.mindfusion.charting.RenderContext) method at next draw operation. |
void |
invalidateLayout()
Invalidates the current layout and runs a new layout pass before next draw operation.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Measures the desired size of this component.
|
void |
setChildren(com.mindfusion.common.ObservableList<Component> value)
Sets the list of child components of this panel.
|
void |
setParentControl(RootControl value)
Sets a reference to the control containing this panel.
|
void |
visit(ComponentVisitor visitor)
Implements the visitor design pattern.
|
add, arrange, createController, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getMargin, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, invalidate, invalidate, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setMargin, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParentpublic Panel()
Panel class.public void draw(RenderContext context)
RenderContext.draw in class Componentcontext - A RenderContext instance.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 com.mindfusion.common.ObservableList<Component> getChildren()
public void setChildren(com.mindfusion.common.ObservableList<Component> value)
public void visit(ComponentVisitor visitor)
visit in class Componentvisitor - An instance of a ComponentVisitor-derived class.public Component hitTest(double x, double y)
public RootControl getParentControl()
public void setParentControl(RootControl value)
public void associateJComponent(Component source, javax.swing.JComponent component)
Component.
Causes the former to be drawn directly above the source, covering its bounds entirely.associateJComponent in interface RootControlassociateJComponent in class Componentsource - The source Component.component - The JComponent to be associated.public void invalidate(java.awt.geom.Rectangle2D rect)
Component.draw(com.mindfusion.charting.RenderContext) method at next draw operation.invalidate in class Componentrect - A RectD instance specifying the invalid rectangle.public void invalidateLayout()
invalidateLayout in class Component