shady.common.ui
Class GraphicsDisplay.Annotation

java.lang.Object
  extended by shady.common.ui.GraphicsDisplay.Annotation
Enclosing class:
GraphicsDisplay

protected static class GraphicsDisplay.Annotation
extends java.lang.Object

An annotation that gets drawn after the environment and before shady.


Field Summary
(package private)  java.awt.Color color
          The color of this annotation, default GraphicsDisplay.DEFAULT_ANNOTATION_COLOR.
(package private)  float lineWidth
          The line width in pixels of this annotation, default GraphicsDisplay.DEFAULT_ANNOTATION_LINE_WIDTH.
(package private)  java.lang.String name
          The name of this annotation, not null, unique.
(package private)  java.awt.Shape shape
          The shape of this annotation, not null.
 
Constructor Summary
GraphicsDisplay.Annotation(java.lang.String name, java.awt.Shape shape, java.awt.Color color, float lineWidth)
          Create a new annotation.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

final java.lang.String name

The name of this annotation, not null, unique.


shape

final java.awt.Shape shape

The shape of this annotation, not null.


color

final java.awt.Color color

The color of this annotation, default GraphicsDisplay.DEFAULT_ANNOTATION_COLOR.


lineWidth

final float lineWidth

The line width in pixels of this annotation, default GraphicsDisplay.DEFAULT_ANNOTATION_LINE_WIDTH.

Constructor Detail

GraphicsDisplay.Annotation

GraphicsDisplay.Annotation(java.lang.String name,
                           java.awt.Shape shape,
                           java.awt.Color color,
                           float lineWidth)

Create a new annotation.

Parameters:
name - the name of the annotation, not null
shape - the shape to draw in meters in world frame, not null
color - the color to use to draw the annotation, if null GraphicsDisplay.DEFAULT_ANNOTATION_COLOR
lineWidth - the line width to use to draw the annotation, in pixels, if <= 0.0 GraphicsDisplay.DEFAULT_ANNOTATION_LINE_WIDTH