|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gicentre.treemappa.TreeMapProperties
public class TreeMapProperties
Provides a persistent store of all treeMappa configuration options such as layout, text colours etc. This can be instantiated at run time, saved to and loaded from a file and passed to a TreeMappa object.
Constructor Summary | |
---|---|
TreeMapProperties()
Creates a default set of treeMappa properties. |
Method Summary | |
---|---|
java.lang.String[] |
getAlignments()
Provides a set of ordered alignment settings for each level of the treemap hierarchy. |
boolean |
getAllowVerticalLabels()
Reports whether or not labels can have vertical text. |
java.awt.Color |
getBorderColour()
Provides the colour used to display borders |
double[] |
getBorders()
Provides a set of ordered border width settings for each level of the treemap hierarchy. |
float[] |
getBranchMaxTextSizes()
Provides a set of ordered maximum branch text size settings for each level of the treemap hierarchy. |
java.awt.Color[] |
getBranchTextColours()
Provides a set of ordered branch text colour settings for each level of the treemap hierarchy. |
java.lang.String[] |
getBranchTextFonts()
Provides a set of ordered branch text font names for each level of the treemap hierarchy. |
float[] |
getBranchVectorWidths()
Provides a set of ordered vector width settings for each level of the treemap hierarchy. |
java.lang.String |
getConfigFileName()
Provides the name of the file used to save this configuration or null if not to be saved. |
java.lang.String |
getCTableFileName()
Provides the name of the file used for the treemap colour table. |
java.lang.String |
getFileType()
Provides the file type used for defining the hierarchy. |
double |
getHeight()
Provides the height of the treemap in pixels. |
java.lang.String |
getImageFileName()
Provides the name of the file used for image output. |
java.lang.String |
getInFileName()
Provides the name of the file used for defining the hierarchy. |
boolean |
getIsTransparent()
Reports whether or not transparency should be used when constructing the treemap graphic. |
boolean |
getIsVerbose()
Reports whether or not verbose reporting of progress is required. |
boolean |
getLabelBranches()
Reports whether or not branches are to be labelled. |
boolean |
getLabelLeaves()
Reports whether or not leaves are to be labelled. |
java.lang.String[] |
getLayouts()
Provides a set of ordered layout settings for each level of the treemap hierarchy. |
float |
getLeafMaxTextSize()
Provides the maximum leaf text size pixels. |
java.awt.Color |
getLeafTextColour()
Provides the colour used to display leaf labels. |
java.lang.String |
getLeafTextFont()
Provides the name of the font used to display leaf labels. |
float |
getLeafVectorWidth()
Provides the width of leaf displacement vectors in pixels. |
float |
getMutation()
Provides the mutation index that controls the degree of colour mutation when using evolutionary colour scheme. |
java.lang.String |
getOutFileName()
Provides the name of the file used for treemap coordinate output. |
int |
getRandColourLevel()
Provides the level at which random colour mutation should occur when using an evolutionary colour scheme. |
long |
getSeed()
Provides the random seed when using an evolutionary colour scheme. |
boolean |
getShowArrowHead()
Reports whether or not arrow heads are to be drawn on displacement vectors. |
boolean[] |
getShowBranchDisplacements()
Provides a set of branch displacement display settings for each level of the treemap hierarchy. |
boolean |
getShowLeafDisplacement()
Reports whether or not leaf displacement vectors are to be drawn. |
boolean |
getShowStatistics()
Reports whether or not treemap statistics are to be reported. |
boolean |
getShowTreeView()
Reports whether or not a collapsable tree view is to be shown. |
boolean |
getTextOnly()
Reports whether or not text only output is required. |
boolean |
getUseLabels()
Reports whether or not labels are used to define the treemap hierarchy. |
double |
getWidth()
Provides the width of the treemap in pixels. |
boolean |
load(java.io.InputStream inStream)
Loads a set of treemappa configuration options from an XML file from the given input stream. |
boolean |
load(java.lang.String fileName)
Loads a set of treemappa configuration options from an XML file with the given name. |
boolean |
save(java.lang.String fileName)
Saves these treeMappa properties to an XML file with the given name. |
boolean |
setParameter(java.lang.String key,
java.lang.String value)
Sets the given property with the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeMapProperties()
Method Detail |
---|
public boolean setParameter(java.lang.String key, java.lang.String value)
key
- Parameter whose value is to be set.value
- Value of parameter.
public boolean save(java.lang.String fileName)
fileName
- Name of XML file to store the treemappa configuration options.
public boolean load(java.lang.String fileName)
fileName
- Name of XML file from which to retrieve the treemappa configuration.
public boolean load(java.io.InputStream inStream)
inStream
- Input stream containing the XML file from which to retrieve the treemappa configuration.
public boolean getTextOnly()
public boolean getShowArrowHead()
public boolean getShowLeafDisplacement()
public boolean getIsVerbose()
public boolean getShowStatistics()
public boolean getShowTreeView()
public boolean getLabelLeaves()
public boolean getLabelBranches()
public boolean getAllowVerticalLabels()
public boolean getIsTransparent()
public boolean getUseLabels()
public int getRandColourLevel()
public long getSeed()
public java.awt.Color getLeafTextColour()
public java.lang.String getLeafTextFont()
public java.awt.Color getBorderColour()
public double getWidth()
public double getHeight()
public float getLeafVectorWidth()
public float getLeafMaxTextSize()
public float getMutation()
public java.lang.String getFileType()
public java.lang.String getInFileName()
public java.lang.String getOutFileName()
public java.lang.String getImageFileName()
public java.lang.String getCTableFileName()
public java.lang.String getConfigFileName()
public java.lang.String[] getLayouts()
public java.lang.String[] getAlignments()
public double[] getBorders()
public float[] getBranchMaxTextSizes()
public java.awt.Color[] getBranchTextColours()
public java.lang.String[] getBranchTextFonts()
public float[] getBranchVectorWidths()
public boolean[] getShowBranchDisplacements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |