|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.gauge.BulletIntervalMarker
public class BulletIntervalMarker
A marker class for a coloured region along a Bullet. Note that the recommended approach is to use varying intensities of a single hue for marking the interval ranges, to make them easily discernible by those who are colour blind and to keep the number of colours on a dashboard display to a minimum.
Constructor Summary | |
---|---|
BulletIntervalMarker(Bullet bullet,
double from,
double to)
Constructs a BulletIntervalMarker for the specified Bullet, using COLOR.GRAY as the fill Color and ranging between the given from and to values. |
|
BulletIntervalMarker(Bullet bullet,
Paint fill,
double from,
double to)
Constructs a BulletIntervalMarker 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 |
void |
setInterval(double from,
double to)
You can call this method to change the interval for the intervalMarker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BulletIntervalMarker(Bullet bullet, double from, double to)
bullet
- the bullet to which this marker will be appliedfrom
- the start of the marker regionto
- the end of the marker regionpublic BulletIntervalMarker(Bullet bullet, Paint fill, double from, double to)
bullet
- the bullet to which this marker will be appliedfill
- the Color/Paint to use for filling in the body of the markerfrom
- the start of the marker regionto
- the end of the marker regionMethod Detail |
---|
public void setInterval(double from, double to)
from
- the start of the intervalto
- the end of the intervalpublic double getBreadthProportion()
public void setBreadthProportion(double breadthProportion)
breadthProportion
- a value between 0 and 1 (inclusive)public Paint getFill()
public void setFill(Paint fill)
fill
- the fill Color (or Paint) for the indicated range along the primary axispublic void draw(Graphics g)
draw
in interface Drawable
g
- the Graphics context
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |