|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemind.modes.StylePattern
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".
Constructor Summary | |
StylePattern()
|
|
StylePattern(java.io.File file)
|
|
StylePattern(java.lang.String name)
|
|
StylePattern(XMLElement elm)
|
Method Summary | |
boolean |
getAppliesToEdge()
|
boolean |
getAppliesToNode()
|
boolean |
getAppliesToNodeFont()
|
boolean |
getAppliesToNodeIcon()
|
java.awt.Color |
getEdgeColor()
Get the value of edgeColor. |
java.lang.String |
getEdgeStyle()
Get the value of edgeStyle. |
int |
getEdgeWidth()
Get the value of edgeWidth. |
boolean |
getFolded()
Get the value of folded. |
java.lang.String |
getName()
Get the value of name. |
java.awt.Color |
getNodeColor()
Get the value of nodeColor. |
java.awt.Font |
getNodeFont()
Get the value of font. |
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. |
void |
loadPattern(XMLElement pattern)
|
static java.util.List |
loadPatterns(java.io.File file)
|
static java.util.List |
loadPatterns(java.io.Reader reader)
|
void |
setEdgeColor(java.awt.Color edgeColor)
Set the value of edgeColor. |
void |
setEdgeStyle(java.lang.String edgeStyle)
Set the value of edgeStyle. |
void |
setEdgeWidth(int edgeWidth)
Set the value of edgeWidth. |
void |
setFolded(boolean v)
Set the value of folded. |
void |
setName(java.lang.String v)
Set the value of name. |
void |
setNodeColor(java.awt.Color v)
Set the value of nodeColor. |
void |
setNodeFont(java.awt.Font nodeFont)
Set the value of font. |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StylePattern()
public StylePattern(java.lang.String name)
public StylePattern(java.io.File file) throws java.lang.Exception
public StylePattern(XMLElement elm)
Method Detail |
public java.lang.String toString()
public boolean getAppliesToEdge()
public boolean getAppliesToNode()
public boolean getAppliesToNodeFont()
public boolean getAppliesToNodeIcon()
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 boolean getFolded()
public void setFolded(boolean v)
v
- Value to assign to folded.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.lang.String getNodeStyle()
public void setNodeStyle(java.lang.String nodeStyle)
public java.awt.Font getNodeFont()
public void setNodeFont(java.awt.Font nodeFont)
public MindIcon getNodeIcon()
public void setNodeIcon(MindIcon nodeIcon)
public java.awt.Color getEdgeColor()
public void setEdgeColor(java.awt.Color edgeColor)
public java.lang.String getEdgeStyle()
public void setEdgeStyle(java.lang.String edgeStyle)
public int getEdgeWidth()
public void setEdgeWidth(int edgeWidth)
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
public void loadPattern(XMLElement pattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |