| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.horstmann.violet.framework.AbstractNode
com.horstmann.violet.framework.RectangularNode
com.horstmann.violet.NoteNode
public class NoteNode
A note node in a UML diagram.
| Field Summary | 
|---|
| Fields inherited from class com.horstmann.violet.framework.AbstractNode | 
|---|
| SHADOW_GAP | 
| Constructor Summary | |
|---|---|
| NoteNode()Construct a note node with a default size and color | |
| Method Summary | |
|---|---|
|  boolean | addEdge(Edge e,
        java.awt.geom.Point2D p1,
        java.awt.geom.Point2D p2)Adds an edge that originates at this node. | 
|  java.lang.Object | clone() | 
|  void | draw(java.awt.Graphics2D g2)Draw the node. | 
|  java.awt.Color | getColor()Gets the value of the color property. | 
|  java.awt.Shape | getShape() | 
|  MultiLineString | getText()Gets the value of the text property. | 
|  void | layout(Graph g,
       java.awt.Graphics2D g2,
       Grid grid)Lays out the node and its children. | 
|  void | removeEdge(Graph g,
           Edge e)Notifies this node that an edge is being removed. | 
|  void | setColor(java.awt.Color newValue)Sets the value of the color property. | 
|  void | setText(MultiLineString newValue)Sets the value of the text property. | 
| Methods inherited from class com.horstmann.violet.framework.RectangularNode | 
|---|
| contains, getBounds, getConnectionPoint, setBounds, translate | 
| Methods inherited from class com.horstmann.violet.framework.AbstractNode | 
|---|
| addChild, addChild, addNode, getChildren, getParent, removeChild, removeNode, setParent, setPersistenceDelegate | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NoteNode()
| Method Detail | 
|---|
public boolean addEdge(Edge e,
                       java.awt.geom.Point2D p1,
                       java.awt.geom.Point2D p2)
Node
addEdge in interface NodeaddEdge in class AbstractNodee - the edge to add
public void removeEdge(Graph g,
                       Edge e)
Node
removeEdge in interface NoderemoveEdge in class AbstractNodeg - the ambient graphe - the edge to be removed
public void layout(Graph g,
                   java.awt.Graphics2D g2,
                   Grid grid)
Node
layout in interface Nodelayout in class RectangularNodeg - the ambient graphg2 - the graphics contextgrid - the grid to snap topublic MultiLineString getText()
public void setText(MultiLineString newValue)
newValue - the text inside the notepublic java.awt.Color getColor()
public void setColor(java.awt.Color newValue)
newValue - the background color of the notepublic void draw(java.awt.Graphics2D g2)
Node
draw in interface Nodedraw in class AbstractNodeg2 - the graphics contextpublic java.awt.Shape getShape()
getShape in class RectangularNodepublic java.lang.Object clone()
clone in interface Nodeclone in class RectangularNode| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||