PathwayLogic Assistant API

pla.graph
Class PLANode

java.lang.Object
  extended by g2d.glyph.Identifiable
      extended by g2d.glyph.Attributable
          extended by g2d.glyph.Glyphish
              extended by g2d.graph.GraphItem
                  extended by g2d.graph.IOPNode
                      extended by pla.graph.PLANode
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, EventListener

public class PLANode
extends IOPNode

Author:
linda

Field Summary
 
Fields inherited from class g2d.graph.GraphItem
antiAliased, HIGHLIGHT, HIGHLIGHT_OFFSET
 
Fields inherited from class g2d.glyph.Glyphish
DEBUG
 
Fields inherited from class g2d.glyph.Identifiable
uid
 
Constructor Summary
PLANode(NodeThing nt)
           
PLANode(NodeThing nt, String shape, Color color, Color fillColor)
           
PLANode(PLANode clone, boolean context)
          Construct a node cloning the given node.
PLANode(PLANode clone, int ID)
          Construct a node cloning the given node with the exception of the numeric ID used.
 
Method Summary
 NodeThing getNodeThing()
           
 void setAttribute(String string, Object object)
           
 String toString()
           
 void updateFillColor()
          Causes this nodes fill color to be updated using the closure calcNodeFillColor in pla.lsp.
 
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.graph.GraphItem
getBounds, inside, intersects, transform
 
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
 
Methods inherited from class g2d.glyph.Identifiable
getObject, getUID, setUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 cloned
context - 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 cloned
ID - numeric value of new ID for this node
Method Detail

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

PathwayLogic Assistant API