JIDE 3.5.15

com.jidesoft.gauge
Class BulletPointMarker

java.lang.Object
  extended by com.jidesoft.gauge.BulletPointMarker
All Implemented Interfaces:
Drawable

public class BulletPointMarker
extends Object
implements Drawable

A marker class for a specific value along a Bullet.


Constructor Summary
BulletPointMarker(Bullet bullet, double value)
          Constructs a BulletPointMarker for the specified Bullet, using COLOR.GRAY as the fill Color and ranging between the given from and to values.
BulletPointMarker(Bullet bullet, Paint fill, double value)
          Constructs a BulletPointMarker for the specified Bullet, using the supplied fill value for the Color and ranging between the given from and to values.
 
Method Summary
 void draw(Graphics g)
          The method of the Drawable interface.
 double getBreadthProportion()
          Returns the value that determines how much of the breadth of the bullet is covered by this marker
 Paint getFill()
          Returns the current Color (or other paint) for the body of the interval
 void setBreadthProportion(double breadthProportion)
          Specify how much of the breadth of the bullet should be taken up by this marker.
 void setFill(Paint fill)
          Specify the Color (or other Paint fill) to use for filling the body of the interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulletPointMarker

public BulletPointMarker(Bullet bullet,
                         double value)
Constructs a BulletPointMarker for the specified Bullet, using COLOR.GRAY as the fill Color and ranging between the given from and to values.

Parameters:
bullet - the bullet to which this marker will be applied
value - the point value at which the marker should appear

BulletPointMarker

public BulletPointMarker(Bullet bullet,
                         Paint fill,
                         double value)
Constructs a BulletPointMarker for the specified Bullet, using the supplied fill value for the Color and ranging between the given from and to values.

Parameters:
bullet - the bullet to which this marker will be applied
fill - the Color/Paint to use for filling in the body of the marker
value - the point value at which the marker should appear
Method Detail

getBreadthProportion

public double getBreadthProportion()
Returns the value that determines how much of the breadth of the bullet is covered by this marker

Returns:
a value between 0 and 1

setBreadthProportion

public void setBreadthProportion(double breadthProportion)
Specify how much of the breadth of the bullet should be taken up by this marker. By default this is 0.75

Parameters:
breadthProportion - a value between 0 and 1 (inclusive) (default 0.75)

getFill

public Paint getFill()
Returns the current Color (or other paint) for the body of the interval

Returns:
the Paint for the body of the interval marker

setFill

public void setFill(Paint fill)
Specify the Color (or other Paint fill) to use for filling the body of the interval

Parameters:
fill - the fill Color (or Paint) for the indicated range along the primary axis

draw

public void draw(Graphics g)
The method of the Drawable interface.

Specified by:
draw in interface Drawable
Parameters:
g - the Graphics context

JIDE 3.5.15