Package gov.nasa.worldwind.shape
Class AbstractShape
- java.lang.Object
-
- gov.nasa.worldwind.render.AbstractRenderable
-
- gov.nasa.worldwind.shape.AbstractShape
-
- All Implemented Interfaces:
Renderable
,Attributable
,Highlightable
public abstract class AbstractShape extends AbstractRenderable implements Attributable, Highlightable
-
-
Constructor Summary
Constructors Constructor Description AbstractShape()
AbstractShape(ShapeAttributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAltitudeMode()
ShapeAttributes
getAttributes()
Indicates the shape's normal (non-highlight) attributes.ShapeAttributes
getHighlightAttributes()
Indicates the shape's highlight attributes.int
getMaximumIntermediatePoints()
int
getPathType()
boolean
isHighlighted()
Indicates whether the shape is highlighted.void
setAltitudeMode(int altitudeMode)
void
setAttributes(ShapeAttributes attributes)
Specifies the shape's normal (non-highlight) attributes.void
setHighlightAttributes(ShapeAttributes highlightAttributes)
Specifies the shape's highlight attributes.void
setHighlighted(boolean highlighted)
Specifies whether to highlight the shape.void
setMaximumIntermediatePoints(int maximumIntermediatePoints)
void
setPathType(int pathType)
-
Methods inherited from class gov.nasa.worldwind.render.AbstractRenderable
getDisplayName, getPickDelegate, getUserProperty, hasUserProperty, isEnabled, putUserProperty, removeUserProperty, render, setDisplayName, setEnabled, setPickDelegate
-
-
-
-
Constructor Detail
-
AbstractShape
public AbstractShape()
-
AbstractShape
public AbstractShape(ShapeAttributes attributes)
-
-
Method Detail
-
getAttributes
public ShapeAttributes getAttributes()
Description copied from interface:Attributable
Indicates the shape's normal (non-highlight) attributes.- Specified by:
getAttributes
in interfaceAttributable
- Returns:
- the shape's normal attributes
-
setAttributes
public void setAttributes(ShapeAttributes attributes)
Description copied from interface:Attributable
Specifies the shape's normal (non-highlight) attributes. If null and this shape is not highlighted, this shape is not drawn.
It is permissible to share attribute bundles between shapes.- Specified by:
setAttributes
in interfaceAttributable
- Parameters:
attributes
- a reference to the shape's new normal attributes
-
getHighlightAttributes
public ShapeAttributes getHighlightAttributes()
Description copied from interface:Attributable
Indicates the shape's highlight attributes.- Specified by:
getHighlightAttributes
in interfaceAttributable
- Returns:
- the shape's highlight attributes
-
setHighlightAttributes
public void setHighlightAttributes(ShapeAttributes highlightAttributes)
Description copied from interface:Attributable
Specifies the shape's highlight attributes. If null and this shape is highlighted, this shape's normal attributes are used. If they in turn are null, this shape is not drawn.
It is permissible to share attribute bundles between shapes.- Specified by:
setHighlightAttributes
in interfaceAttributable
- Parameters:
highlightAttributes
- a reference to the shape's new highlight attributes
-
isHighlighted
public boolean isHighlighted()
Description copied from interface:Highlightable
Indicates whether the shape is highlighted.- Specified by:
isHighlighted
in interfaceHighlightable
- Returns:
- true if the shape is highlighted, otherwise false
-
setHighlighted
public void setHighlighted(boolean highlighted)
Description copied from interface:Highlightable
Specifies whether to highlight the shape.- Specified by:
setHighlighted
in interfaceHighlightable
- Parameters:
highlighted
- true to highlight the shape, otherwise false
-
getAltitudeMode
public int getAltitudeMode()
-
setAltitudeMode
public void setAltitudeMode(int altitudeMode)
-
getPathType
public int getPathType()
-
setPathType
public void setPathType(int pathType)
-
getMaximumIntermediatePoints
public int getMaximumIntermediatePoints()
-
setMaximumIntermediatePoints
public void setMaximumIntermediatePoints(int maximumIntermediatePoints)
-
-