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 intgetAltitudeMode()ShapeAttributesgetAttributes()Indicates the shape's normal (non-highlight) attributes.ShapeAttributesgetHighlightAttributes()Indicates the shape's highlight attributes.intgetMaximumIntermediatePoints()intgetPathType()booleanisHighlighted()Indicates whether the shape is highlighted.voidsetAltitudeMode(int altitudeMode)voidsetAttributes(ShapeAttributes attributes)Specifies the shape's normal (non-highlight) attributes.voidsetHighlightAttributes(ShapeAttributes highlightAttributes)Specifies the shape's highlight attributes.voidsetHighlighted(boolean highlighted)Specifies whether to highlight the shape.voidsetMaximumIntermediatePoints(int maximumIntermediatePoints)voidsetPathType(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:AttributableIndicates the shape's normal (non-highlight) attributes.- Specified by:
getAttributesin interfaceAttributable- Returns:
- the shape's normal attributes
-
setAttributes
public void setAttributes(ShapeAttributes attributes)
Description copied from interface:AttributableSpecifies 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:
setAttributesin interfaceAttributable- Parameters:
attributes- a reference to the shape's new normal attributes
-
getHighlightAttributes
public ShapeAttributes getHighlightAttributes()
Description copied from interface:AttributableIndicates the shape's highlight attributes.- Specified by:
getHighlightAttributesin interfaceAttributable- Returns:
- the shape's highlight attributes
-
setHighlightAttributes
public void setHighlightAttributes(ShapeAttributes highlightAttributes)
Description copied from interface:AttributableSpecifies 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:
setHighlightAttributesin interfaceAttributable- Parameters:
highlightAttributes- a reference to the shape's new highlight attributes
-
isHighlighted
public boolean isHighlighted()
Description copied from interface:HighlightableIndicates whether the shape is highlighted.- Specified by:
isHighlightedin interfaceHighlightable- Returns:
- true if the shape is highlighted, otherwise false
-
setHighlighted
public void setHighlighted(boolean highlighted)
Description copied from interface:HighlightableSpecifies whether to highlight the shape.- Specified by:
setHighlightedin 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)
-
-