com.bbn.openmap.omGraphics.meteo
Class TurbulanceShapeDecoration

java.lang.Object
  extended by com.bbn.openmap.omGraphics.awt.AbstractShapeDecoration
      extended by com.bbn.openmap.omGraphics.meteo.TurbulanceShapeDecoration
All Implemented Interfaces:
Revertable, ShapeDecoration

public class TurbulanceShapeDecoration
extends AbstractShapeDecoration

A ShapeDecoration for meteorological turbulance conditions.


Field Summary
static java.awt.Color COLOR
          We use to draw them red !
 
Fields inherited from interface com.bbn.openmap.omGraphics.awt.ShapeDecoration
LEFT, RIGHT
 
Constructor Summary
TurbulanceShapeDecoration(int length, int radius)
          Constructor.
 
Method Summary
 void draw(java.awt.Graphics g, java.awt.geom.Point2D[] points, boolean complete)
          Draws itself along the specified polyline Called by ShapeDecorator
 boolean isFilled()
          Returns the filled boolean.
 void setFilled(boolean filled)
          Sets the filled (draw a half disk or a half circle ?).
 
Methods inherited from class com.bbn.openmap.omGraphics.awt.AbstractShapeDecoration
getLength, getOrientation, getPaint, getStroke, getWidth, restoreGraphics, revert, setGraphics, setLength, setOrientation, setPaint, setStroke, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR

public static java.awt.Color COLOR
We use to draw them red !

Constructor Detail

TurbulanceShapeDecoration

public TurbulanceShapeDecoration(int length,
                                 int radius)
Constructor.

Parameters:
length -
radius -
Method Detail

draw

public void draw(java.awt.Graphics g,
                 java.awt.geom.Point2D[] points,
                 boolean complete)
Description copied from interface: ShapeDecoration
Draws itself along the specified polyline Called by ShapeDecorator

points - the polyline
complete - true if the polyline length equals the decoration length
See Also:
ShapeDecoration.draw(Graphics, Point2D[], boolean)

isFilled

public boolean isFilled()
Returns the filled boolean.

Returns:
boolean

setFilled

public void setFilled(boolean filled)
Sets the filled (draw a half disk or a half circle ?).

Parameters:
filled - The filled to set


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details