public class TextControl extends Control
Modifier and Type | Class and Description |
---|---|
static class |
TextControl.Justification
A class to represent the different types of justification.
|
Constructor and Description |
---|
TextControl(DisplayImpl d) |
Modifier and Type | Method and Description |
---|---|
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
|
addControlListener, animation_string, changeControl, checkTicks, clone, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString
public TextControl(DisplayImpl d)
public void setAutoSize(boolean auto) throws VisADException
VisADException
public 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.HersheyFontVisADException
RemoteException
public Font getFont()
public HersheyFont getHersheyFont()
public void setCenter(boolean c) throws VisADException, RemoteException
VisADException
RemoteException
public boolean getCenter()
public void setJustification(TextControl.Justification newJustification) throws VisADException, RemoteException
VisADException
RemoteException
public TextControl.Justification getJustification()
public void setVerticalJustification(TextControl.Justification newJustification) throws VisADException, RemoteException
VisADException
RemoteException
public TextControl.Justification getVerticalJustification()
public void setSize(double s) throws VisADException, RemoteException
VisADException
RemoteException
public double getSize()
public void setSphere(boolean s) throws VisADException, RemoteException
VisADException
RemoteException
public boolean getSphere()
public void setNumberFormat(NumberFormat f) throws VisADException, RemoteException
VisADException
RemoteException
public NumberFormat getNumberFormat()
public void setRotation(double newRotation) throws VisADException, RemoteException
VisADException
RemoteException
public double getRotation()
public String getSaveString()
getSaveString
in class Control
public void setSaveString(String save) throws VisADException, RemoteException
setSaveString
in class Control
save
- - String representation for reconstructionVisADException
- if a VisAD error occursRemoteException
- if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote Control whose state is copiedVisADException
- if a VisAD error occurspublic boolean equals(Object o)
Control
public double getCharacterRotation()
public void setCharacterRotation(double argCharacterRotation) throws VisADException, RemoteException
argCharacterRotation
- Value to assign to this.characterRotationVisADException
RemoteException
public double getScale()
public void setScale(double argScale) throws VisADException, RemoteException
argScale
- Value to assign to this.scaleVisADException
RemoteException
public double[] getOffset()
public void setOffset(double[] argOffset) throws VisADException, RemoteException
argOffset
- Value to assign to this.offsetVisADException
RemoteException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.