|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.readers.VisualStyleBuilder
public class VisualStyleBuilder
Based on the graph/node/edge view information, build new Visual Style. This class accepts style properties and adds hidden Cytoscape attributes that will be used to actually create the style.
Constructor Summary | |
---|---|
VisualStyleBuilder(String name)
Build a new VisualStyleBuilder object whose output style will be called "name". |
|
VisualStyleBuilder(String name,
boolean addOvAttr)
Build a new VisualStyleBuilder object whose output style will be called "name". |
|
VisualStyleBuilder(String newName,
Map nodeGraphics,
Map edgeGraphics,
Map globalGraphics)
Deprecated. this should no longer be used and is not functional. Use VisualStyleBuilder(String) instead and then call addProperty for each value |
Method Summary | |
---|---|
void |
addProperty(String id,
VisualPropertyType type,
String desc)
This method actually adds a property to be considered for inclusion into the resulting style. |
void |
buildStyle()
Actually build the style using the provided properties |
void |
setBackgroundColor(Color backgroundColor)
Set the background color for the style we build. |
void |
setNodeSizeLocked(boolean pLock)
This method lock/unlock the size object (Node Width, Node Height) in NodeAppearanceCalculator If unlocked, we can modify both width and height of node |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VisualStyleBuilder(String name)
name
- the name of the visual style that will be created.public VisualStyleBuilder(String newName, Map nodeGraphics, Map edgeGraphics, Map globalGraphics)
newName
- the name of the visual style that will be created.nodeGraphics
- the map of node to JAXB Graphics objectedgeGraphics
- the map of edge to JAXB Graphics objectglobalGraphics
- the map of network to JAXB Graphics objectpublic VisualStyleBuilder(String name, boolean addOvAttr)
name
- the name of the visual style that will be created.addOvAttr
- not used.Method Detail |
---|
public void setBackgroundColor(Color backgroundColor)
backgroundColor
- the colorpublic void buildStyle()
public void addProperty(String id, VisualPropertyType type, String desc)
id
- the id of the node or edgetype
- the type of the propertydesc
- the property valuepublic void setNodeSizeLocked(boolean pLock)
pLock
-
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |