|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.rubecula.util.Presentation
|
+--com.rubecula.jquantity.SymbolicPresentation
Class to model the presentation of symbolic text, for example in a mathematical formula.
| Field Summary |
| Fields inherited from class com.rubecula.util.Presentation |
$empty, $Stars |
| Constructor Summary | |
|
SymbolicPresentation()
Secondary constructor to create an empty SymbolicPresentation. |
|
SymbolicPresentation(Presentation presentation)
Secondary constructor. |
|
SymbolicPresentation(java.lang.String string)
Secondary constructor. |
protected |
SymbolicPresentation(java.util.Vector presentations)
Primary constructor. |
| Method Summary | |
void |
add(java.lang.Object o)
Add a Presentation or String to this SymbolicPresentation |
java.lang.String |
audit(java.lang.String label)
Method to return a detailed string from an object for debugging purposes. |
java.lang.String |
getIdentifier()
Method to get the specific identifier for an object. |
Presentable |
parse()
Method to parse this text presentation and create a new Presentable object. |
java.lang.String |
toString(int width)
Render this Presentation as a String within the width specified. |
| Methods inherited from class com.rubecula.util.Presentation |
audit, audit, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected SymbolicPresentation(java.util.Vector presentations)
presentations - the vector of presentations.public SymbolicPresentation()
public SymbolicPresentation(Presentation presentation)
presentation - the initial presentation for this new SymbolicPresentation.public SymbolicPresentation(java.lang.String string)
string - the text for the one (simple) presentation.| Method Detail |
public java.lang.String toString(int width)
toString in class Presentationwidth - the max. number of characters within which to output the
presentation.
PresentationException - if the presentation cannot be rendered
within the given width.public java.lang.String audit(java.lang.String label)
Auditable
label - the label to associate with the data.
If label is non-null, a more detailed audit will be returned (this
normally occurs only at the top level).
public Presentable parse()
parse in class Presentation#_PresentableClass.
java.lang.RuntimeException - if the text presentation cannot be parsed.public java.lang.String getIdentifier()
public void add(java.lang.Object o)
throws PresentationException
o - the Presentation or String to be added.
PresentationException - if o is not a Presentation or String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||