public class TextDisplayable extends LineDrawing
DisplayableData.DragAdapter
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
MANIPULABLE, renderer, VISIBLE
DISPLAY, parent, SCALAR_MAP_SET
Modifier | Constructor and Description |
---|---|
|
TextDisplayable()
Default constructor
|
|
TextDisplayable(visad.ScalarType textType)
Construct with the given name.
|
|
TextDisplayable(java.lang.String name)
Construct with the given name.
|
|
TextDisplayable(java.lang.String name,
visad.ScalarType textType)
Construct with the given name.
|
|
TextDisplayable(java.lang.String name,
visad.ScalarType textType,
boolean screenLocked)
Construct with the given name.
|
protected |
TextDisplayable(TextDisplayable that)
Constructs from another instance.
|
Modifier and Type | Method and Description |
---|---|
Displayable |
cloneForDisplay()
Clone this
Displayable so it can go into a different
display. |
protected visad.DataRenderer |
getDataRenderer()
Get the renderer for this TextDisplayable
|
java.awt.Font |
getFont()
Get the font for labels.
|
visad.util.HersheyFont |
getHersheyFont()
Get the font for labels.
|
visad.TextControl.Justification |
getJustification()
Get the currently used text justification
|
java.text.NumberFormat |
getNumberFormat()
Get the formatting for text object if values.
|
boolean |
getScreenLocked()
Get whether this is a screen locked display or not
|
boolean |
getSphere()
Get the sphere property
|
float |
getTextSize()
Get the currently used text size
|
visad.ScalarType |
getTextType()
Return the currently used ScalarType for display.
|
visad.TextControl.Justification |
getverticalJustification()
Get the currently used text vertical justification
|
void |
setCharacterRotation(double rotation)
Set the character rotation
|
void |
setDisplayUnit(visad.Unit unit)
Set the units for the displayed range
|
void |
setFont(java.lang.Object font)
Set the Font for all
|
void |
setJustification(visad.TextControl.Justification justification)
Set the justification for all labels
|
void |
setNumberFormat(java.text.NumberFormat format)
Set the formatting for all labels
|
void |
setRotation(double rotation)
Set the rotation
|
void |
setScreenLocked(boolean locked)
Set the screenlocked attribute
|
void |
setSphere(boolean sphere)
Set the whether we're on a sphere
|
void |
setTextSize(float size)
Set the size for all labels
|
void |
setTextType(visad.ScalarType textType)
Set the text type to use.
|
void |
setVerticalJustification(visad.TextControl.Justification verticalJustification)
Set the vertical justification for all labels
|
void |
setVisible(boolean visible)
Sets the visibility property.
|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA
addAction, dataChange, destroy, getActive, getAnimationSet, getData, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, showme, toString
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFront
public TextDisplayable() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- necessary VisAD object couldn't be createdjava.rmi.RemoteException
- remote errorpublic TextDisplayable(java.lang.String name) throws visad.VisADException, java.rmi.RemoteException
name
- name must contain no spaces.visad.VisADException
- necessary VisAD object couldn't be createdjava.rmi.RemoteException
- remote errorpublic TextDisplayable(visad.ScalarType textType) throws visad.VisADException, java.rmi.RemoteException
textType
- type to map to Display.Text may not be nullvisad.VisADException
- necessary VisAD object couldn't be createdjava.rmi.RemoteException
- remote errorpublic TextDisplayable(java.lang.String name, visad.ScalarType textType) throws visad.VisADException, java.rmi.RemoteException
name
- name to identify this objecttextType
- type to map to Display.Textvisad.VisADException
- necessary VisAD object couldn't be createdjava.rmi.RemoteException
- remote errorpublic TextDisplayable(java.lang.String name, visad.ScalarType textType, boolean screenLocked) throws visad.VisADException, java.rmi.RemoteException
name
- name to identify this objecttextType
- type to map to Display.TextscreenLocked
- true to use a screen locked renderervisad.VisADException
- necessary VisAD object couldn't be createdjava.rmi.RemoteException
- remote errorprotected TextDisplayable(TextDisplayable that) throws java.rmi.RemoteException, visad.VisADException
that
- The other instance.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setTextType(visad.ScalarType textType) throws java.rmi.RemoteException, visad.VisADException
textType
- RealType or TextType to map to Display.Textvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.ScalarType getTextType()
public void setNumberFormat(java.text.NumberFormat format) throws visad.VisADException, java.rmi.RemoteException
format
- Number formatjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic void setVisible(boolean visible) throws java.rmi.RemoteException, visad.VisADException
setVisible
in class DisplayableData
visible
- Whether or not this instance should be
displayed.java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public java.text.NumberFormat getNumberFormat()
public void setScreenLocked(boolean locked) throws visad.VisADException, java.rmi.RemoteException
locked
- true to set screen lockedjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic boolean getScreenLocked()
public void setTextSize(float size) throws visad.VisADException, java.rmi.RemoteException
size
- size (1.0 default)java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic float getTextSize()
public void setSphere(boolean sphere) throws visad.VisADException, java.rmi.RemoteException
sphere
- true if spherejava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic boolean getSphere()
public void setJustification(visad.TextControl.Justification justification) throws visad.VisADException, java.rmi.RemoteException
justification
- The justificationjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic visad.TextControl.Justification getJustification()
public void setVerticalJustification(visad.TextControl.Justification verticalJustification) throws visad.VisADException, java.rmi.RemoteException
verticalJustification
- The justificationjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic visad.TextControl.Justification getverticalJustification()
public void setFont(java.lang.Object font) throws visad.VisADException, java.rmi.RemoteException
font
- font for text (Font or HersheyFont)java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD error or not a valid font objectpublic void setRotation(double rotation) throws visad.VisADException, java.rmi.RemoteException
rotation
- rotationjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic void setCharacterRotation(double rotation) throws visad.VisADException, java.rmi.RemoteException
rotation
- rotationjava.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorpublic java.awt.Font getFont()
public visad.util.HersheyFont getHersheyFont()
public void setDisplayUnit(visad.Unit unit) throws visad.VisADException, java.rmi.RemoteException
setDisplayUnit
in class Displayable
unit
- Unit for displayvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
Displayable
so it can go into a different
display.cloneForDisplay
in class DisplayableData
java.rmi.RemoteException
- Java RMI errorvisad.VisADException
- VisAD errorprotected visad.DataRenderer getDataRenderer() throws visad.VisADException
getDataRenderer
in class DisplayableData
visad.VisADException
- problem creating renderer