|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.palette.PaletteInfo
The palette information.
The kind of palette currently used is for different operators requiring particular syntax.
The instance of this class contain this particular syntax.
Moreover, when these operators take one or more arguments, the syntax is often made of brackets
and eventually separators (according to the arity of the operator). The instance of this class
contains also an offset representing where to start entering the argument(s) of the operator.
For example, the button (or other) in the palette associated to the trigonometric function sin, will
will provide an instance of this class with the syntax sin() and the offset 4.
| Constructor Summary | |
PaletteInfo(java.lang.String syntax,
byte offset)
the constructor. |
|
| Method Summary | |
byte |
getOffset()
Returns the offset associated to the syntax. |
java.lang.String |
getSyntax()
Returns the syntax of the associated operator in the palette. |
void |
setOffset(byte offset)
Sets the offset associated to the syntax. |
void |
setSyntax(java.lang.String syntax)
Sets the syntax of the associated operator in the palette. |
java.lang.String |
toString()
For Debugg. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PaletteInfo(java.lang.String syntax,
byte offset)
syntax - the syntax of the associated operator in the palette.offset - the offset associated to the syntax.| Method Detail |
public void setSyntax(java.lang.String syntax)
syntax - the syntax of the associated operator in the palette.public java.lang.String getSyntax()
public void setOffset(byte offset)
offset - the offset associated to the syntax. Its value must be > 0public byte getOffset()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||