org.globus.cog.gui.grapheditor.generic
Class GenericNode

java.lang.Object
  extended by org.globus.cog.gui.grapheditor.AbstractGraphComponent
      extended by org.globus.cog.gui.grapheditor.nodes.AbstractNodeComponent
          extended by org.globus.cog.gui.grapheditor.nodes.EditableNodeComponent
              extended by org.globus.cog.gui.grapheditor.generic.GenericNode
All Implemented Interfaces:
Cloneable, GraphComponent, NodeComponent, PropertyHolder, ScalableRenderer
Direct Known Subclasses:
RootNode

public class GenericNode
extends EditableNodeComponent
implements NodeComponent, ScalableRenderer

A generic node with a generic canvas


Field Summary
static Integer COMPLETED
           
static Integer FAILED
           
static Integer RUNNING
           
static int STATUS_COMPLETED
           
static int STATUS_FAILED
           
static int STATUS_RUNNING
           
static int STATUS_STOPPED
           
static Integer STOPPED
           
 
Constructor Summary
GenericNode()
           
 
Method Summary
 Float getHue()
           
 Icon getIcon()
           
 String getIconfile()
           
 String getName()
           
 Float getSaturation()
           
 Integer getStatus()
           
 Float getValue()
           
 void paint(Graphics2D g, int x, int y, int w, int h)
           
 void setHue(Float hue)
           
 void setIcon(Icon icon)
           
 void setIconfile(String iconfile)
           
 void setName(String string)
           
 void setSaturation(Float saturation)
           
 void setStatus(Integer status)
           
 void setValue(Float value)
           
 boolean supportsType(String type)
          This method is used to allow the existence of generic objects which can render a range of types.
 
Methods inherited from class org.globus.cog.gui.grapheditor.nodes.AbstractNodeComponent
acceptsInEdgeConnection, acceptsOutEdgeConnection, createCanvas, getCanvas, getCanvasType, isResizable, setCanvas, setCanvasType, setResizable
 
Methods inherited from class org.globus.cog.gui.grapheditor.AbstractGraphComponent
addClassProperty, addProperty, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, get_ID, getClassProperties, getClassProperty, getClassProperty2, getComponentType, getParent, getProperties, getProperty, getProperty2, getPropertyValue, getRootNode, hasClassProperty, hasClassProperty, hasProperty, newInstance, newRenderer, newRenderer, removeProperty, removeProperty, removePropertyChangeListener, set_ID, setClassRendererClass, setClassRendererClass, setClassRendererClass, setClassRendererClass, setComponentType, setInstanceRendererClass, setInstanceRendererClass, setParent, setPropertyValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.cog.gui.grapheditor.nodes.NodeComponent
acceptsInEdgeConnection, acceptsOutEdgeConnection, createCanvas, getCanvas, isResizable
 
Methods inherited from interface org.globus.cog.gui.grapheditor.GraphComponent
clone, get_ID, getComponentType, getParent, getRootNode, newInstance, newRenderer, newRenderer, set_ID, setComponentType, setParent
 
Methods inherited from interface org.globus.cog.gui.grapheditor.properties.PropertyHolder
addProperty, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getProperties, getProperty, getPropertyValue, hasProperty, removeProperty, removePropertyChangeListener, setPropertyValue
 

Field Detail

STATUS_STOPPED

public static final int STATUS_STOPPED
See Also:
Constant Field Values

STATUS_RUNNING

public static final int STATUS_RUNNING
See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
See Also:
Constant Field Values

STATUS_COMPLETED

public static final int STATUS_COMPLETED
See Also:
Constant Field Values

STOPPED

public static final Integer STOPPED

RUNNING

public static final Integer RUNNING

FAILED

public static final Integer FAILED

COMPLETED

public static final Integer COMPLETED
Constructor Detail

GenericNode

public GenericNode()
Method Detail

supportsType

public boolean supportsType(String type)
Description copied from interface: GraphComponent
This method is used to allow the existence of generic objects which can render a range of types.

Specified by:
supportsType in interface GraphComponent
Overrides:
supportsType in class AbstractGraphComponent
Parameters:
type - The type to be checked
Returns:
true if this component can render the specified type

setStatus

public void setStatus(Integer status)

getStatus

public Integer getStatus()

setIconfile

public void setIconfile(String iconfile)

getIconfile

public String getIconfile()

setHue

public void setHue(Float hue)

getHue

public Float getHue()

setSaturation

public void setSaturation(Float saturation)

getSaturation

public Float getSaturation()

setValue

public void setValue(Float value)

getValue

public Float getValue()

getName

public String getName()

setName

public void setName(String string)

getIcon

public Icon getIcon()

setIcon

public void setIcon(Icon icon)

paint

public void paint(Graphics2D g,
                  int x,
                  int y,
                  int w,
                  int h)
Specified by:
paint in interface ScalableRenderer