Cytoscape 2.8.0 API

cytoscape.visual.properties
Class AbstractVisualProperty

java.lang.Object
  extended by cytoscape.visual.properties.AbstractVisualProperty
All Implemented Interfaces:
VisualProperty
Direct Known Subclasses:
EdgeColorProp, EdgeFontFaceProp, EdgeFontSizeProp, EdgeLabelColorProp, EdgeLabelOpacityProp, EdgeLabelPositionProp, EdgeLabelProp, EdgeLabelWidthProp, EdgeLineStyleProp, EdgeLineWidthProp, EdgeOpacityProp, EdgeSourceArrowColorProp, EdgeSourceArrowOpacityProp, EdgeSourceArrowShapeProp, EdgeTargetArrowColorProp, EdgeTargetArrowOpacityProp, EdgeTargetArrowShapeProp, EdgeToolTipProp, NodeBorderColorProp, NodeBorderOpacityProp, NodeCustomGraphicsPositionProp, NodeCustomGraphicsProp, NodeFillColorProp, NodeFontFaceProp, NodeFontSizeProp, NodeHeightProp, NodeLabelColorProp, NodeLabelOpacityProp, NodeLabelPositionProp, NodeLabelProp, NodeLabelWidthProp, NodeLineStyleProp, NodeLineWidthProp, NodeOpacityProp, NodeShapeProp, NodeShowNestedNetworkProp, NodeSizeProp, NodeToolTipProp, NodeWidthProp

public abstract class AbstractVisualProperty
extends Object
implements VisualProperty


Field Summary
protected  cytoscape.visual.properties.ValueValidator validator
           
 
Constructor Summary
AbstractVisualProperty()
           
 
Method Summary
 void applyToEdgeView(EdgeView ev, Object o)
           
 void applyToEdgeView(EdgeView ev, Object o, VisualPropertyDependency dep)
          DOCUMENT ME!
 void applyToNodeView(NodeView nv, Object o)
           
 void applyToNodeView(NodeView nv, Object o, VisualPropertyDependency dep)
          DOCUMENT ME!
 boolean constrained(VisualPropertyDependency dep)
           
protected  Object getDefault()
           
 Object getDefaultAppearanceObject()
          DOCUMENT ME!
 Icon getDefaultIcon()
          DOCUMENT ME!
abstract  Icon getIcon(Object value)
           
 Map<Object,Icon> getIconSet()
          DOCUMENT ME!
abstract  VisualPropertyType getType()
          DOCUMENT ME!
 boolean isValidValue(Object value)
           
 void paintIcon(Graphics2D g2)
          DOCUMENT ME!
 Object parseProperty(Properties props, String baseKey)
          DOCUMENT ME!
 void showContinousEditor()
          DOCUMENT ME!
 void showDiscreteEditor()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validator

protected cytoscape.visual.properties.ValueValidator validator
Constructor Detail

AbstractVisualProperty

public AbstractVisualProperty()
Method Detail

getType

public abstract VisualPropertyType getType()
DOCUMENT ME!

Specified by:
getType in interface VisualProperty
Returns:
DOCUMENT ME!

showDiscreteEditor

public void showDiscreteEditor()
DOCUMENT ME!

Specified by:
showDiscreteEditor in interface VisualProperty

showContinousEditor

public void showContinousEditor()
DOCUMENT ME!

Specified by:
showContinousEditor in interface VisualProperty

getIconSet

public Map<Object,Icon> getIconSet()
DOCUMENT ME!

Specified by:
getIconSet in interface VisualProperty
Returns:
DOCUMENT ME!

paintIcon

public void paintIcon(Graphics2D g2)
DOCUMENT ME!

Specified by:
paintIcon in interface VisualProperty
Parameters:
g2 - DOCUMENT ME!

getDefaultIcon

public Icon getDefaultIcon()
DOCUMENT ME!

Specified by:
getDefaultIcon in interface VisualProperty
Returns:
DOCUMENT ME!

getIcon

public abstract Icon getIcon(Object value)
Specified by:
getIcon in interface VisualProperty

getDefault

protected Object getDefault()

applyToNodeView

public void applyToNodeView(NodeView nv,
                            Object o,
                            VisualPropertyDependency dep)
DOCUMENT ME!

Specified by:
applyToNodeView in interface VisualProperty
Parameters:
nv - DOCUMENT ME!
o - DOCUMENT ME!
dep - DOCUMENT ME!

applyToNodeView

public void applyToNodeView(NodeView nv,
                            Object o)
Specified by:
applyToNodeView in interface VisualProperty

applyToEdgeView

public void applyToEdgeView(EdgeView ev,
                            Object o,
                            VisualPropertyDependency dep)
DOCUMENT ME!

Specified by:
applyToEdgeView in interface VisualProperty
Parameters:
ev - DOCUMENT ME!
o - DOCUMENT ME!
dep - DOCUMENT ME!

applyToEdgeView

public void applyToEdgeView(EdgeView ev,
                            Object o)
Specified by:
applyToEdgeView in interface VisualProperty

parseProperty

public Object parseProperty(Properties props,
                            String baseKey)
DOCUMENT ME!

Specified by:
parseProperty in interface VisualProperty
Parameters:
props - DOCUMENT ME!
baseKey - DOCUMENT ME!
Returns:
DOCUMENT ME!

getDefaultAppearanceObject

public Object getDefaultAppearanceObject()
DOCUMENT ME!

Specified by:
getDefaultAppearanceObject in interface VisualProperty
Returns:
DOCUMENT ME!

constrained

public boolean constrained(VisualPropertyDependency dep)
Specified by:
constrained in interface VisualProperty

isValidValue

public boolean isValidValue(Object value)
Specified by:
isValidValue in interface VisualProperty

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.