|
|||||||||
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
Class to represent the different types of justification Use a class so the user can't just pass in an arbitrary integer abcd 5 February 2001 |
Constructor Summary | |
---|---|
TextControl(DisplayImpl d)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
boolean |
getCenter()
return the centering flag |
java.awt.Font |
getFont()
return the java.awt.Font |
HersheyFont |
getHersheyFont()
return the HersheyFont |
TextControl.Justification |
getJustification()
Return the justification value abcd 5 February 2001 |
java.text.NumberFormat |
getNumberFormat()
|
double |
getRotation()
Get the rotation abcd 1 February 2001 |
java.lang.String |
getSaveString()
get a string that can be used to reconstruct this control later |
double |
getSize()
return the size |
boolean |
getSphere()
|
void |
nullControl()
end this control |
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 |
setFont(java.lang.Object f)
set the font; in the initial release this has no effect |
void |
setJustification(TextControl.Justification newJustification)
Set the justifcation flag Possible values are TextControl.Justification.LEFT, TextControl.Justification.CENTER and TextControl.Justification.RIGHT abcd 5 February 2001 |
void |
setNumberFormat(java.text.NumberFormat f)
|
void |
setRotation(double newRotation)
Set the rotation abcd 1 February 2001 |
void |
setSaveString(java.lang.String save)
reconstruct this control using the specified save string |
void |
setSize(double s)
set the size of characters; the default is 1.0 |
void |
setSphere(boolean s)
|
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
VisADException
public void nullControl()
Control
nullControl
in class Control
public void setFont(java.lang.Object f) throws VisADException, java.rmi.RemoteException
f
- is the java.awt.Font or the visad.util.HersheyFont
VisADException
java.rmi.RemoteException
public java.awt.Font getFont()
public HersheyFont getHersheyFont()
public void setCenter(boolean c) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public boolean getCenter()
public void setJustification(TextControl.Justification newJustification) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public TextControl.Justification getJustification()
public void setSize(double s) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public double getSize()
public void setSphere(boolean s) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public boolean getSphere()
public void setNumberFormat(java.text.NumberFormat f) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public java.text.NumberFormat getNumberFormat()
public void setRotation(double newRotation) throws VisADException, java.rmi.RemoteException
VisADException
java.rmi.RemoteException
public double getRotation()
public java.lang.String getSaveString()
getSaveString
in class Control
public void setSaveString(java.lang.String save) throws VisADException, java.rmi.RemoteException
setSaveString
in class Control
VisADException
java.rmi.RemoteException
public void syncControl(Control rmt) throws VisADException
syncControl
in class Control
VisADException
public boolean equals(java.lang.Object o)
equals
in class Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |