Proxy.NodeStyleRO
public static interface Proxy.NodeStyle extends Proxy.NodeStyleRO
node.style
- read-write.Modifier and Type | Method | Description |
---|---|---|
void |
setBackgroundColor(Color color) |
|
void |
setBackgroundColorCode(String rgbString) |
|
void |
setFloating(boolean floating) |
sets the floating style for the node (aka "free node").
|
void |
setMaxNodeWidth(int width) |
minNodeWidth in px - set to -1 to restore default.
|
void |
setMaxNodeWidth(String width) |
use length units like "1 cm" or "6 pt"
|
void |
setMaxNodeWidth(org.freeplane.core.util.Quantity<org.freeplane.core.ui.LengthUnits> width) |
Set to null to restore default
|
void |
setMinNodeWidth(int width) |
minNodeWidth in px - set to -1 to restore default.
|
void |
setMinNodeWidth(String width) |
use length units like "1 cm" or "6 pt"
|
void |
setMinNodeWidth(org.freeplane.core.util.Quantity<org.freeplane.core.ui.LengthUnits> width) |
Set to null to restore default
|
void |
setName(String styleName) |
Selects a style by name, see menu Styles → Pre/Userdefined styles for valid style names or use
Proxy.NodeStyleRO.getName() to display the name of a node's style. |
void |
setNodeTextColor(Color color) |
Deprecated.
since 1.2 - use
setTextColor(Color) instead. |
void |
setNumberingEnabled(boolean enabled) |
|
void |
setStyle(org.freeplane.features.styles.IStyle style) |
|
void |
setTextColor(Color color) |
|
void |
setTextColorCode(String rgbString) |
getBackgroundColor, getBackgroundColorCode, getEdge, getFont, getMaxNodeWidth, getMinNodeWidth, getName, getNodeTextColor, getStyle, getStyleNode, getTextColor, getTextColorCode, isFloating, isNumberingEnabled
void setStyle(org.freeplane.features.styles.IStyle style)
void setName(String styleName)
Proxy.NodeStyleRO.getName()
to display the name of a node's style.
It's guaranteed that node.style.name = node.style.name
does not change the style.styleName
- can be the name visible in the style menu or its translation key as returned by
Proxy.NodeStyleRO.getName()
. (Names of predefined styles are subject to translation.)
Only translation keys will continue to work if the language setting is changed.IllegalArgumentException
- if the style does not exist.void setBackgroundColor(Color color)
void setBackgroundColorCode(String rgbString)
rgbString
- a HTML color spec like #ff0000 (red) or #222222 (darkgray).void setNodeTextColor(Color color)
setTextColor(Color)
instead.void setTextColor(Color color)
void setTextColorCode(String rgbString)
rgbString
- a HTML color spec like #ff0000 (red) or #222222 (darkgray).void setFloating(boolean floating)
void setMinNodeWidth(int width)
void setMinNodeWidth(org.freeplane.core.util.Quantity<org.freeplane.core.ui.LengthUnits> width)
void setMinNodeWidth(String width)
void setMaxNodeWidth(int width)
void setMaxNodeWidth(org.freeplane.core.util.Quantity<org.freeplane.core.ui.LengthUnits> width)
void setMaxNodeWidth(String width)
void setNumberingEnabled(boolean enabled)