|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
ucar.visad.display.TextDisplayable
public class TextDisplayable
Super class for displaying text data
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.LineDrawing |
|---|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
|
TextDisplayable()
Default constructor |
|
TextDisplayable(ScalarType textType)
Construct with the given name. |
|
TextDisplayable(String name)
Construct with the given name. |
|
TextDisplayable(String name,
ScalarType textType)
Construct with the given name. |
|
TextDisplayable(String name,
ScalarType textType,
boolean screenLocked)
Construct with the given name. |
protected |
TextDisplayable(TextDisplayable that)
Constructs from another instance. |
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Clone this Displayable so it can go into a different
display. |
protected DataRenderer |
getDataRenderer()
Get the renderer for this TextDisplayable |
Font |
getFont()
Get the font for labels. |
HersheyFont |
getHersheyFont()
Get the font for labels. |
TextControl.Justification |
getJustification()
Get the currently used text justification |
NumberFormat |
getNumberFormat()
Get the formatting for text object if values. |
boolean |
getScreenLocked()
Get whether this is a screen locked display or not |
float |
getTextSize()
Get the currently used text size |
ScalarType |
getTextType()
Return the currently used ScalarType for display. |
TextControl.Justification |
getverticalJustification()
Get the currently used text vertical justification |
void |
setCharacterRotation(double rotation)
Set the character rotation |
void |
setDisplayUnit(Unit unit)
Set the units for the displayed range |
void |
setFont(Object font)
Set the Font for all |
void |
setJustification(TextControl.Justification justification)
Set the justification for all labels |
void |
setNumberFormat(NumberFormat format)
Set the formatting for all labels |
void |
setRotation(double rotation)
Set the rotation |
void |
setScreenLocked(boolean locked)
Set the screenlocked attribute |
void |
setTextSize(float size)
Set the size for all labels |
void |
setTextType(ScalarType textType)
Set the text type to use. |
void |
setVerticalJustification(TextControl.Justification verticalJustification)
Set the vertical justification for all labels |
| Methods inherited from class ucar.visad.display.LineDrawing |
|---|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextDisplayable()
throws VisADException,
RemoteException
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error
public TextDisplayable(String name)
throws VisADException,
RemoteException
name - name must contain no spaces.
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error
public TextDisplayable(ScalarType textType)
throws VisADException,
RemoteException
textType - type to map to Display.Text may not be null
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error
public TextDisplayable(String name,
ScalarType textType)
throws VisADException,
RemoteException
name - name to identify this objecttextType - type to map to Display.Text
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error
public TextDisplayable(String name,
ScalarType textType,
boolean screenLocked)
throws VisADException,
RemoteException
name - name to identify this objecttextType - type to map to Display.TextscreenLocked - true to use a screen locked renderer
VisADException - necessary VisAD object couldn't be created
RemoteException - remote error
protected TextDisplayable(TextDisplayable that)
throws RemoteException,
VisADException
that - The other instance.
VisADException - VisAD failure.
RemoteException - Java RMI failure.| Method Detail |
|---|
public void setTextType(ScalarType textType)
throws RemoteException,
VisADException
textType - RealType or TextType to map to Display.Text
VisADException - VisAD failure.
RemoteException - Java RMI failure.public ScalarType getTextType()
public void setNumberFormat(NumberFormat format)
throws VisADException,
RemoteException
format - Number format
RemoteException - Java RMI error
VisADException - VisAD errorpublic NumberFormat getNumberFormat()
public void setScreenLocked(boolean locked)
throws VisADException,
RemoteException
locked - true to set screen locked
RemoteException - Java RMI error
VisADException - VisAD errorpublic boolean getScreenLocked()
public void setTextSize(float size)
throws VisADException,
RemoteException
size - size (1.0 default)
RemoteException - Java RMI error
VisADException - VisAD errorpublic float getTextSize()
public void setJustification(TextControl.Justification justification)
throws VisADException,
RemoteException
justification - The justification
RemoteException - Java RMI error
VisADException - VisAD errorpublic TextControl.Justification getJustification()
public void setVerticalJustification(TextControl.Justification verticalJustification)
throws VisADException,
RemoteException
verticalJustification - The justification
RemoteException - Java RMI error
VisADException - VisAD errorpublic TextControl.Justification getverticalJustification()
public void setFont(Object font)
throws VisADException,
RemoteException
font - font for text (Font or HersheyFont)
RemoteException - Java RMI error
VisADException - VisAD error or not a valid font object
public void setRotation(double rotation)
throws VisADException,
RemoteException
rotation - rotation
RemoteException - Java RMI error
VisADException - VisAD error
public void setCharacterRotation(double rotation)
throws VisADException,
RemoteException
rotation - rotation
RemoteException - Java RMI error
VisADException - VisAD errorpublic Font getFont()
public HersheyFont getHersheyFont()
public void setDisplayUnit(Unit unit)
throws VisADException,
RemoteException
setDisplayUnit in class Displayableunit - Unit for display
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
Displayable so it can go into a different
display.
cloneForDisplay in class DisplayableDataRemoteException - Java RMI error
VisADException - VisAD error
protected DataRenderer getDataRenderer()
throws VisADException
getDataRenderer in class DisplayableDataVisADException - problem creating renderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||