pla.graph
Class PLANode
java.lang.Object
g2d.glyph.Identifiable
g2d.glyph.Attributable
g2d.glyph.Glyphish
g2d.graph.GraphItem
g2d.graph.IOPNode
pla.graph.PLANode
- All Implemented Interfaces:
- KeyListener, MouseListener, MouseMotionListener, EventListener
public class PLANode
- extends IOPNode
- Author:
- linda
| Methods inherited from class g2d.graph.IOPNode |
dehighlight, distanceTo, equals, getBaseFrame, getBorderColor, getCenter, getFillColor, getHeight, getLabel, getName, getNodeShape, getPosition, getWidth, hashCode, highlight, paint, setBaseCenter, setBaseDimension, setBorderColor, setCenter, setFillColor, setLabel, setNodeShape |
| Methods inherited from class g2d.glyph.Glyphish |
keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, rotate, rotate, scale, setKeyAction, setMouseAction, shear, translate |
| Methods inherited from class g2d.glyph.Attributable |
getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setStaticAttribute |
PLANode
public PLANode(NodeThing nt)
PLANode
public PLANode(NodeThing nt,
String shape,
Color color,
Color fillColor)
PLANode
public PLANode(PLANode clone,
boolean context)
- Construct a node cloning the given node.
The resulting new node will have the same name, same label,
and same node base (w.r.t. shape, colors, size, position) of
the given node to clone.
If this node is part of context indicated, then use context
colors and mark as context.
- Parameters:
clone - PLANode to be clonedcontext - Indicates whether part of context or not
PLANode
public PLANode(PLANode clone,
int ID)
- Construct a node cloning the given node with the exception
of the numeric ID used.
The resulting new node will have the same label and same
node base (w.r.t. shape, colors, size, position) of
the given node to clone.
The given ID is used as the name and to clone the
NodeThing accordingly.
- Parameters:
clone - PLANode to be clonedID - numeric value of new ID for this node
getNodeThing
public NodeThing getNodeThing()
setAttribute
public void setAttribute(String string,
Object object)
- Overrides:
setAttribute in class Attributable
updateFillColor
public void updateFillColor()
- Causes this nodes fill color to be updated using the closure
calcNodeFillColor in pla.lsp. This closure uses
current attributes of node to determine the fill color.
Note that this does not trigger repainting of the node.
toString
public String toString()
- Overrides:
toString in class IOPNode