Cytoscape 3.0.1 API

org.cytoscape.view.vizmap.gui.util
Class PropertySheetUtil

java.lang.Object
  extended by org.cytoscape.view.vizmap.gui.util.PropertySheetUtil

public final class PropertySheetUtil
extends Object

Utility class to provide access to basic set of Visual Properties.


Cytoscape Backwards Compatibility (Static Class): This class is static and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.

Constructor Summary
PropertySheetUtil()
           
 
Method Summary
static void addBasicVisualProperty(VisualProperty<?> vp)
          Add a new basic visual property.
static boolean isAdvancedMode()
          Check the status of display mode
static boolean isBasic(VisualProperty<?> vp)
          Check whether given Visual Property is categorized as Basic or not.
static Boolean isCompatible(VisualProperty<?> vp)
          Returns true if given VisualProperty is compatible with current rendering engine.
static void removeIncompatibleVisualProperty(VisualProperty<?> vp)
          Remove incompatible VisualProperty from list if new RenderingEngine can handle it.
static void setMode(boolean advanced)
          Switch the current display mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySheetUtil

public PropertySheetUtil()
Method Detail

isBasic

public static final boolean isBasic(VisualProperty<?> vp)
Check whether given Visual Property is categorized as Basic or not.

Parameters:
vp - Visual Property to be checked
Returns:
true if it is a part of preset basic visual properties.

isAdvancedMode

public static final boolean isAdvancedMode()
Check the status of display mode

Returns:
true if it is in advanced mode.

setMode

public static final void setMode(boolean advanced)
Switch the current display mode.

Parameters:
advanced - If true, it is in advanced mode.

addBasicVisualProperty

public static final void addBasicVisualProperty(VisualProperty<?> vp)
Add a new basic visual property. This will be used by Rendering Engine developers.

Parameters:
vp - New Visual Property to be set as basic set.

isCompatible

public static final Boolean isCompatible(VisualProperty<?> vp)
Returns true if given VisualProperty is compatible with current rendering engine.

Parameters:
vp - VisualProperty to be tested
Returns:
true if compatible

removeIncompatibleVisualProperty

public static final void removeIncompatibleVisualProperty(VisualProperty<?> vp)
Remove incompatible VisualProperty from list if new RenderingEngine can handle it. For example, default rendering engine (ding) is 2D rendering engine and cannot handle Z-coordinate, but if you add 3D renderer, you can remove NODE_DEPTH from the list.

Parameters:
vp - VisualProperty to be removed from the incompatible list.

Cytoscape 3.0.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.