comparison java/src/uk/ac/qmul/eecs/ccmi/diagrammodel/EdgeReferenceHolderMutableTreeNode.java @ 3:9e67171477bc

PHANTOM Omni Heptic device release
author Fiore Martin <fiore@eecs.qmul.ac.uk>
date Wed, 25 Apr 2012 17:09:09 +0100
parents 9418ab7b7f3f
children
comparison
equal deleted inserted replaced
2:4b2f975e35fa 3:9e67171477bc
18 */ 18 */
19 package uk.ac.qmul.eecs.ccmi.diagrammodel; 19 package uk.ac.qmul.eecs.ccmi.diagrammodel;
20 20
21 /** 21 /**
22 * This class is a special tree node which holds the EdgeReferenceMutableTreeNode 22 * This class is a special tree node which holds the EdgeReferenceMutableTreeNode
23 * in the tree layout, where It is normally placed as a Node's child. 23 * in the tree layout, where It is normally placed as a {@code DiagramNode}'s child.
24 *
25 *
26 */ 24 */
27 @SuppressWarnings("serial") 25 @SuppressWarnings("serial")
28 public class EdgeReferenceHolderMutableTreeNode extends DiagramModelTreeNode { 26 public class EdgeReferenceHolderMutableTreeNode extends DiagramTreeNode {
29 27
30 public EdgeReferenceHolderMutableTreeNode(Object userObj){ 28 EdgeReferenceHolderMutableTreeNode(Object userObj){
31 super(userObj); 29 super(userObj);
32 } 30 }
33 31
34 @Override 32 @Override
35 public String toString(){ 33 public String toString(){
37 builder.append(" (").append(getChildCount()).append(")"); 35 builder.append(" (").append(getChildCount()).append(")");
38 return builder.toString(); 36 return builder.toString();
39 } 37 }
40 38
41 /** 39 /**
42 * Return a String representing this object for this tree node in a way more suitable 40 * Returns a String representing this object for this tree node in a way more suitable
43 * for a text to speech synthesizer to read, than toString(). 41 * for a text to speech synthesizer to read, than {@code toString()}.
42 *
44 * @return a String suitable for text to speech synthesis 43 * @return a String suitable for text to speech synthesis
45 */ 44 */
46 @Override 45 @Override
47 public String spokenText(){ 46 public String spokenText(){
48 StringBuilder builder = new StringBuilder(getName()); 47 StringBuilder builder = new StringBuilder(getName());