VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors.devicegraph
Class ProxyInfo

java.lang.Object
  extended by org.vrjuggler.vrjconfig.commoneditors.devicegraph.ConfigElementHolder
      extended by org.vrjuggler.vrjconfig.commoneditors.devicegraph.ProxyInfo

public class ProxyInfo
extends ConfigElementHolder

A holder for ConfigElements that is used to provide run-time identification of a ConfigElement reference for a device proxy configuration. Proper use of this type is critical for proper handling of ConfigElement references held in a JGraph graph model.

See Also:
DeviceGraphLayoutCache, DeviceGraphModel, ProxiedDeviceCellViewFactory

Constructor Summary
ProxyInfo(ConfigElement proxyElt, ConfigContext ctx, List aliases)
          Creates a new container for the given ConfigElement reference for a device proxy configuration.
 
Method Summary
 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.
 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.
 void addAlias(ConfigElement aliasElt)
           
 List getAliases()
          Returns the list of aliases for the device proxy config element held by this object.
 void removeAlias(ConfigElement aliasElt)
           
 
Methods inherited from class org.vrjuggler.vrjconfig.commoneditors.devicegraph.ConfigElementHolder
getContext, getElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyInfo

public ProxyInfo(ConfigElement proxyElt,
                 ConfigContext ctx,
                 List aliases)
Creates a new container for the given ConfigElement reference for a device proxy configuration.

Parameters:
proxyElt - the config element for the device proxy
ctx - the context in which proxyElt is active
aliases - the full list of aliases (instances of org.vrjuggler.jccl.config.ConfigElement) for proxyElt in ctx
Method Detail

acceptsSource

public 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. This determination is made by testing to see if the config element held by the parent of the target port (which must have parent containing a BaseDeviceInfo object) is of a type to which we are allowed to point.

Specified by:
acceptsSource in class ConfigElementHolder

acceptsTarget

public 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. This determination is made by testing to see if the source port (which must contain a user object of type ProxyPointerInfo) is allowed to point at our vertex.

Specified by:
acceptsTarget in class ConfigElementHolder

getAliases

public List getAliases()
Returns the list of aliases for the device proxy config element held by this object. This will never return null.

Returns:
A non-null reference to a java.util.List instance. The list contains instances of org.vrjuggler.jccl.config.ConfigElement.

addAlias

public void addAlias(ConfigElement aliasElt)

removeAlias

public void removeAlias(ConfigElement aliasElt)

VRJConfig UI API
v2.0


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