Package gov.nasa.worldwind.render
Interface Path.PositionColors
-
- All Known Implementing Classes:
ParallelPaths.AppFrame.ExamplePositionColors
,PathPositionColors.ExamplePositionColors
,PathsOnDateline.ExamplePositionColors
- Enclosing class:
- Path
public static interface Path.PositionColors
The PositionColors interface defines an RGBA color for each of a path's original positions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Color
getColor(Position position, int ordinal)
Returns an RGBA color corresponding to the specified position and ordinal.
-
-
-
Method Detail
-
getColor
java.awt.Color getColor(Position position, int ordinal)
Returns an RGBA color corresponding to the specified position and ordinal. This returnsnull
if a color cannot be determined for the specified position and ordinal. The specifiedposition
is guaranteed to be one of the same Position references passed to a path at construction or in a call toPath.setPositions(Iterable)
.The specified
ordinal
denotes the position's ordinal number as it appears in the position list passed to the path. Ordinal numbers start with 0 and increase by 1 for every originally specified position. For example, the first three path positions have ordinal values 0, 1, 2.The returned color's RGB components must not be premultiplied by its Alpha component.
- Parameters:
position
- the path position the color corresponds to.ordinal
- the ordinal number of the specified position.- Returns:
- an RGBA color corresponding to the position and ordinal, or
null
if a color cannot be determined.
-
-