anl.aida.viz
Class NodeUtils
java.lang.Object
anl.aida.viz.NodeUtils
public class NodeUtils
- extends java.lang.Object
Field Summary |
static java.lang.String |
EDGE
|
static java.lang.String |
NODE
|
static java.lang.String |
OBJ
|
static java.lang.String |
PAINT
|
static java.lang.String |
TYPE_LABEL
|
static java.lang.String |
UNKNOWN
|
Method Summary |
static java.lang.Object |
getObject(edu.umd.cs.piccolo.PNode node)
|
static java.awt.Paint |
getPaint(edu.umd.cs.piccolo.PNode node)
Gets the specified node's paint attribute. |
static java.lang.Object |
getType(edu.umd.cs.piccolo.PNode node)
|
static boolean |
isEdge(edu.umd.cs.piccolo.PNode node)
|
static boolean |
isNode(edu.umd.cs.piccolo.PNode node)
|
static void |
setAsEdge(edu.umd.cs.piccolo.PNode node)
|
static void |
setAsNode(edu.umd.cs.piccolo.PNode node)
|
static void |
setObject(edu.umd.cs.piccolo.PNode node,
java.lang.Object obj)
|
static void |
setPaint(edu.umd.cs.piccolo.PNode node,
java.awt.Paint paint)
Sets the paint attribute / property of the node. |
static void |
setType(edu.umd.cs.piccolo.PNode node,
java.lang.Object type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_LABEL
public static final java.lang.String TYPE_LABEL
- See Also:
- Constant Field Values
NODE
public static final java.lang.String NODE
- See Also:
- Constant Field Values
EDGE
public static final java.lang.String EDGE
- See Also:
- Constant Field Values
OBJ
public static final java.lang.String OBJ
- See Also:
- Constant Field Values
UNKNOWN
public static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
PAINT
public static final java.lang.String PAINT
- See Also:
- Constant Field Values
NodeUtils
public NodeUtils()
setPaint
public static void setPaint(edu.umd.cs.piccolo.PNode node,
java.awt.Paint paint)
- Sets the paint attribute / property of the node. This
does not set the nodes paint.
- Parameters:
node
- the nodepaint
- the paint
getPaint
public static java.awt.Paint getPaint(edu.umd.cs.piccolo.PNode node)
- Gets the specified node's paint attribute.
- Parameters:
node
- the node whose paint attribute we want
- Returns:
- the specified node's paint attribute.
isNode
public static boolean isNode(edu.umd.cs.piccolo.PNode node)
isEdge
public static boolean isEdge(edu.umd.cs.piccolo.PNode node)
setAsEdge
public static void setAsEdge(edu.umd.cs.piccolo.PNode node)
setAsNode
public static void setAsNode(edu.umd.cs.piccolo.PNode node)
setType
public static void setType(edu.umd.cs.piccolo.PNode node,
java.lang.Object type)
getType
public static java.lang.Object getType(edu.umd.cs.piccolo.PNode node)
setObject
public static void setObject(edu.umd.cs.piccolo.PNode node,
java.lang.Object obj)
getObject
public static java.lang.Object getObject(edu.umd.cs.piccolo.PNode node)