public interface GraphStyle
extends de.ims.icarus.util.Installable
Modifier and Type | Method and Description |
---|---|
com.mxgraph.view.mxStylesheet |
createStylesheet(GraphOwner owner,
de.ims.icarus.util.Options options)
Generates a
mxStylesheet to be used for the given
graph. |
java.lang.String |
getStyle(GraphOwner owner,
java.lang.Object cell,
de.ims.icarus.util.Options options)
Generate a style string to be used for the given cell.
|
com.mxgraph.view.mxStylesheet createStylesheet(GraphOwner owner, de.ims.icarus.util.Options options)
mxStylesheet
to be used for the given
graph. It is up to the GraphStyle
implementation
whether all possible styles should be defined in the returned
stylesheet. Typical implementations will define some general
base styles and do the "decoration" when asked to fetch the
style for a particular cell.java.lang.String getStyle(GraphOwner owner, java.lang.Object cell, de.ims.icarus.util.Options options)
Note that the GraphStyle
implementation itself is not
meant to set the style on a cell directly! It is merely a
source for style definitions and responsible for fetching
the right style.