public class LatLonLabels extends TextDisplayable
DisplayableData.DragAdapter
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE
MANIPULABLE, renderer, VISIBLE
DISPLAY, parent, SCALAR_MAP_SET
Constructor and Description |
---|
LatLonLabels()
Default ctor
|
LatLonLabels(LatLonLabels that)
Copy constructor
|
LatLonLabels(visad.ScalarType textType)
Create a LatLonLabels with the type for the values
|
LatLonLabels(java.lang.String name)
Create a LatLonLabels with the name
|
LatLonLabels(java.lang.String name,
visad.ScalarType textType)
Create a default object
|
LatLonLabels(java.lang.String name,
visad.ScalarType textType,
boolean isLatitude,
float increment,
float min,
float max,
float base,
float[] labelLines)
Create LatLonLabels
|
Modifier and Type | Method and Description |
---|---|
protected void |
createLabels()
Generate the label field
|
float |
getBase() |
float |
getInterval()
Get the interval between labels (degrees)
|
java.lang.String |
getLabelFormat()
Get the label format
|
float[] |
getLabelLines() |
float |
getMax() |
float |
getMin() |
visad.ScalarType |
getTextType()
Return the currently used ScalarType for display.
|
boolean |
getUse360()
Get whether to use 0-360 labels for longitude
|
boolean |
isLatitude() |
void |
setBase(float base) |
void |
setInterval(float interval)
Set the interval between labels (degrees)
|
void |
setLabelFormat(java.lang.String labelFormat)
Set the interval between labels (degrees)
|
void |
setLabelLines(float[] labelLines) |
void |
setLatitude(boolean isLatitude) |
void |
setMax(float max) |
void |
setMin(float min) |
void |
setTextType(visad.ScalarType textType)
Set the text type to use.
|
void |
setUse360(boolean yesorno)
Set whether to use 0-360 labels for longitude
|
void |
setValues(float increment,
float min,
float max,
float base,
float[] labelLines)
Set the values for this LatLonLabels
|
cloneForDisplay, getDataRenderer, getFont, getHersheyFont, getJustification, getNumberFormat, getScreenLocked, getSphere, getTextSize, getverticalJustification, setCharacterRotation, setDisplayUnit, setFont, setJustification, setNumberFormat, setRotation, setScreenLocked, setSphere, setTextSize, setVerticalJustification, setVisible
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 LatLonLabels() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic LatLonLabels(java.lang.String name) throws visad.VisADException, java.rmi.RemoteException
name
- the name for the DataReferencejava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic LatLonLabels(visad.ScalarType textType) throws visad.VisADException, java.rmi.RemoteException
textType
- the type for the textjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic LatLonLabels(java.lang.String name, visad.ScalarType textType) throws visad.VisADException, java.rmi.RemoteException
name
- the name for the DataReferencetextType
- the type for the valuesjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic LatLonLabels(java.lang.String name, visad.ScalarType textType, boolean isLatitude, float increment, float min, float max, float base, float[] labelLines) throws visad.VisADException, java.rmi.RemoteException
name
- the name for the DataReferencetextType
- the type for the valuesisLatitude
- true if is latitudeincrement
- the incrementmin
- the minimum valuemax
- the maximum valuebase
- the base valuelabelLines
- the lines to labeljava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic LatLonLabels(LatLonLabels that) throws java.rmi.RemoteException, visad.VisADException
that
- the other LatLonLabelsjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Problem creating VisAD objectpublic void setValues(float increment, float min, float max, float base, float[] labelLines) throws visad.VisADException, java.rmi.RemoteException
increment
- the incrementbase
- the basemax
- the maximum valuemin
- the minimum valuelabelLines
- the label locationsjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic visad.ScalarType getTextType()
getTextType
in class TextDisplayable
public void setTextType(visad.ScalarType textType) throws java.rmi.RemoteException, visad.VisADException
setTextType
in class TextDisplayable
textType
- RealType or TextType to map to Display.Textvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void createLabels() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- Unable to create VisAD objectpublic boolean isLatitude()
public void setLatitude(boolean isLatitude) throws visad.VisADException, java.rmi.RemoteException
isLatitude
- the isLatitude to setjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic float getBase()
public void setBase(float base) throws visad.VisADException, java.rmi.RemoteException
base
- the base to setjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic float getMax()
public void setMax(float max) throws visad.VisADException, java.rmi.RemoteException
max
- the max to setjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic float getMin()
public void setMin(float min) throws visad.VisADException, java.rmi.RemoteException
min
- the min to setjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic float getInterval()
public void setInterval(float interval) throws visad.VisADException, java.rmi.RemoteException
interval
- the interval to setjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic boolean getUse360()
public void setUse360(boolean yesorno) throws visad.VisADException, java.rmi.RemoteException
yesorno
- true to use 0-360 labels for longitudejava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic java.lang.String getLabelFormat()
public void setLabelFormat(java.lang.String labelFormat) throws visad.VisADException, java.rmi.RemoteException
labelFormat
- the label formatjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labelspublic float[] getLabelLines()
public void setLabelLines(float[] labelLines) throws visad.VisADException, java.rmi.RemoteException
labelLines
- the labelLines to setjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- problem creating labels