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
ConstructorsConstructorDescriptionConstructor for the TLcdMapGeorefGridLayer object.TLcdMapGeorefGridLayer(String aLabel) Constructor for the TLcdMapGeorefGridLayer object. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(PropertyChangeListener aPropertyChangeListener) Registers the givenPropertyChangeListenerto be notified when this object's properties change.voidaddSelectionListener(ILcdSelectionListener aSelectionListener) Performs no operations.intapplyOnInteract(ILcdFunction aFunction, Rectangle aBounds, boolean aStrictInteract, ILcdGXYView aGXYView) Performs no action.voidclearSelection(int aDispatchEventMode) Performs no operations.voidPerforms no operations.getBounds(int aMode, ILcdGXYView aGXYView) This method returns the view bounds of thisTLcdMapLonLatGridLayer, taking into account the XYWorldReference of the givenILcdGXYViewaGXYView.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 theFontfor 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 theFontfor the labels.Returns the color of the halo effect.intReturns 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.intReturns the number of objects in this selection.Returns the color used to render the grid line at the Greenwich meridian and the equator.final booleanReturns if anti-aliasing is enabled.booleanReturnsfalse.booleanReturnstrueif the layer supports editing its objects.booleanReturns whether objects should be represented as text.booleanReturns true.booleanReturns whether the painter will add a halo effect around the grid labels.booleanReturns alwaysfalse.booleanReturns alwaysfalse.booleanisSelected(Object aObject) Returns alwaysfalse.booleanReturns whether the grid labels are painted at an angle.booleanDeprecated.This method has been deprecated.booleanReturns whether or not the layer's content is painted.voidpaint(Graphics aGraphics, int aMode, ILcdGXYView aGXYView) Paints the objects in thisTLcdMapLonLatGridLayertaking into account the given mode.voidremovePropertyChangeListener(PropertyChangeListener aPropertyChangeListener) De-registers the givenPropertyChangeListenerfrom receiving property change events for this object.voidremoveSelectionListener(ILcdSelectionListener aSelectionListener) Performs no operations.Returns an empty enumeration instance.voidselectObject(Object aObject, boolean aSelection, int aDispatchEventMode) Performs no operations.final voidsetAntiAliased(boolean aAntiAliased) Enable or disable anti-aliasing.static voidsetClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.voidSets the color to use to render the grid lines.voidsetCornerLabelColor(Color aColor) Sets the color to use to render the corner labels, designating the 15 degree quadranglesvoidsetCornerLabelFont(Font aCornerLabelFont) Sets theFontfor the corner labels, designating the 15 degree quadrangles.voidsetCornerLabelInsets(Insets aCornerLabelInsets) Retrieves the insets for the corner labels, designating the 15 degree quadrangles.voidsetEditable(boolean aEditable) Does not perform any operation.voidsetGridDeltaLat(int[] aGridDeltaLat) Sets the latitude step sizes to use for painting the lon-lat grid.voidsetGridDeltaLon(int[] aGridDeltaLon) Sets the longitude step sizes to use for painting the lon-lat grid.voidsetGridPrecision(double[] aGridPrecision) Sets the precision switch over values for thisTLcdMapGeorefGridLayer.voidSets a visual indication of the contents of this layer.voidSets the textual representation of thisILcdLayer.voidsetLabelColor(Color aColor) Sets the color to use to render the labels.voidsetLabelDeltaLat(int[] aLabelDeltaLat) Sets the latitude step sizes to use for painting the georef labels.voidsetLabelDeltaLon(int[] aLabelDeltaLon) Sets the longitude step sizes to use for painting the georef labels.voidsetLabeled(boolean aLabeled) Sets whether objects should be represented as text.voidsetLabelFont(Font aLabelFont) Sets theFontfor the labels.voidsetLabelHaloColor(Color aHaloColor) Sets the color of the halo effect for the grid labels.voidsetLabelHaloEnabled(boolean aHaloEnabled) Determines whether the painter will add a halo effect around the grid labels.voidsetLabelHaloThickness(int aHaloThickness) Sets the thickness defined in pixels of the halo effect for the grid labels.voidsetLabelPrecision(double[] aLabelPrecision) Sets the precision switch over values for thisTLcdMapGeorefGridLayer.voidsetScaleRange(ILcdInterval newScaleRange) Sets the scale range in which thisILcdGXYLayerwill paint its elements.voidsetSelectable(boolean aSelectable) Does not perform any operation.voidsetSlantedLabels(boolean aSlantedLabels) Specifies whether the grid labels should be painted at an angle.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.voidsetVisible(boolean aVisibleValue) The property isVisible determines whether the grid is visible.voidsetZeroColor(Color aColor) Sets the color to use to render the grid line at the Greenwich meridian and the equator.voidWarn to stop painting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.gxy.ILcdGXYLayer
getLabelMapScaleRange, getMapScaleRangeMethods 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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen 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:ILcdLayerSets 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 thisILcdGXYLayerwill paint its elements. The paint method of anILcdGXYLayershall 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:
setVisiblein 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:
setEditablein 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:
setSelectablein interfaceILcdLayer- Parameters:
aSelectable-trueif the layer allows selection,falseotherwise.- See Also:
-
setLabeled
public void setLabeled(boolean aLabeled) Description copied from interface:ILcdGXYLayerSets 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:
setLabeledin 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:ILcdLayerSets 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.Returnstrueif 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 propertiesgridDeltaLonandgridDeltaLatare arrays with a length just one larger than this ofgridPrecisioncontaining 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 propertieslabelDeltaLonandlabelDeltaLatare arrays with the same length as this oflabelPrecisioncontaining 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:ILcdGXYLayerReturns 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, seesetObjectin ILcdGXYPainter.- Specified by:
getGXYPainterin 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:ILcdGXYLayerReturns 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, seesetObjectin ILcdGXYLabelPainter.- Specified by:
getGXYLabelPainterin 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:ILcdGXYLayerReturns 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, usingsetObjectin ILcdGXYEditor.- Specified by:
getGXYEditorin 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:ILcdLayerReturns 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:ILcdGXYLayerReturns the pen to use when performing basic painting operations for objects in this layers model.- Specified by:
getGXYPenin interfaceILcdGXYLayer- Returns:
- the pen to use when performing basic painting operations for objects in this layers model.
-
getScaleRange
Description copied from interface:ILcdGXYLayerReturns 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 rangeinstead. This property is mutually exclusive with the map scale range: only one of them has a non-nullvalue.- Specified by:
getScaleRangein interfaceILcdGXYLayer- Returns:
- an
ILcdIntervalcontaining the minimum and maximum value of view scales for which objects should be rendered, excluding the maximum.nullif the scale constraints are determined byILcdGXYLayer.getMapScaleRange(). The scales are expressed in toolkit pixels/world unit. - See Also:
-
getLabelScaleRange
Description copied from interface:ILcdGXYLayerReturns 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 rangeinstead. This property is mutually exclusive with the label map scale range: only one of them has a non-nullvalue.- Specified by:
getLabelScaleRangein interfaceILcdGXYLayer- Returns:
- an
ILcdIntervalcontaining the minimum and maximum value of view scales for which labels should be rendered, excluding the maximum.nullif 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 givenILcdGXYViewaGXYView.- Specified by:
getBoundsin interfaceILcdGXYLayer- Parameters:
aMode- a bitwise combination of ALL or SELECTION and one or more of BODIES and HANDLES. TheILcdGXYLayer.LABELSmode 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:ILcdLayerReturns whether or not the layer's content is painted. -
isEditableSupported
public boolean isEditableSupported()Description copied from interface:ILcdLayerReturnstrueif the layer supports editing its objects.- Specified by:
isEditableSupportedin interfaceILcdLayer- Returns:
false.- See Also:
-
isEditable
public boolean isEditable()Returnsfalse.- Specified by:
isEditablein interfaceILcdLayer- Returns:
trueif thisILcdLayeris editable,falseotherwise- See Also:
-
isSelectableSupported
public boolean isSelectableSupported()Returns alwaysfalse.- Specified by:
isSelectableSupportedin interfaceILcdLayer- Returns:
trueif thisILcdLayersupports the selectable property,falseotherwise. I.e. if thisILcdLayercan be put or not in a selectable mode.- See Also:
-
isSelectable
public boolean isSelectable()Returns alwaysfalse.- Specified by:
isSelectablein interfaceILcdLayer- Returns:
trueif the layer allows selection,falseotherwise.- See Also:
-
isLabeledSupported
public boolean isLabeledSupported()Returns true.- Specified by:
isLabeledSupportedin interfaceILcdGXYLayer- Returns:
- whether this layer supports representing objects as text.
-
isLabeled
public boolean isLabeled()Description copied from interface:ILcdGXYLayerReturns whether objects should be represented as text. Note that this property shall not be taken into account whenILcdGXYLayer.isLabeledSupported()returns false.- Specified by:
isLabeledin interfaceILcdGXYLayer- Returns:
- whether objects should be represented as text.
- See Also:
-
getLabel
Description copied from interface:ILcdLayerA short textual representation of thisILcdLayer. -
getSelectionCount
public int getSelectionCount()Description copied from interface:ILcdSelectionReturns the number of objects in this selection.- Specified by:
getSelectionCountin interfaceILcdSelection<Object>- Returns:
- 0.
-
isSelected
Returns alwaysfalse.- Specified by:
isSelectedin interfaceILcdSelection<Object>- Parameters:
aObject- theObjectto be checked.- Returns:
trueif theObjectis in thisILcdSelection, false otherwise.
-
getModelXYWorldTransfoClass
ReturnsTLcdGeodetic2Grid.class.- Specified by:
getModelXYWorldTransfoClassin 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:
applyOnInteractin 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, theILcdFunctionshall 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 thisTLcdMapLonLatGridLayertaking into account the given mode. This implementation calls on the gridPainter to paint theTLcdLonLatGrid, lonLatGrid, associated to thisTLcdMapLonLatGridLayer.- Specified by:
paintin 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:
stopPaintingin interfaceILcdGXYLayer- See Also:
-
addPropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceRegisters the given
PropertyChangeListenerto 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
ALcdWeakPropertyChangeListenerinstance as property change listener.- Specified by:
addPropertyChangeListenerin interfaceILcdPropertyChangeSource- Parameters:
aPropertyChangeListener- The listener to be notified- See Also:
-
removePropertyChangeListener
Description copied from interface:ILcdPropertyChangeSourceDe-registers the given
PropertyChangeListenerfrom 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:
removePropertyChangeListenerin 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:
selectedObjectsin interfaceILcdSelection<Object>- Returns:
TLcdEmptyEnumeration.getInstance().
-
selectObject
Performs no operations.- Specified by:
selectObjectin interfaceILcdLayer- Parameters:
aObject- theObjectto 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,trueto select,falseto 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:
fireCollectedSelectionChangesin interfaceILcdLayer
-
clearSelection
public void clearSelection(int aDispatchEventMode) Performs no operations.- Specified by:
clearSelectionin interfaceILcdLayer- Parameters:
aDispatchEventMode- shall be one amongILcdFireEventMode.FIRE_NOW,ILcdFireEventMode.FIRE_LATER,ILcdFireEventMode.NO_EVENT- See Also:
-
addSelectionListener
Performs no operations.- Specified by:
addSelectionListenerin interfaceILcdSelection<Object>- Parameters:
aSelectionListener- theILcdSelectionListenerto be added.- See Also:
-
removeSelectionListener
Performs no operations.- Specified by:
removeSelectionListenerin interfaceILcdSelection<Object>- Parameters:
aSelectionListener- theILcdSelectionListenerto 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 istruethen 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 theFontfor the labels. -
setLabelFont
Sets theFontfor 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 theFontfor the corner labels, designating the 15 degree quadrangles.- Returns:
- the
Fontfor the corner labels - See Also:
-
setCornerLabelFont
Sets theFontfor the corner labels, designating the 15 degree quadrangles.- Parameters:
aCornerLabelFont- the new corner label font value.- See Also:
-