Class ALcdEarthParameterizedIcon
- All Implemented Interfaces:
ILcdParameterizedIcon
- Direct Known Subclasses:
ALcdEarth2DVectorIcon
ILcdParameterizedIcon
. This class exists for backwards compatibility reasons.- Since:
- 2013.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
anchorPointSFCT
(double[] aParameters, Point aPointSFCT) Returns the anchor point of this icon.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.format.raster.ILcdParameterizedIcon
getHeight, getWidth, paintIcon
-
Constructor Details
-
ALcdEarthParameterizedIcon
public ALcdEarthParameterizedIcon()
-
-
Method Details
-
anchorPointSFCT
Returns the anchor point of this icon. The anchor point of an icon is the point on the icon that is attached to the underlying object. For example: a circle icon is attached to an underlying point object by its center. An arrow icon can for example be attached to its object at the start of the arrow. The x-coordinate of the anchor point typically lies between 0 and getWidth(). The y-coordinate typically lies between 0 and getHeight().
Note that implementations don't need to take the anchor point into account when implementing the
paintIcon
method. The coordinates passed to that method always represent the top left corner of the icon. Callers of thepaint
method should make sure that the anchor point is taken into account.A good default implementation can be to use the middle of the icon:
aPointSFCT.setLocation(getWidth(aParameters) / 2, getHeight(aParameters) / 2);
This method implementation provides a default anchor point: (width/2, height/2). Override this method to provide an other anchor point.
- Specified by:
anchorPointSFCT
in interfaceILcdParameterizedIcon
- Parameters:
aParameters
- the parameter valuesaPointSFCT
- the point that has to be moved to the location of the anchor point of this icon.
-