|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the requirements for an object that displays a magnet node
| Method Summary | |
java.awt.Component |
getMagnetCellRendererComponent(MagnetView view,
java.lang.Object value,
boolean selected,
boolean magnetic,
boolean mouseIsOver,
boolean mouseIsNear)
Sets the value of the current magnet cell to value.
|
| Method Detail |
public java.awt.Component getMagnetCellRendererComponent(MagnetView view,
java.lang.Object value,
boolean selected,
boolean magnetic,
boolean mouseIsOver,
boolean mouseIsNear)
value.
If selected is true, the cell will be drawn as if selected.
view is the MagnetView the receiver is being configured for.
mouseOvered and mouseIsNear allow to make some subtle
differences in the way the component is rendered depending on the mouse
cursor position in the view.
Returns the Component that the renderer uses to draw the value.
view - the MagnetView instance for which the component is configured.value - the object that we want to draw.selected - true if value is selected, else false.magnetic - true if the node attracts other nodes.mouseIsOver - true if the mouse cursor is over the nodemouseIsNear - true if the mouse is near the component.
Component that the renderer uses to draw the value.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||