Cytoscape 2.8.0 API

cytoscape.visual
Interface VisualPropertyDependency


public interface VisualPropertyDependency

Define dependency of visual properties.

Author:
mes

Nested Class Summary
static class VisualPropertyDependency.Definition
          An enum that lists the possible dependencies.
 
Method Summary
 void applyDefaultProperties(Properties props, String baseKey)
          Will search the specified Properties using the specified basedKey for each dependency definition and will update this object according to any properties found.
 boolean check(VisualPropertyDependency.Definition s)
          Checks the state of the specified dependency definition.
 void copy(VisualPropertyDependency v)
          Clears the current object and copies the state of the specified VisualPropertyDependency into this object.
 Properties getDefaultProperties(String baseKey)
          Will return a new Properties object with properties set based on the specified baseKey and any dependency definitions set in this object.
 void set(VisualPropertyDependency.Definition s, boolean b)
          Sets the state of the specified definition to the specified value.
 

Method Detail

check

boolean check(VisualPropertyDependency.Definition s)
Checks the state of the specified dependency definition. If a value has not been explicitly set for the specified definition then the default value for that definition will be returned.


set

void set(VisualPropertyDependency.Definition s,
         boolean b)
Sets the state of the specified definition to the specified value.


copy

void copy(VisualPropertyDependency v)
Clears the current object and copies the state of the specified VisualPropertyDependency into this object. Once complete this object should have the identical settings to the specified object.


applyDefaultProperties

void applyDefaultProperties(Properties props,
                            String baseKey)
Will search the specified Properties using the specified basedKey for each dependency definition and will update this object according to any properties found.


getDefaultProperties

Properties getDefaultProperties(String baseKey)
Will return a new Properties object with properties set based on the specified baseKey and any dependency definitions set in this object.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.