|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.Control
visad.TextControl
public class TextControl
TextControl is the VisAD class for controlling Text display scalars.
| Nested Class Summary | |
|---|---|
static class |
TextControl.Justification
A class to represent the different types of justification. |
| Constructor Summary | |
|---|---|
TextControl(DisplayImpl d)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Indicates whether or not this instance equals an Object |
boolean |
getAutoSize()
|
boolean |
getCenter()
return the centering flag |
double |
getCharacterRotation()
Gets the value of characterRotation |
Font |
getFont()
return the java.awt.Font |
HersheyFont |
getHersheyFont()
return the HersheyFont |
TextControl.Justification |
getJustification()
Return the justification value |
NumberFormat |
getNumberFormat()
|
double[] |
getOffset()
Gets the value of offset |
double |
getRotation()
Get the rotation abcd 1 February 2001 |
String |
getSaveString()
get a string that can be used to reconstruct this control later |
double |
getScale()
Gets the value of scale |
double |
getSize()
return the size |
boolean |
getSphere()
|
TextControl.Justification |
getVerticalJustification()
Return the vertical justification value |
void |
nullControl()
end this control (called by ScalarMap.nullDisplay()) |
void |
setAutoSize(boolean auto)
|
void |
setCenter(boolean c)
set the centering flag; if true, text will be centered at mapped locations; if false, text will be to the right of mapped locations |
void |
setCharacterRotation(double argCharacterRotation)
Sets the value of characterRotation |
void |
setFont(Object f)
set the font; in the initial release this has no effect |
void |
setJustification(TextControl.Justification newJustification)
Set the justification flag Possible values are TextControl.Justification.LEFT, TextControl.Justification.CENTER and TextControl.Justification.RIGHT |
void |
setNumberFormat(NumberFormat f)
|
void |
setOffset(double[] argOffset)
Sets the value of offset |
void |
setRotation(double newRotation)
Set the rotation abcd 1 February 2001 |
void |
setSaveString(String save)
reconstruct this control using the specified save string |
void |
setScale(double argScale)
Sets the value of scale |
void |
setSize(double s)
set the size of characters; the default is 1.0 |
void |
setSphere(boolean s)
|
void |
setVerticalJustification(TextControl.Justification newJustification)
Set the vertical justification flag Possible values are TextControl.Justification.TOP, TextControl.Justification.CENTER and TextControl.Justification.BOTTOM |
void |
syncControl(Control rmt)
copy the state of a remote control to this control |
| Methods inherited from class visad.Control |
|---|
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextControl(DisplayImpl d)
| Method Detail |
|---|
public void setAutoSize(boolean auto)
throws VisADException
VisADExceptionpublic boolean getAutoSize()
public void nullControl()
Control
nullControl in class Control
public void setFont(Object f)
throws VisADException,
RemoteException
f - is the java.awt.Font or the visad.util.HersheyFont
VisADException
RemoteExceptionpublic Font getFont()
public HersheyFont getHersheyFont()
public void setCenter(boolean c)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic boolean getCenter()
public void setJustification(TextControl.Justification newJustification)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic TextControl.Justification getJustification()
public void setVerticalJustification(TextControl.Justification newJustification)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic TextControl.Justification getVerticalJustification()
public void setSize(double s)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic double getSize()
public void setSphere(boolean s)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic boolean getSphere()
public void setNumberFormat(NumberFormat f)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic NumberFormat getNumberFormat()
public void setRotation(double newRotation)
throws VisADException,
RemoteException
VisADException
RemoteExceptionpublic double getRotation()
public String getSaveString()
getSaveString in class Control
public void setSaveString(String save)
throws VisADException,
RemoteException
setSaveString in class Controlsave - - String representation for reconstruction
VisADException - if a VisAD error occurs
RemoteException - if an RMI error occurs
public void syncControl(Control rmt)
throws VisADException
syncControl in class Controlrmt - remote Control whose state is copied
VisADException - if a VisAD error occurspublic boolean equals(Object o)
Control
equals in class Controlo - an Object
public double getCharacterRotation()
public void setCharacterRotation(double argCharacterRotation)
throws VisADException,
RemoteException
argCharacterRotation - Value to assign to this.characterRotation
VisADException
RemoteExceptionpublic double getScale()
public void setScale(double argScale)
throws VisADException,
RemoteException
argScale - Value to assign to this.scale
VisADException
RemoteExceptionpublic double[] getOffset()
public void setOffset(double[] argOffset)
throws VisADException,
RemoteException
argOffset - Value to assign to this.offset
VisADException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||