public static class MapDisplayControl.LatLonLabelState extends LatLonLabelData
fastRendering, myLatLonLabels
Constructor and Description |
---|
LatLonLabelState()
Parameterless ctor
|
LatLonLabelState(boolean isLatitude,
float spacing)
The ctor
|
LatLonLabelState(LatLonLabelData that)
Ctor for creating from a LatLonData
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkVisibility()
Apply the visibility to the myLatLon
|
protected boolean |
getRealVisibility()
Overwrite the base class method to take into account the
display's visibility
|
protected void |
init(MapDisplayControl mapDisplayControl)
Set the MapDisplayControl
|
void |
initWith(LatLonLabelData that)
Copy the state from the given LatLonData
|
void |
setAlignment(java.lang.String value)
Set the alignment point
|
void |
setBaseValue(float value)
Set the base
|
void |
setColor(java.awt.Color value)
Set the color
|
void |
setFastRendering(boolean value)
Set the fast rendering flag
|
void |
setFont(java.lang.Object value)
Set the font
|
void |
setInterval(float value)
Set the spacing of the lines
|
void |
setLabelFormat(java.lang.String value)
Set the label format
|
void |
setLabelLines(float[] values)
Set the label lines of the lines
|
void |
setSphere(boolean value)
Set the sphere flag
|
void |
setUse360(boolean value)
Set the use360 property
|
void |
setVisible(boolean value)
Set the visibility
|
void |
stateChanged()
Called by the base class when one of the latlon values have changed.
|
java.lang.String |
toString()
to string
|
formatLabelLines, getAlignment, getBaseValue, getColor, getFastRendering, getFont, getInterval, getIsLatitude, getLabelFormat, getLabelLines, getLatLonLabels, getMaxValue, getMinValue, getSphere, getUse360, getVisible, parseLabelLineString, setIsLatitude, setLabelsLineString, setMaxValue, setMinValue
public LatLonLabelState()
public LatLonLabelState(LatLonLabelData that)
that
- The object to copy frompublic LatLonLabelState(boolean isLatitude, float spacing)
isLatitude
- Is this latitude or longitudespacing
- Line spacingprotected void init(MapDisplayControl mapDisplayControl)
mapDisplayControl
- The display I am part ofpublic void initWith(LatLonLabelData that)
initWith
in class LatLonLabelData
that
- The LatLonData to copy frompublic void setColor(java.awt.Color value)
setColor
in class LatLonLabelData
value
- the new Colorpublic void setVisible(boolean value)
setVisible
in class LatLonLabelData
value
- true to be visiblepublic void setFastRendering(boolean value)
setFastRendering
in class LatLonLabelData
value
- true to turn on fast renderingpublic void setLabelLines(float[] values)
setLabelLines
in class LatLonLabelData
values
- the label linespublic void setInterval(float value)
setInterval
in class LatLonLabelData
value
- the line spacingpublic void setBaseValue(float value)
setBaseValue
in class LatLonLabelData
value
- the line widthpublic void setFont(java.lang.Object value)
setFont
in class LatLonLabelData
value
- the label fontpublic void setAlignment(java.lang.String value)
setAlignment
in class LatLonLabelData
value
- the alignment pointpublic void setLabelFormat(java.lang.String value)
setLabelFormat
in class LatLonLabelData
value
- the label formatpublic void setSphere(boolean value)
setSphere
in class LatLonLabelData
value
- the sphere flagpublic void setUse360(boolean value)
setUse360
in class LatLonLabelData
value
- true to use 0-360 for longitudesprotected void checkVisibility()
protected boolean getRealVisibility()
getRealVisibility
in class LatLonLabelData
public void stateChanged()
stateChanged
in class LatLonLabelData
public java.lang.String toString()
toString
in class java.lang.Object