public class LatLonLabelData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fastRendering
fast rendering flag
|
protected LatLonLabels |
myLatLonLabels
The lat lon labels.
|
| Modifier | Constructor and Description |
|---|---|
|
LatLonLabelData()
Default ctor
|
|
LatLonLabelData(boolean isLatitude,
float interval)
The ctor
|
|
LatLonLabelData(boolean isLatitude,
float interval,
float min,
float max,
float base)
The ctor
|
|
LatLonLabelData(boolean isLatitude,
float interval,
float minValue,
float maxValue,
float baseValue,
float[] labelLines,
java.lang.String alignment,
java.lang.Object labelFont,
java.awt.Color color,
boolean fastRendering)
The ctor
|
protected |
LatLonLabelData(LatLonLabelData that)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatLabelLines(float[] vals)
Format the label lines as a string
|
java.lang.String |
getAlignment()
Get the Alignment property.
|
float |
getBaseValue()
Get the BaseValue property.
|
java.awt.Color |
getColor()
Get the Color property.
|
boolean |
getFastRendering()
Get the FastRendering property.
|
java.lang.Object |
getFont()
Get the Font property.
|
float |
getInterval()
Get the Interval property.
|
boolean |
getIsLatitude()
Get the IsLatitude property.
|
java.lang.String |
getLabelFormat()
Get the label format property
|
float[] |
getLabelLines()
Get the LabelLines property.
|
LatLonLabels |
getLatLonLabels()
Create, if needed, initialize and return the latlonlines object.
|
float |
getMaxValue()
Get the MaxValue property.
|
float |
getMinValue()
Get the MinValue property.
|
protected boolean |
getRealVisibility()
Meant to be overwrote by a derived class that needs to
determine its own visibility.
|
boolean |
getSphere()
Get the sphere property
|
boolean |
getUse360()
Get the Use360 property.
|
boolean |
getVisible()
Get the Visible property.
|
void |
initWith(LatLonLabelData that)
Initialize this object with the state from the given LatLonLabelData
|
static float[] |
parseLabelLineString(java.lang.String llString)
Parse the label line string
|
void |
setAlignment(java.lang.String value)
Set the Alignment property.
|
void |
setBaseValue(float value)
Set the BaseValue property.
|
void |
setColor(java.awt.Color value)
Set the Color property.
|
void |
setFastRendering(boolean value)
Set the FastRendering property.
|
void |
setFont(java.lang.Object value)
Set the Font property.
|
void |
setInterval(float value)
Set the Interval property.
|
void |
setIsLatitude(boolean value)
Set the IsLatitude property.
|
void |
setLabelFormat(java.lang.String format)
Set the label format (DD, DD:MM, etc)
|
void |
setLabelLines(float[] value)
Set the LabelLines property.
|
void |
setLabelsLineString(java.lang.String value)
Set the LabelLines from a string
|
void |
setMaxValue(float value)
Set the MaxValue property.
|
void |
setMinValue(float value)
Set the MinValue property.
|
void |
setSphere(boolean sphere)
Set the whether we're on a sphere
|
void |
setUse360(boolean value)
Set the use360 property.
|
void |
setVisible(boolean value)
Set the Visible property.
|
protected void |
stateChanged()
Gets called when any of the state has been changed.
|
protected LatLonLabels myLatLonLabels
protected boolean fastRendering
public LatLonLabelData()
public LatLonLabelData(boolean isLatitude,
float interval)
isLatitude - Is it lat or loninterval - The intervalpublic LatLonLabelData(boolean isLatitude,
float interval,
float min,
float max,
float base)
isLatitude - Is it lat or loninterval - The intervalmin - minimum valuemax - maximum valuebase - base valuepublic LatLonLabelData(boolean isLatitude,
float interval,
float minValue,
float maxValue,
float baseValue,
float[] labelLines,
java.lang.String alignment,
java.lang.Object labelFont,
java.awt.Color color,
boolean fastRendering)
isLatitude - Is it lat or loninterval - The intervalminValue - The min valuemaxValue - The max valuebaseValue - The base valuelabelLines - the label linesalignment - the alignment #ucar.unidata.ui.drawing.GlyphlabelFont - the font (Font or HersheyFont)color - The colorfastRendering - true to use fast renderingprotected LatLonLabelData(LatLonLabelData that)
that - the other latlondata objectpublic void initWith(LatLonLabelData that)
that - The other objectprotected void stateChanged()
public LatLonLabels getLatLonLabels() throws visad.VisADException, java.rmi.RemoteException
LatLonLabels objectvisad.VisADException - the visad exceptionjava.rmi.RemoteException - the remote exceptionprotected boolean getRealVisibility()
public void setColor(java.awt.Color value)
value - The new value for Colorpublic java.awt.Color getColor()
public void setInterval(float value)
value - The new value for Intervalpublic float getInterval()
public void setBaseValue(float value)
value - The new value for BaseValuepublic float getBaseValue()
public void setIsLatitude(boolean value)
value - The new value for IsLatitudepublic boolean getIsLatitude()
public void setMinValue(float value)
value - The new value for MinValuepublic float getMinValue()
public void setMaxValue(float value)
value - The new value for MaxValuepublic float getMaxValue()
public void setLabelLines(float[] value)
value - The new value for LabelLinespublic void setLabelsLineString(java.lang.String value)
value - The new string for LabelLinespublic static float[] parseLabelLineString(java.lang.String llString)
llString - the label line stringpublic static java.lang.String formatLabelLines(float[] vals)
vals - the valuespublic float[] getLabelLines()
public void setVisible(boolean value)
value - The new value for Visiblepublic boolean getVisible()
public void setFastRendering(boolean value)
value - The new value for FastRenderingpublic boolean getFastRendering()
public void setFont(java.lang.Object value)
value - The new value for Fontpublic java.lang.Object getFont()
public void setAlignment(java.lang.String value)
value - The new value for Alignmentpublic java.lang.String getAlignment()
public void setSphere(boolean sphere)
sphere - true if spherepublic boolean getSphere()
public void setLabelFormat(java.lang.String format)
format - the label formatpublic java.lang.String getLabelFormat()
public void setUse360(boolean value)
value - The new value for use360public boolean getUse360()