VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors.devicegraph
Class ProxyPointerInfo

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

public class ProxyPointerInfo
extends ConfigElementHolder

An information object typed to be used as the user-defined object held by the ports of a graph cell representing a device that is configured relative to a device proxy.

See Also:
ProxyInfo

Constructor Summary
ProxyPointerInfo(ConfigElement elt, ConfigContext ctx, PropertyDefinition propDef)
          Creates a new instance of the information object for a pointer to a device proxy.
 
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.
 PropertyDefinition getPointerPropertyDefinition()
          Returns the property definition that describes this object's pointer to a device proxy.
 
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

ProxyPointerInfo

public ProxyPointerInfo(ConfigElement elt,
                        ConfigContext ctx,
                        PropertyDefinition propDef)
Creates a new instance of the information object for a pointer to a device proxy. The pointer to the device proxy is described by the given property definition.

Parameters:
elt - the config element that is configured relative to a proxy
ctx - the context containing elt
propDef - the property definition that describes the property of elt that points at a device proxy
Method Detail

getPointerPropertyDefinition

public PropertyDefinition getPointerPropertyDefinition()
Returns the property definition that describes this object's pointer to a device proxy.

See Also:
ConfigElementHolder.getElement()

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 elmeent held by the parent of the target port (which must have parent containing a ProxyInfo object) is of a type at 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 always returns false because a port for an element that points at a proxy cannot be a target for anything else.

Specified by:
acceptsTarget in class ConfigElementHolder

VRJConfig UI API
v2.0


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