public abstract class RadVisualComponent extends RadComponent
myMetaModel| Constructor and Description |
|---|
RadVisualComponent() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Point |
convertPoint(java.awt.Component relativeFrom,
int x,
int y)
Returns the point in the model coordinate space (see
RadComponent.getBounds()) given
a coordinate x, y in the given Swing component. |
java.awt.Dimension |
fromModel(java.awt.Component target,
java.awt.Dimension size)
Converts the given rectangle (in model coordinates) to coordinates in the given
target component's coordinate system.
|
java.awt.Point |
fromModel(java.awt.Component target,
java.awt.Point point)
Converts the given point (in model coordinates) to coordinates in the given
target component's coordinate system.
|
java.awt.Rectangle |
fromModel(java.awt.Component target,
java.awt.Rectangle bounds)
Converts the given rectangle (in model coordinates) to coordinates in the given
target component's coordinate system.
|
java.awt.Rectangle |
getBounds()
Returns the bounds of this RadComponent in the model.
|
java.awt.Rectangle |
getBounds(java.awt.Component relativeTo)
Returns the bounds of this RadComponent in the coordinate system of
the given Swing component.
|
java.awt.Component |
getNativeComponent() |
void |
setBounds(int x,
int y,
int width,
int height) |
void |
setNativeComponent(java.awt.Component nativeComponent) |
java.awt.Dimension |
toModel(java.awt.Component source,
java.awt.Dimension size)
Converts the given size (in coordinates relative to the given component)
into the equivalent size in model coordinates.
|
java.awt.Point |
toModel(java.awt.Component source,
java.awt.Point point)
Converts the given point (in coordinates relative to the given component)
into the equivalent point in model coordinates.
|
java.awt.Rectangle |
toModel(java.awt.Component source,
java.awt.Rectangle rectangle)
Converts the given rectangle (in coordinates relative to the given component)
into the equivalent rectangle in model coordinates.
|
accept, acceptChildren, add, addError, addSelectionActions, addStaticDecorators, canDelete, clearErrors, copyTo, delete, extractClientProperty, getCaption, getChildren, getChildrenForAccept, getClientProperty, getDragTracker, getError, getInplaceProperties, getLayout, getLayoutData, getMetaModel, getMetaModelForProperties, getParent, getParent, getParents, getProperties, getProperties, getPropertyValue, getPureSelection, getRoot, getTreeChildren, groupSiblings, isAncestorFor, isBackground, isParentsContainedIn, isSameType, morphingTo, processDropOperation, remove, removeFromParent, setClientProperty, setLayout, setMetaModel, setParent, wrapInpublic java.awt.Rectangle getBounds()
RadComponentgetBounds in class RadComponentpublic java.awt.Rectangle getBounds(java.awt.Component relativeTo)
RadComponentDesignerEditorPanel.zoom(com.intellij.designer.designSurface.ZoomType))
and will apply any relative position offsets of views in the hierarchy between the
two components.
Returns a new Rectangle, so callers are free to modify the result.getBounds in class RadComponentrelativeTo - the component whose coordinate system the model bounds should
be shifted and scaled intopublic java.awt.Rectangle fromModel(java.awt.Component target,
java.awt.Rectangle bounds)
RadComponentRadComponent.getBounds().
This means that calling RadComponent.getBounds(java.awt.Component) is equivalent
to calling this method and passing in RadComponent.getBounds().
Returns a new Rectangle, so callers are free to modify the result.fromModel in class RadComponenttarget - the component whose coordinate system the rectangle should be
translated intobounds - the model rectangle to convertpublic java.awt.Rectangle toModel(java.awt.Component source,
java.awt.Rectangle rectangle)
RadComponentRectangle, so callers are free to modify the result.toModel in class RadComponentsource - the component which defines the coordinate system of the rectanglerectangle - the rectangle to be converted into model coordinatespublic java.awt.Point fromModel(java.awt.Component target,
java.awt.Point point)
RadComponentRadComponent.getBounds().
Returns a new Point, so callers are free to modify the result.fromModel in class RadComponenttarget - the component whose coordinate system the point should be
translated intopoint - the model point to convertpublic java.awt.Point toModel(java.awt.Component source,
java.awt.Point point)
RadComponentPoint, so callers are free to modify the result.toModel in class RadComponentsource - the component which defines the coordinate system of the pointpoint - the point to be converted into model coordinatespublic java.awt.Dimension fromModel(java.awt.Component target,
java.awt.Dimension size)
RadComponentRadComponent.getBounds().
Returns a new Dimension, so callers are free to modify the result.fromModel in class RadComponenttarget - the component whose coordinate system the dimension should be
translated intosize - the model dimension to convertpublic java.awt.Dimension toModel(java.awt.Component source,
java.awt.Dimension size)
RadComponentDimension, so callers are free to modify the result.toModel in class RadComponentsource - the component which defines the coordinate system of the sizesize - the dimension to be converted into model coordinatespublic void setBounds(int x,
int y,
int width,
int height)
public java.awt.Point convertPoint(java.awt.Component relativeFrom,
int x,
int y)
RadComponentRadComponent.getBounds()) given
a coordinate x, y in the given Swing component.
Returns a new Point, so callers are free to modify the result.convertPoint in class RadComponentrelativeFrom - the component whose coordinate system defines the rectanglex - the x coordinate of the pointy - the y coordinate of the pointPoint in the model coordinate systempublic java.awt.Component getNativeComponent()
public void setNativeComponent(java.awt.Component nativeComponent)