Class TLcdMapGeorefGridLayer
- All Implemented Interfaces:
ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILcdGXYLayer
,ILcdNotLabelDeconflictableLayer
,ILcdLayer
,Serializable
TLcdMapGeorefGridLayer
is an ILcdGXYLayer
that can
be added in an ILcdGXYView
to display a GeorefGrid.- Since:
- V2.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor for the TLcdMapGeorefGridLayer object.TLcdMapGeorefGridLayer
(String aLabel) Constructor for the TLcdMapGeorefGridLayer object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListener
to be notified when this object's properties change.void
addSelectionListener
(ILcdSelectionListener aSelectionListener) Performs no operations.int
applyOnInteract
(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Performs no action.void
clearSelection
(int aDispatchEventMode) Performs no operations.void
Performs no operations.getBounds
(int aMode, ILcdGXYView aGXYView) This method returns the view bounds of thisTLcdMapLonLatGridLayer
, taking into account the XYWorldReference of the givenILcdGXYView
aGXYView.getColor()
Returns the color used to render the grid lines.Returns the color used to render the corner labels, designating the 15 degree quadrangles.Returns theFont
for the corner labels, designating the 15 degree quadrangles.Sets the insets for the labels of the corner labels, designating the 15 degree quadrangles.int[]
Gets the latitude step sizes to use for painting the lon-lat grid.int[]
Gets the longitude step sizes to use for painting the lon-lat grid.double[]
Gets the precision switch over values for thisTLcdMapGeorefGridLayer
.getGXYEditor
(Object aObject) Returns the editor to use to modify the object via a view.getGXYLabelPainter
(Object aObject) Returns the label painter to use to paint the objects label in a view.getGXYPainter
(Object aObject) Returns the painter to use to render the object in a view.Returns the pen to use when performing basic painting operations for objects in this layers model.getIcon()
Returns a visual indication of the contents of this layer.getLabel()
A short textual representation of thisILcdLayer
.Returns the color used to render the labels.int[]
Gets the latitude step sizes to use for painting the georef labels.int[]
Gets the longitude step sizes to use for painting the georef labels.Returns theFont
for the labels.Returns the color of the halo effect.int
Returns the thickness of the halo effect for the grid labels.double[]
Gets the precision switch over values for thisTLcdMapGeorefGridLayer
.Returns the toolkit scale range for which to display labels for elements of the model.getModel()
ReturnsTLcdGeodetic2Grid.class
.Returns the toolkit scale range for which to display elements of the model.int
Returns the number of objects in this selection.Returns the color used to render the grid line at the Greenwich meridian and the equator.final boolean
Returns if anti-aliasing is enabled.boolean
Returnsfalse
.boolean
Returnstrue
if the layer supports editing its objects.boolean
Returns whether objects should be represented as text.boolean
Returns true.boolean
Returns whether the painter will add a halo effect around the grid labels.boolean
Returns alwaysfalse
.boolean
Returns alwaysfalse
.boolean
isSelected
(Object aObject) Returns alwaysfalse
.boolean
Returns whether the grid labels are painted at an angle.boolean
Deprecated.This method has been deprecated.boolean
Returns whether or not the layer's content is painted.void
paint
(Graphics aGraphics, int aMode, ILcdGXYView aGXYView) Paints the objects in thisTLcdMapLonLatGridLayer
taking into account the given mode.void
removePropertyChangeListener
(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListener
from receiving property change events for this object.void
removeSelectionListener
(ILcdSelectionListener aSelectionListener) Performs no operations.Returns an empty enumeration instance.void
selectObject
(Object aObject, boolean aSelection, int aDispatchEventMode) Performs no operations.final void
setAntiAliased
(boolean aAntiAliased) Enable or disable anti-aliasing.static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
Sets the color to use to render the grid lines.void
setCornerLabelColor
(Color aColor) Sets the color to use to render the corner labels, designating the 15 degree quadranglesvoid
setCornerLabelFont
(Font aCornerLabelFont) Sets theFont
for the corner labels, designating the 15 degree quadrangles.void
setCornerLabelInsets
(Insets aCornerLabelInsets) Retrieves the insets for the corner labels, designating the 15 degree quadrangles.void
setEditable
(boolean aEditable) Does not perform any operation.void
setGridDeltaLat
(int[] aGridDeltaLat) Sets the latitude step sizes to use for painting the lon-lat grid.void
setGridDeltaLon
(int[] aGridDeltaLon) Sets the longitude step sizes to use for painting the lon-lat grid.void
setGridPrecision
(double[] aGridPrecision) Sets the precision switch over values for thisTLcdMapGeorefGridLayer
.void
Sets a visual indication of the contents of this layer.void
Sets the textual representation of thisILcdLayer
.void
setLabelColor
(Color aColor) Sets the color to use to render the labels.void
setLabelDeltaLat
(int[] aLabelDeltaLat) Sets the latitude step sizes to use for painting the georef labels.void
setLabelDeltaLon
(int[] aLabelDeltaLon) Sets the longitude step sizes to use for painting the georef labels.void
setLabeled
(boolean aLabeled) Sets whether objects should be represented as text.void
setLabelFont
(Font aLabelFont) Sets theFont
for the labels.void
setLabelHaloColor
(Color aHaloColor) Sets the color of the halo effect for the grid labels.void
setLabelHaloEnabled
(boolean aHaloEnabled) Determines whether the painter will add a halo effect around the grid labels.void
setLabelHaloThickness
(int aHaloThickness) Sets the thickness defined in pixels of the halo effect for the grid labels.void
setLabelPrecision
(double[] aLabelPrecision) Sets the precision switch over values for thisTLcdMapGeorefGridLayer
.void
setScaleRange
(ILcdInterval newScaleRange) Sets the scale range in which thisILcdGXYLayer
will paint its elements.void
setSelectable
(boolean aSelectable) Does not perform any operation.void
setSlantedLabels
(boolean aSlantedLabels) Specifies whether the grid labels should be painted at an angle.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.void
setVisible
(boolean aVisibleValue) The property isVisible determines whether the grid is visible.void
setZeroColor
(Color aColor) Sets the color to use to render the grid line at the Greenwich meridian and the equator.void
Warn to stop painting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
getLabelMapScaleRange, getMapScaleRange
Methods inherited from interface com.luciad.util.ILcdSelection
getSelectedObjects
-
Constructor Details
-
TLcdMapGeorefGridLayer
public TLcdMapGeorefGridLayer()Constructor for the TLcdMapGeorefGridLayer object. Sets the label to "Georef".- See Also:
-
TLcdMapGeorefGridLayer
Constructor for the TLcdMapGeorefGridLayer object.- Parameters:
aLabel
- the label for thisTLcdMapGeorefGridLayer
.
-
-
Method Details
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Parameters:
aTraceOn
- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
setGridPrecision
public void setGridPrecision(double[] aGridPrecision) Sets the precision switch over values for thisTLcdMapGeorefGridLayer
.- Parameters:
aGridPrecision
- The new gridPrecision value.- See Also:
-
setGridDeltaLon
public void setGridDeltaLon(int[] aGridDeltaLon) Sets the longitude step sizes to use for painting the lon-lat grid.- Parameters:
aGridDeltaLon
- The new gridDeltaLon value.- See Also:
-
setGridDeltaLat
public void setGridDeltaLat(int[] aGridDeltaLat) Sets the latitude step sizes to use for painting the lon-lat grid.- Parameters:
aGridDeltaLat
- The new gridDeltaLat value.- See Also:
-
setLabelPrecision
public void setLabelPrecision(double[] aLabelPrecision) Sets the precision switch over values for thisTLcdMapGeorefGridLayer
.- Parameters:
aLabelPrecision
- The new labelPrecision value.- See Also:
-
setLabelDeltaLon
public void setLabelDeltaLon(int[] aLabelDeltaLon) Sets the longitude step sizes to use for painting the georef labels.- Parameters:
aLabelDeltaLon
- The new labelDeltaLon value.- See Also:
-
setLabelDeltaLat
public void setLabelDeltaLat(int[] aLabelDeltaLat) Sets the latitude step sizes to use for painting the georef labels.- Parameters:
aLabelDeltaLat
- The new labelDeltaLat value.- See Also:
-
setIcon
Description copied from interface:ILcdLayer
Sets a visual indication of the contents of this layer. -
setAntiAliased
public final void setAntiAliased(boolean aAntiAliased) Enable or disable anti-aliasing. By default, anti-aliasing is enabled.When activated, anti-aliasing will be applied on both the labels and the lines.
See also
ILcdGXYView.isAntiAliased()
.- Parameters:
aAntiAliased
- true to enable anti-aliasing.- Since:
- 2016.1
- See Also:
-
isAntiAliased
public final boolean isAntiAliased()Returns if anti-aliasing is enabled.- Returns:
- if anti-aliasing is enabled.
- Since:
- 2016.1
- See Also:
-
setScaleRange
Sets the scale range in which thisILcdGXYLayer
will paint its elements. The paint method of anILcdGXYLayer
shall not perform any action when:
aGXYContext.getGXYView().getScale()
<getDisplayRange().getMin()
or
aGXYContext.getGXYView().getScale()
>=getDisplayRange().getMax()
- Parameters:
newScaleRange
- The new scaleRange value.- See Also:
-
setVisible
public void setVisible(boolean aVisibleValue) The property isVisible determines whether the grid is visible. Sets isVisible to aVisibleValue.- Specified by:
setVisible
in interfaceILcdLayer
- Parameters:
aVisibleValue
- The new visible value.- See Also:
-
setEditable
public void setEditable(boolean aEditable) Does not perform any operation. The editableSupported property isfalse
.- Specified by:
setEditable
in interfaceILcdLayer
- Parameters:
aEditable
- true if the layer content can be edited- See Also:
-
setSelectable
public void setSelectable(boolean aSelectable) Does not perform any operation. The selectableSupported property isfalse
.- Specified by:
setSelectable
in interfaceILcdLayer
- Parameters:
aSelectable
-true
if the layer allows selection,false
otherwise.- See Also:
-
setLabeled
public void setLabeled(boolean aLabeled) Description copied from interface:ILcdGXYLayer
Sets whether objects should be represented as text. The value set for this property shall have no effect as long asILcdGXYLayer.isLabeledSupported()
returns false.- Specified by:
setLabeled
in interfaceILcdGXYLayer
- Parameters:
aLabeled
- true to have a textual representation of the objects in the model, false to have no such representation.
-
setLabel
Description copied from interface:ILcdLayer
Sets the textual representation of thisILcdLayer
. -
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getGridPrecision
public double[] getGridPrecision()Gets the precision switch over values for thisTLcdMapGeorefGridLayer
. The longitude and latitude steps used for painting the lon-lat grid depend on the the precision value. This precision value is a measure of distance in model coordinates. Its value specifies the distance for which two points will differ one pixel on the screen. The values should be ordered from large (imprecise) to small (accurate). Corresponding propertiesgridDeltaLon
andgridDeltaLat
are arrays with a length just one larger than this ofgridPrecision
containing the step sizes to use.- Returns:
- The gridPrecision value.
- See Also:
-
getGridDeltaLon
public int[] getGridDeltaLon()Gets the longitude step sizes to use for painting the lon-lat grid.- Returns:
- The gridDeltaLon value.
- See Also:
-
getGridDeltaLat
public int[] getGridDeltaLat()Gets the latitude step sizes to use for painting the lon-lat grid.- Returns:
- The gridDeltaLat value.
- See Also:
-
getLabelPrecision
public double[] getLabelPrecision()Gets the precision switch over values for thisTLcdMapGeorefGridLayer
. The longitude and latitude steps used for painting the georef labels depend on the the precision value. This precision value is a measure of distance in model coordinates. Its value specifies the distance for which two points will differ one pixel on the screen. The values should be ordered from large (imprecise) to small (accurate). Corresponding propertieslabelDeltaLon
andlabelDeltaLat
are arrays with the same length as this oflabelPrecision
containing the step sizes to use. If the precision (distance) is larger than the first switch value, the georef labels are not painted.- Returns:
- The labelPrecision value.
- See Also:
-
getLabelDeltaLon
public int[] getLabelDeltaLon()Gets the longitude step sizes to use for painting the georef labels.- Returns:
- The labelDeltaLon value.
- See Also:
-
getLabelDeltaLat
public int[] getLabelDeltaLat()Gets the latitude step sizes to use for painting the georef labels.- Returns:
- The labelDeltaLat value.
- See Also:
-
getGXYPainter
Description copied from interface:ILcdGXYLayer
Returns the painter to use to render the object in a view. If no painter is available, the object has no representation. When a painter is available, the object shall be assigned to the painter before using the painter, seesetObject
in ILcdGXYPainter.- Specified by:
getGXYPainter
in interfaceILcdGXYLayer
- Parameters:
aObject
- the object to find a painter for.- Returns:
- the painter to use to render the object in a view. When null is returned, the object has no representation in the view, as part of this layer.
-
getGXYLabelPainter
Description copied from interface:ILcdGXYLayer
Returns the label painter to use to paint the objects label in a view. If no label painter is available, the object does not have a label. When a label painter is available, the object shall be assigned to the label painter before using the label painter, seesetObject
in ILcdGXYLabelPainter.- Specified by:
getGXYLabelPainter
in interfaceILcdGXYLayer
- Parameters:
aObject
- the object to find a label painter for.- Returns:
- the label painter to use to render the objects label in a view. When null is returned, the object does not have a label in the view, as part of this layer.
-
getGXYEditor
Description copied from interface:ILcdGXYLayer
Returns the editor to use to modify the object via a view. If no editor is available, the object cannot be edited via interaction through a view. When an editor is available, the object shall be assigned to the editor before editing, usingsetObject
in ILcdGXYEditor.- Specified by:
getGXYEditor
in interfaceILcdGXYLayer
- Parameters:
aObject
- the object to find an editor for.- Returns:
- the editor to use to modify the object via a view. When null is returned, the object cannot be edited via the view.
-
getIcon
Description copied from interface:ILcdLayer
Returns a visual indication of the contents of this layer. For example, for a grid layer, an icon containing a grid could be used. -
getGXYPen
Description copied from interface:ILcdGXYLayer
Returns the pen to use when performing basic painting operations for objects in this layers model.- Specified by:
getGXYPen
in interfaceILcdGXYLayer
- Returns:
- the pen to use when performing basic painting operations for objects in this layers model.
-
getScaleRange
Description copied from interface:ILcdGXYLayer
Returns the toolkit scale range for which to display elements of the model. In other words, the paint method will not render any objects in a view when:
view.getScale()
<getScaleRange().getMin()
orview.getScale()
>=getScaleRange().getMax()
. This does not imply that all objects in the model should be painted when the scale is inside this range as other restrictions may apply. For example, a layer may have a filter which defines which objects should be painted. For most use cases, we recommended using theunitless map scale range
instead. This property is mutually exclusive with the map scale range: only one of them has a non-null
value.- Specified by:
getScaleRange
in interfaceILcdGXYLayer
- Returns:
- an
ILcdInterval
containing the minimum and maximum value of view scales for which objects should be rendered, excluding the maximum.null
if the scale constraints are determined byILcdGXYLayer.getMapScaleRange()
. The scales are expressed in toolkit pixels/world unit. - See Also:
-
getLabelScaleRange
Description copied from interface:ILcdGXYLayer
Returns the toolkit scale range for which to display labels for elements of the model. In other words, the paint method will not render any labels for objects in a view when:
view.getScale()
<getLabelScaleRange().getMin()
orview.getScale()
>=getLabelScaleRange().getMax()
. This does not imply that labels for all objects in the model should be painted when the scale is inside this range as other restrictions may apply. For example, a layer may decide not to paint any labels for objects whose body is not painted. For most use cases, we recommended using theunitless map scale range
instead. This property is mutually exclusive with the label map scale range: only one of them has a non-null
value.- Specified by:
getLabelScaleRange
in interfaceILcdGXYLayer
- Returns:
- an
ILcdInterval
containing the minimum and maximum value of view scales for which labels should be rendered, excluding the maximum.null
if the scale constraints are determined byILcdGXYLayer.getLabelMapScaleRange()
The scales are expressed in toolkit pixels/world unit. - See Also:
-
getBounds
This method returns the view bounds of thisTLcdMapLonLatGridLayer
, taking into account the XYWorldReference of the givenILcdGXYView
aGXYView.- Specified by:
getBounds
in interfaceILcdGXYLayer
- Parameters:
aMode
- a bitwise combination of ALL or SELECTION and one or more of BODIES and HANDLES. TheILcdGXYLayer.LABELS
mode is not supported.aGXYView
- the view in which the layer could be placed. This enables taking into account the views settings, for example the scale.- Returns:
- a bounds (in view coordinates, pixels) that encompasses the representation of all objects that are rendered in a view.
-
getModel
-
isVisible
public boolean isVisible()Description copied from interface:ILcdLayer
Returns whether or not the layer's content is painted. -
isEditableSupported
public boolean isEditableSupported()Description copied from interface:ILcdLayer
Returnstrue
if the layer supports editing its objects.- Specified by:
isEditableSupported
in interfaceILcdLayer
- Returns:
false
.- See Also:
-
isEditable
public boolean isEditable()Returnsfalse
.- Specified by:
isEditable
in interfaceILcdLayer
- Returns:
true
if thisILcdLayer
is editable,false
otherwise- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Returns alwaysfalse
.- Specified by:
isSelectableSupported
in interfaceILcdLayer
- Returns:
true
if thisILcdLayer
supports the selectable property,false
otherwise. I.e. if thisILcdLayer
can be put or not in a selectable mode.- See Also:
-
isSelectable
public boolean isSelectable()Returns alwaysfalse
.- Specified by:
isSelectable
in interfaceILcdLayer
- Returns:
true
if the layer allows selection,false
otherwise.- See Also:
-
isLabeledSupported
public boolean isLabeledSupported()Returns true.- Specified by:
isLabeledSupported
in interfaceILcdGXYLayer
- Returns:
- whether this layer supports representing objects as text.
-
isLabeled
public boolean isLabeled()Description copied from interface:ILcdGXYLayer
Returns whether objects should be represented as text. Note that this property shall not be taken into account whenILcdGXYLayer.isLabeledSupported()
returns false.- Specified by:
isLabeled
in interfaceILcdGXYLayer
- Returns:
- whether objects should be represented as text.
- See Also:
-
getLabel
Description copied from interface:ILcdLayer
A short textual representation of thisILcdLayer
. -
getSelectionCount
public int getSelectionCount()Description copied from interface:ILcdSelection
Returns the number of objects in this selection.- Specified by:
getSelectionCount
in interfaceILcdSelection<Object>
- Returns:
- 0.
-
isSelected
Returns alwaysfalse
.- Specified by:
isSelected
in interfaceILcdSelection<Object>
- Parameters:
aObject
- theObject
to be checked.- Returns:
true
if theObject
is in thisILcdSelection
, false otherwise.
-
getModelXYWorldTransfoClass
ReturnsTLcdGeodetic2Grid.class
.- Specified by:
getModelXYWorldTransfoClass
in interfaceILcdGXYLayer
- Returns:
- the transformation class that to use to transform points and bounds from model space to world space and back.
-
applyOnInteract
public int applyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Performs no action.- Specified by:
applyOnInteract
in interfaceILcdGXYLayer
- Parameters:
aFunction
- the function to apply. When the function returns false, no more objects should be passed to the function.aBounds
- all objects who lie partially or completely in this area in the view are candidates to be passed to the function.aStrictInteract
- iftrue
, theILcdFunction
shall be applied only to the objects interacting with the given bounds. When false is passed, other objects may be taken into account too. When applying the function to an object consumes less time than checking whether an objects representation interacts with the bounds, non-strict interaction is generally faster.aGXYView
- the view in whose bounds the objects representations should be in order to be passed to the function.- Returns:
- the number of objects the function was applied on.
-
paint
Paints the objects in thisTLcdMapLonLatGridLayer
taking into account the given mode. This implementation calls on the gridPainter to paint theTLcdLonLatGrid
, lonLatGrid, associated to thisTLcdMapLonLatGridLayer
.- Specified by:
paint
in interfaceILcdGXYLayer
- Parameters:
aGraphics
- the Graphics to paint on.aMode
- indicates what should be painted and how it should be painted.aGXYView
- the view to paint for.- See Also:
-
stopPainting
public void stopPainting()Warn to stop painting.- Specified by:
stopPainting
in interfaceILcdGXYLayer
- See Also:
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSource
Registers the given
PropertyChangeListener
to be notified when this object's properties change.In case you need to register a listener which keeps a reference to an object with a shorter life-time than this change source, you can use a
ALcdWeakPropertyChangeListener
instance as property change listener.- Specified by:
addPropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aPropertyChangeListener
- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSource
De-registers the given
PropertyChangeListener
from receiving property change events for this object.If the listener was added more than once, it will be notified one less time after being removed. If the listener is
null
, or was never added, no exception is thrown and no action is taken.- Specified by:
removePropertyChangeListener
in interfaceILcdPropertyChangeSource
- Parameters:
aPropertyChangeListener
- the listener that should no longer be notified of changes of this object's properties- See Also:
-
selectedObjects
Returns an empty enumeration instance.- Specified by:
selectedObjects
in interfaceILcdSelection<Object>
- Returns:
TLcdEmptyEnumeration.getInstance
().
-
selectObject
Performs no operations.- Specified by:
selectObject
in interfaceILcdLayer
- Parameters:
aObject
- theObject
to select or deselect. The object should be in the model of this layer. The implementation of this method is not responsible for checking this.aSelection
- the selection state,true
to select,false
to deselect.aDispatchEventMode
- shall be one amongILcdFireEventMode.FIRE_NOW
,ILcdFireEventMode.FIRE_LATER
,ILcdFireEventMode.NO_EVENT
- See Also:
-
fireCollectedSelectionChanges
public void fireCollectedSelectionChanges()Performs no operations.- Specified by:
fireCollectedSelectionChanges
in interfaceILcdLayer
-
clearSelection
public void clearSelection(int aDispatchEventMode) Performs no operations.- Specified by:
clearSelection
in interfaceILcdLayer
- Parameters:
aDispatchEventMode
- shall be one amongILcdFireEventMode.FIRE_NOW
,ILcdFireEventMode.FIRE_LATER
,ILcdFireEventMode.NO_EVENT
- See Also:
-
addSelectionListener
Performs no operations.- Specified by:
addSelectionListener
in interfaceILcdSelection<Object>
- Parameters:
aSelectionListener
- theILcdSelectionListener
to be added.- See Also:
-
removeSelectionListener
Performs no operations.- Specified by:
removeSelectionListener
in interfaceILcdSelection<Object>
- Parameters:
aSelectionListener
- theILcdSelectionListener
to be removed.- See Also:
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
getColor
Returns the color used to render the grid lines.- Returns:
- the color used to render the grid lines.
-
setColor
Sets the color to use to render the grid lines.- Parameters:
aColor
- the color to use to render the grid lines.
-
getZeroColor
Returns the color used to render the grid line at the Greenwich meridian and the equator.- Returns:
- the color used to render the grid line at the Greenwich meridian and the equator.
-
setZeroColor
Sets the color to use to render the grid line at the Greenwich meridian and the equator.- Parameters:
aColor
- the color to use to render the grid line at the Greenwich meridian and the equator.
-
isSlantedLabels
public boolean isSlantedLabels()Returns whether the grid labels are painted at an angle. -
setSlantedLabels
public void setSlantedLabels(boolean aSlantedLabels) Specifies whether the grid labels should be painted at an angle. -
getLabelColor
Returns the color used to render the labels.- Returns:
- the color used to render the labels.
-
setLabelColor
Sets the color to use to render the labels.- Parameters:
aColor
- the color to use to render the labels.
-
getLabelFont
Returns theFont
for the labels. -
setLabelFont
Sets theFont
for the labels. -
isLabelHaloEnabled
public boolean isLabelHaloEnabled()Returns whether the painter will add a halo effect around the grid labels.- Returns:
- whether the painter will add a halo effect around the grid labels.
- See Also:
-
setLabelHaloEnabled
public void setLabelHaloEnabled(boolean aHaloEnabled) Determines whether the painter will add a halo effect around the grid labels. By default, this property is set tofalse
.- Parameters:
aHaloEnabled
- a flag indicating whether to add a halo effect around the grid labels.- See Also:
-
getLabelHaloThickness
public int getLabelHaloThickness()Returns the thickness of the halo effect for the grid labels.- Returns:
- the thickness of the halo effect for the grid labels.
- See Also:
-
setLabelHaloThickness
public void setLabelHaloThickness(int aHaloThickness) Sets the thickness defined in pixels of the halo effect for the grid labels. By default, this property is set to1
.- Parameters:
aHaloThickness
- the thickness defined in pixels of the halo effect for the grid labels.- See Also:
-
getLabelHaloColor
Returns the color of the halo effect.- Returns:
- the color of the halo effect.
- See Also:
-
setLabelHaloColor
Sets the color of the halo effect for the grid labels. By default, this property is set toColor.white
.- Parameters:
aHaloColor
- the color of the halo effect for the grid labels.- See Also:
-
getCornerLabelColor
Returns the color used to render the corner labels, designating the 15 degree quadrangles.- Returns:
- the color used to render the corner labels.
-
setCornerLabelColor
Sets the color to use to render the corner labels, designating the 15 degree quadrangles- Parameters:
aColor
- the color to use to render the corner labels.
-
getCornerLabelInsets
Sets the insets for the labels of the corner labels, designating the 15 degree quadrangles. Corner labels will not be painted in the border defined by the insets.- Returns:
- the borders to avoid placing the corner labels at.
-
setCornerLabelInsets
Retrieves the insets for the corner labels, designating the 15 degree quadrangles. Corner labels will not be painted in the border defined by the insets.- Parameters:
aCornerLabelInsets
- the insets for the corner labels
-
getCornerLabelFont
Returns theFont
for the corner labels, designating the 15 degree quadrangles.- Returns:
- the
Font
for the corner labels - See Also:
-
setCornerLabelFont
Sets theFont
for the corner labels, designating the 15 degree quadrangles.- Parameters:
aCornerLabelFont
- the new corner label font value.- See Also:
-