VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors.devicegraph
Class ConfigElementHolder

java.lang.Object
  extended by org.vrjuggler.vrjconfig.commoneditors.devicegraph.ConfigElementHolder
Direct Known Subclasses:
BaseDeviceInfo, ProxyInfo, ProxyPointerInfo

public abstract class ConfigElementHolder
extends Object

A simple container for a ConfigElement reference and the ConfigContext wherein that ConfigElement reference exists. This is used for user objects in DefaultGraphCell instances. Some classes in the package org.vrjuggler.vrjconfig.commoneditors.devicegraph make use of this type to determine how to handle user data in a given cell.

See Also:
ConfigElement, ConfigContext, DefaultGraphCell

Constructor Summary
ConfigElementHolder(ConfigElement element, ConfigContext context)
           
 
Method Summary
abstract  boolean acceptsSource(GraphModel model, Object edge, Object port)
          Verifies that the given port can be a source of the given edge within the given model.
abstract  boolean acceptsTarget(GraphModel model, Object edge, Object port)
          Verifies that the given port can be a target of the given edge within the given model.
 ConfigContext getContext()
           
 ConfigElement getElement()
           
 String toString()
          Override of toString() needed for proper display of this type when it is used as the container for user data in a cell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigElementHolder

public ConfigElementHolder(ConfigElement element,
                           ConfigContext context)
Method Detail

getElement

public ConfigElement getElement()

getContext

public ConfigContext getContext()

acceptsSource

public abstract boolean acceptsSource(GraphModel model,
                                      Object edge,
                                      Object port)
Verifies that the given port can be a source of the given edge within the given model.


acceptsTarget

public abstract boolean acceptsTarget(GraphModel model,
                                      Object edge,
                                      Object port)
Verifies that the given port can be a target of the given edge within the given model.


toString

public String toString()
Override of toString() needed for proper display of this type when it is used as the container for user data in a cell. The cell view will make use of this to get a default representation of the user data.

Overrides:
toString in class Object

VRJConfig UI API
v2.0


Copyright © 1998–2005 Iowa State University. All rights reserved.