public static class MapDisplayControl.LatLonState extends LatLonData
fastRendering, myLatLon
Constructor and Description |
---|
LatLonState()
Parameterless ctor
|
LatLonState(boolean isLatitude,
java.awt.Color color,
float spacing,
float lineWidth,
int lineStyle)
The ctor
|
LatLonState(LatLonData 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(LatLonData that)
Copy the state from the given LatLonData
|
void |
setBase(float value)
Set the base of the lines
|
void |
setColor(java.awt.Color value)
Set the color
|
void |
setFastRendering(boolean value)
Set the fast rendering flag
|
void |
setLineStyle(int value)
Set the line style
|
void |
setLineWidth(float value)
Set the line width
|
void |
setSpacing(float value)
Set the spacing of the lines
|
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
|
getBase, getColor, getFastRendering, getIsLatitude, getLatLonLines, getLineStyle, getLineWidth, getMaxValue, getMinValue, getSpacing, getVisible, setIsLatitude, setMaxValue, setMinValue
public LatLonState()
public LatLonState(LatLonData that)
that
- The object to copy frompublic LatLonState(boolean isLatitude, java.awt.Color color, float spacing, float lineWidth, int lineStyle)
isLatitude
- Is this latitude or longitudecolor
- Line colorspacing
- Line spacinglineWidth
- Line widthlineStyle
- Line styleprotected void init(MapDisplayControl mapDisplayControl)
mapDisplayControl
- The display I am part ofpublic void initWith(LatLonData that)
initWith
in class LatLonData
that
- The LatLonData to copy frompublic void setColor(java.awt.Color value)
setColor
in class LatLonData
value
- the new Colorpublic void setVisible(boolean value)
setVisible
in class LatLonData
value
- true to be visiblepublic void setFastRendering(boolean value)
setFastRendering
in class LatLonData
value
- true to turn on fast renderingpublic void setLineStyle(int value)
setLineStyle
in class LatLonData
value
- the line style flagpublic void setSpacing(float value)
setSpacing
in class LatLonData
value
- the line spacingpublic void setBase(float value)
setBase
in class LatLonData
value
- the line basepublic void setLineWidth(float value)
setLineWidth
in class LatLonData
value
- the line widthprotected void checkVisibility()
protected boolean getRealVisibility()
getRealVisibility
in class LatLonData
public void stateChanged()
stateChanged
in class LatLonData
public java.lang.String toString()
toString
in class java.lang.Object