standup.clouds
Class CloudLabelSegment

java.lang.Object
  extended by standup.clouds.CloudLabelSegment

public class CloudLabelSegment
extends Object


Field Summary
private  Color color
           
private  SVGSpec[] imageSpecs
           
private  SymbolSupport minSymSupport
           
private  BubbleLabelSegmentString text
           
 
Constructor Summary
CloudLabelSegment(BubbleLabelSegmentString _t, SVGSpec[] _i, SymbolSupport minSym, Color _c)
           
CloudLabelSegment(LexemeSet ls, String prefix, SymbolType[] _st, Color c)
          this constructs a BubbleLabelSegment for a LexemeSet which contains DIFFERENT SENSES OF THE SAME WORDFORM!!! It displays the orthography of the wordform, with the different symbols associated with it above.
CloudLabelSegment(Lexeme _l, SymbolType[] _st, Color c)
          Returns a BubbleLabelSegment for a Lexeme which should have an image on top of it (according to preference listen in _st).
CloudLabelSegment(String _t)
          Basic constructors
CloudLabelSegment(String _t, boolean emphasized)
           
CloudLabelSegment(String _t, Color _c)
           
CloudLabelSegment(String t, String realConceptCode, SymbolType[] symbolSet, boolean isTelegraphic)
          Returns a message-based CloudLabelSegment for a String of text, with a symbol above it that represents the Widgit conceptcode specified by the given realConceptCode and symbolSet.
CloudLabelSegment(String _t, SVGSpec _i)
          Constructor for a CloudLabelSegment with a single SVGSpec and, optionally, a different color.
CloudLabelSegment(String _t, SVGSpec[] _i, SymbolSupport minSym, Color _c)
           
CloudLabelSegment(String _t, SVGSpec[] _i, SymbolSupport minSym, Color _c, boolean addSpace)
           
CloudLabelSegment(Topic _l, SymbolType[] _st, Color c)
          Returns a BubbleLabelSegment for a Lexeme which should have an image on top of it (according to preference listen in _st).
CloudLabelSegment(WordForm _wf, Color c)
          Returns a BubbleLabelSegment for a WordForm
 
Method Summary
 CloudLabelSegment copy()
           
 boolean equals(Object arg0)
           
 Color getColor()
           
 SVGSpec[] getImageSpecs()
           
 SymbolSupport getMinimumSymbolSupport()
           
 BubbleLabelSegmentString getSegmentStrings()
           
 String getText()
           
 boolean hasImage()
           
 void setText(String t)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

private BubbleLabelSegmentString text

color

private final Color color

imageSpecs

private final SVGSpec[] imageSpecs

minSymSupport

private final SymbolSupport minSymSupport
Constructor Detail

CloudLabelSegment

public CloudLabelSegment(WordForm _wf,
                         Color c)
Returns a BubbleLabelSegment for a WordForm


CloudLabelSegment

public CloudLabelSegment(String t,
                         String realConceptCode,
                         SymbolType[] symbolSet,
                         boolean isTelegraphic)
Returns a message-based CloudLabelSegment for a String of text, with a symbol above it that represents the Widgit conceptcode specified by the given realConceptCode and symbolSet. It is message-based in the sense that a PCS symbol will be displayed even if the frontend isn't in 'full PCS' mode. The isTelegraphic boolean parameter determines whether the segment is a particularly prominent phrase in the message, which will have its symbol appear when 'telegraphic mode' is on.

Parameters:
t - The text for the segment
realConceptCode - The 'real' conceptcode of the symbol
symbolSet - The preference for symbol to be used
isTelegraphic - Determines whether this segment's symbol is visible or not when telegraphic mode is on.

CloudLabelSegment

public CloudLabelSegment(Lexeme _l,
                         SymbolType[] _st,
                         Color c)
Returns a BubbleLabelSegment for a Lexeme which should have an image on top of it (according to preference listen in _st). This should only be called if SymbolSupport in the current CloudFrontendProfile == ALL


CloudLabelSegment

public CloudLabelSegment(Topic _l,
                         SymbolType[] _st,
                         Color c)
Returns a BubbleLabelSegment for a Lexeme which should have an image on top of it (according to preference listen in _st). This should only be called if SymbolSupport in the current CloudFrontendProfile == ALL


CloudLabelSegment

public CloudLabelSegment(LexemeSet ls,
                         String prefix,
                         SymbolType[] _st,
                         Color c)
this constructs a BubbleLabelSegment for a LexemeSet which contains DIFFERENT SENSES OF THE SAME WORDFORM!!! It displays the orthography of the wordform, with the different symbols associated with it above. TODO we need to make sure that the same symbols do not get added...

Parameters:
ls -
_st -
c -

CloudLabelSegment

public CloudLabelSegment(String _t)
Basic constructors

Parameters:
_t -

CloudLabelSegment

public CloudLabelSegment(String _t,
                         boolean emphasized)

CloudLabelSegment

public CloudLabelSegment(String _t,
                         Color _c)

CloudLabelSegment

public CloudLabelSegment(BubbleLabelSegmentString _t,
                         SVGSpec[] _i,
                         SymbolSupport minSym,
                         Color _c)

CloudLabelSegment

public CloudLabelSegment(String _t,
                         SVGSpec[] _i,
                         SymbolSupport minSym,
                         Color _c,
                         boolean addSpace)

CloudLabelSegment

public CloudLabelSegment(String _t,
                         SVGSpec[] _i,
                         SymbolSupport minSym,
                         Color _c)

CloudLabelSegment

public CloudLabelSegment(String _t,
                         SVGSpec _i)
Constructor for a CloudLabelSegment with a single SVGSpec and, optionally, a different color.

Parameters:
_t -
_i -
_c -
Method Detail

getMinimumSymbolSupport

public SymbolSupport getMinimumSymbolSupport()

copy

public CloudLabelSegment copy()

hasImage

public boolean hasImage()

getImageSpecs

public SVGSpec[] getImageSpecs()

getSegmentStrings

public BubbleLabelSegmentString getSegmentStrings()

getText

public String getText()

setText

public void setText(String t)

getColor

public Color getColor()

equals

public boolean equals(Object arg0)
Overrides:
equals in class Object