public class StylePattern
extends java.lang.Object
Constructor and Description |
---|
StylePattern()
Empty constructor
|
StylePattern(MindMapNode node)
Constructs a style pattern from a node:
|
StylePattern(XMLElement elm,
java.util.List justConstructedPatterns) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAppliesToChildren() |
boolean |
getAppliesToEdge() |
boolean |
getAppliesToNode() |
boolean |
getAppliesToNodeFont() |
boolean |
getAppliesToNodeIcon() |
StylePattern |
getChildrenStylePattern()
Get the value of ChildrenStylePattern.
|
java.awt.Color |
getEdgeColor()
Get the value of edgeColor.
|
java.lang.String |
getEdgeStyle()
Get the value of edgeStyle.
|
java.lang.Integer |
getEdgeWidth()
Get the value of edgeWidth.
|
java.lang.String |
getName()
Get the value of name.
|
java.awt.Color |
getNodeBackgroundColor() |
java.awt.Color |
getNodeColor()
Get the value of nodeColor.
|
java.lang.Boolean |
getNodeFontBold() |
java.lang.String |
getNodeFontFamily() |
java.lang.Boolean |
getNodeFontItalic() |
java.lang.Integer |
getNodeFontSize() |
MindIcon |
getNodeIcon()
Get the value of icon.
|
java.lang.String |
getNodeStyle()
Get the value of nodeStyle.
|
boolean |
getRecursive()
Determine if the properies of this pattern, of course except the "text"
attribute, apply to all the child nodes of this node.
|
java.lang.String |
getText()
Get the value of text.
|
protected void |
loadPattern(XMLElement pattern,
java.util.List justConstructedPatterns) |
static java.util.List |
loadPatterns(java.io.File file) |
static java.util.List |
loadPatterns(java.io.Reader reader) |
void |
setChildrenStylePattern(StylePattern pChildrenStylePattern)
Set the value of ChildrenStylePattern.
|
void |
setEdgeColor(java.awt.Color edgeColor)
Set the value of edgeColor.
|
void |
setEdgeStyle(java.lang.String edgeStyle)
Set the value of edgeStyle.
|
void |
setEdgeWidth(java.lang.Integer edgeWidth)
Set the value of edgeWidth.
|
void |
setName(java.lang.String v)
Set the value of name.
|
void |
setNodeBackgroundColor(java.awt.Color nodeBackgroundColor) |
void |
setNodeColor(java.awt.Color v)
Set the value of nodeColor.
|
void |
setNodeFontBold(java.lang.Boolean nodeFontBold) |
void |
setNodeFontFamily(java.lang.String nodeFontFamily) |
void |
setNodeFontItalic(java.lang.Boolean nodeFontItalic) |
void |
setNodeFontSize(java.lang.Integer nodeFontSize) |
void |
setNodeIcon(MindIcon nodeIcon)
Set the value of icon.
|
void |
setNodeStyle(java.lang.String nodeStyle)
Set the value of nodeStyle.
|
void |
setRecursive(boolean v)
Set the value of recursive.
|
void |
setText(java.lang.String v)
Set the value of text.
|
java.lang.String |
toString() |
public StylePattern()
public StylePattern(XMLElement elm, java.util.List justConstructedPatterns)
public StylePattern(MindMapNode node)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean getAppliesToEdge()
public boolean getAppliesToNode()
public boolean getAppliesToNodeFont()
public boolean getAppliesToNodeIcon()
public boolean getAppliesToChildren()
public java.lang.String getName()
public void setName(java.lang.String v)
v
- Value to assign to name.public boolean getRecursive()
public void setRecursive(boolean v)
v
- Value to assign to recursive.public java.lang.String getText()
public void setText(java.lang.String v)
v
- Value to assign to text.public java.awt.Color getNodeColor()
public void setNodeColor(java.awt.Color v)
v
- Value to assign to nodeColor.public java.awt.Color getNodeBackgroundColor()
public void setNodeBackgroundColor(java.awt.Color nodeBackgroundColor)
public java.lang.String getNodeStyle()
public void setNodeStyle(java.lang.String nodeStyle)
nodeStyle
- Value to assign to nodeStyle.public java.lang.String getNodeFontFamily()
public void setNodeFontFamily(java.lang.String nodeFontFamily)
nodeFontFamily
- The nodeFontFamily to set.public java.lang.Integer getNodeFontSize()
public void setNodeFontSize(java.lang.Integer nodeFontSize)
nodeFontSize
- The nodeFontSize to set.public MindIcon getNodeIcon()
public void setNodeIcon(MindIcon nodeIcon)
nodeIcon
- Value to assign to icon.public java.awt.Color getEdgeColor()
public void setEdgeColor(java.awt.Color edgeColor)
edgeColor
- Value to assign to edgeColor.public java.lang.String getEdgeStyle()
public void setEdgeStyle(java.lang.String edgeStyle)
edgeStyle
- Value to assign to edgeStyle.public java.lang.Integer getEdgeWidth()
public void setEdgeWidth(java.lang.Integer edgeWidth)
edgeWidth
- Value to assign to edgeWidth.public StylePattern getChildrenStylePattern()
public void setChildrenStylePattern(StylePattern pChildrenStylePattern)
pChildrenStylePattern
- Value to assign to ChildrenStylePattern.public static java.util.List loadPatterns(java.io.File file) throws java.lang.Exception
java.lang.Exception
public static java.util.List loadPatterns(java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
protected void loadPattern(XMLElement pattern, java.util.List justConstructedPatterns)
public java.lang.Boolean getNodeFontBold()
public void setNodeFontBold(java.lang.Boolean nodeFontBold)
nodeFontBold
- The nodeFontBold to set.public java.lang.Boolean getNodeFontItalic()
public void setNodeFontItalic(java.lang.Boolean nodeFontItalic)
nodeFontItalic
- The nodeFontItalic to set.