This class represents a StylePattern than can be applied
to a node or a whole branch. The properties of the
nodes are replaced with the properties saved in the
pattern. If a property "text" is given, this pattern
is automatically applied to all nodes that contain the
String saved in "text".
getAppliesToChildren
public boolean getAppliesToChildren()
getAppliesToEdge
public boolean getAppliesToEdge()
getAppliesToNode
public boolean getAppliesToNode()
getAppliesToNodeFont
public boolean getAppliesToNodeFont()
getAppliesToNodeIcon
public boolean getAppliesToNodeIcon()
getChildrenStylePattern
public StylePattern getChildrenStylePattern()
Get the value of ChildrenStylePattern.
- Value of ChildrenStylePattern.
getEdgeColor
public Color getEdgeColor()
Get the value of edgeColor.
getEdgeStyle
public String getEdgeStyle()
Get the value of edgeStyle.
getEdgeWidth
public int getEdgeWidth()
Get the value of edgeWidth.
getFolded
public boolean getFolded()
Get the value of folded.
getName
public String getName()
Get the value of name.
getNodeColor
public Color getNodeColor()
Get the value of nodeColor.
getNodeFont
public Font getNodeFont()
Get the value of font.
getNodeIcon
public MindIcon getNodeIcon()
Get the value of icon.
getNodeStyle
public String getNodeStyle()
Get the value of nodeStyle.
getRecursive
public boolean getRecursive()
Determine if the properies of this pattern, of course
except the "text" attribute, apply to all the child nodes
of this node.
getText
public String getText()
Get the value of text.
loadPattern
protected void loadPattern(XMLElement pattern,
List justConstructedPatterns)
loadPatterns
public static List loadPatterns(File file)
throws Exception
loadPatterns
public static List loadPatterns(Reader reader)
throws Exception
setChildrenStylePattern
public void setChildrenStylePattern(StylePattern ChildrenStylePattern)
Set the value of ChildrenStylePattern.
setEdgeColor
public void setEdgeColor(Color edgeColor)
Set the value of edgeColor.
setEdgeStyle
public void setEdgeStyle(String edgeStyle)
Set the value of edgeStyle.
setEdgeWidth
public void setEdgeWidth(int edgeWidth)
Set the value of edgeWidth.
setFolded
public void setFolded(boolean v)
Set the value of folded.
v
- Value to assign to folded.
setName
public void setName(String v)
Set the value of name.
v
- Value to assign to name.
setNodeColor
public void setNodeColor(Color v)
Set the value of nodeColor.
v
- Value to assign to nodeColor.
setNodeFont
public void setNodeFont(Font nodeFont)
Set the value of font.
setNodeIcon
public void setNodeIcon(MindIcon nodeIcon)
Set the value of icon.
setNodeStyle
public void setNodeStyle(String nodeStyle)
Set the value of nodeStyle.
setRecursive
public void setRecursive(boolean v)
Set the value of recursive.
v
- Value to assign to recursive.
setText
public void setText(String v)
Set the value of text.
v
- Value to assign to text.
toString
public String toString()