Package eu.bandm.tools.formatDiagnosis
Class FormatTree
java.lang.Object
eu.bandm.tools.util.ui.SwingForester
eu.bandm.tools.formatDiagnosis.FormatTree
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classSwing tree Generation is for debugging purposes.Nested classes/interfaces inherited from class eu.bandm.tools.util.ui.SwingForester
SwingForester.LazyNode, SwingForester.Leaf, SwingForester.TreeProxy -
Field Summary
FieldsFields inherited from class eu.bandm.tools.util.ui.SwingForester
SEPARATOR_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FormatTree.Inner1createNode(TreeNode parent, String label, Object source) protected @Opt FormatTree.Inner1growBranch(TreeNode parent, String label, Object source) Generate representation for one single object.static JFramemakeSwingFrame(Format f, String windowname, boolean isHtml) Generate a swing tree representation in a Swing JFrame.Methods inherited from class eu.bandm.tools.util.ui.SwingForester
getHTML, growRoot, setHTML
-
Field Details
-
CONTENT_PREFIX_PRINTED
public static final int CONTENT_PREFIX_PRINTED- See Also:
-
-
Constructor Details
-
FormatTree
public FormatTree()
-
-
Method Details
-
createNode
-
growBranch
Description copied from class:SwingForesterGenerate representation for one 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 (which isSwingForester.testForBranch(javax.swing.tree.@eu.bandm.tools.annotations.Opt TreeNode,java.lang.@eu.bandm.tools.annotations.Opt String,java.lang.Object)).- Specified by:
growBranchin 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 primitive value.- Returns:
- a lazy node with overridden eval() method, or a self-defined leaf node, or null to request a leaf node with default appearance
-
makeSwingFrame
Generate a swing tree representation in a Swing JFrame. The caller must invoke.setVisible(true). This method is intended for debugging.- Parameters:
f- the Format to displaywindowname- the Title of the windowisHtml- if tree labels use html features
-