Package gov.nasa.worldwind.shape
Interface Attributable
-
- All Known Implementing Classes:
AbstractShape
,Ellipse
,OmnidirectionalSightline
,Path
,Polygon
public interface Attributable
Interface to controlling a shape's attributes. Shapes implementing this interface use theShapeAttributes
bundle for specifying the normal attributes and the highlight attributes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShapeAttributes
getAttributes()
Indicates the shape's normal (non-highlight) attributes.ShapeAttributes
getHighlightAttributes()
Indicates the shape's highlight attributes.void
setAttributes(ShapeAttributes attributes)
Specifies the shape's normal (non-highlight) attributes.void
setHighlightAttributes(ShapeAttributes highlightAttributes)
Specifies the shape's highlight attributes.
-
-
-
Method Detail
-
getAttributes
ShapeAttributes getAttributes()
Indicates the shape's normal (non-highlight) attributes.- Returns:
- the shape's normal attributes
-
setAttributes
void setAttributes(ShapeAttributes attributes)
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.- Parameters:
attributes
- a reference to the shape's new normal attributes
-
getHighlightAttributes
ShapeAttributes getHighlightAttributes()
Indicates the shape's highlight attributes.- Returns:
- the shape's highlight attributes
-
setHighlightAttributes
void setHighlightAttributes(ShapeAttributes highlightAttributes)
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.- Parameters:
highlightAttributes
- a reference to the shape's new highlight attributes
-
-