Package eu.bandm.tools.formatDiagnosis
Class FormatTree
java.lang.Object
eu.bandm.tools.graficUtils.SwingForester
eu.bandm.tools.formatDiagnosis.FormatTree
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Swing tree Generation is for debugging purposes.Nested classes/interfaces inherited from class eu.bandm.tools.graficUtils.SwingForester
SwingForester.LazyNode, SwingForester.Leaf, SwingForester.TreeProxy
-
Field Summary
Fields inherited from class eu.bandm.tools.graficUtils.SwingForester
separatorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TreeNode
createNode
(TreeNode parent, String label, Object source) growBranch
(TreeNode parent, String label, Object source) Generate representation for oen single object.static void
Demo program for the interactive exploration of complex format structures, for debugging etc.static Format
static void
showSwingTree
(Format f, String windowname, boolean isHtml) Generate a swing tree representation and display it.Methods inherited from class eu.bandm.tools.graficUtils.SwingForester
getHTML, growRoot, setHTML
-
Field Details
-
contentPrefixPrinted
public static final int contentPrefixPrinted- See Also:
-
-
Constructor Details
-
FormatTree
public FormatTree()
-
-
Method Details
-
createNode
-
growBranch
Description copied from class:SwingForester
Generate representation for oen single object. Derived class must differentiated whether the type of the object shall be displayed as a subtree. In this case it will call return the result of one ofSwingForester.growCollection(String,TreeNode,String,Collection)
,SwingForester.growMap(TreeNode,String,Map)
, orSwingForester.growMultimap(TreeNode,String,Multimap)
. Otherwise it simply returns null, and a graphic leaf node will be generated by the caller =SwingForester.grow(@eu.bandm.tools.annotations.Opt javax.swing.tree.TreeNode,@eu.bandm.tools.annotations.Opt java.lang.String,java.lang.Object)
..- Specified by:
growBranch
in classSwingForester
- Parameters:
parent
- the tree node under which the new node will be placedlabel
- the visible label textsource
- the object to display, often simply a boxed primitiv value.
-
showSwingTree
Generate a swing tree representation and display it. This is only for debugging.- Parameters:
f
- the Format to displaywindowname
- the Title of the windowisHtml
- if tree labels use html features
-
of
-
main
Demo program for the interactive exploration of complex format structures, for debugging etc.
-