|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A component that draws components. This component only draws single components, i.e. does not draw the sub components of a component, nor the internal or external bingings of components.
| Method Summary | |
void |
drawComponent(Graphics g,
Component c,
Selection s,
Rectangle r,
Color color,
boolean expanded,
int m)
Draws the given component in the given rectangle. |
ComponentPart |
getComponentPart(Component c,
Rectangle r,
boolean expanded,
int x,
int y)
Returns the part of the given component that corresponds to the given point. |
Point |
getInterfacePosition(Component c,
Rectangle r,
Interface i)
Returns the position of the given interface. |
Rectangle |
getSubComponentArea(Component c,
Rectangle r)
Returns the area of the given component into which its sub components must be drawn. |
| Method Detail |
public void drawComponent(Graphics g,
Component c,
Selection s,
Rectangle r,
Color color,
boolean expanded,
int m)
g - the graphics to be used to draw the component.c - the component to be drawn.s - the selected component.r - where the component must be drawn.color - the component color.expanded - if the component is exanded or not, i.e., if its sub
components will be drawn (with other calls to this method) also or
not.m - the displaying mode for interface name.
public ComponentPart getComponentPart(Component c,
Rectangle r,
boolean expanded,
int x,
int y)
c - a component.r - where the component is drawn.expanded - if the component is exanded or not, i.e., if its sub
components will be drawn also or not.x - the x coordinate of the point of interest.y - the y coordinate of the point of interest.
public Point getInterfacePosition(Component c,
Rectangle r,
Interface i)
c - a component.r - where the component is drawn.i - the interface whose position must be returned.
public Rectangle getSubComponentArea(Component c,
Rectangle r)
c - a component.r - where the component is drawn.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||