|
JIDE 3.4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.jidesoft.gauge.AbstractGauge<BulletAxis>
com.jidesoft.gauge.Bullet
public class Bullet
A Bullet Chart class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
DEFAULT_INDICATOR_NAME
|
static String |
PROPERTY_BULLET_BACKGROUND
|
static String |
PROPERTY_BULLET_FOREGROUND
|
| Fields inherited from class com.jidesoft.gauge.AbstractGauge |
|---|
DEFAULT_NEEDLE_NAME, PROPERTY_BACKGROUND_PAINT, PROPERTY_RESIZE_FONTS |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Bullet()
|
|
| Method Summary | |
|---|---|
void |
addAxis(BulletAxis axis)
Add the specified axis to the Bullet. |
void |
addDrawable(Drawable drawable)
Adds a Drawable object to the dial |
Bullet |
addIndicator(String indicatorName,
IndicatorStyle style)
You can clear an individual style by setting it to null. |
protected double |
calculatePixelCoordinate(BulletAxis axis,
double value)
|
protected Point2D |
calculatePixelPoint2D(BulletAxis axis,
double value)
|
List<String> |
containingShapes(Point p)
Discovers the values that were rendered at the supplied pixel location |
BulletAxis |
getAxis()
Returns the axis for the Bullet. |
Paint |
getBulletBackground()
Returns the background paint to use for the bullet area |
Border |
getBulletBorder()
returns the Border that is used for the bullet area |
double |
getBulletBreadth()
|
Orientation |
getOrientation()
Returns the orientation of the Bullet (horizontal or vertical) |
IndicatorRenderer |
getRenderer()
Returns the default indicator renderer (used when no value-specific renderer is defined) |
IndicatorRenderer |
getRenderer(String valueName)
Returns the renderer specified for the given value tag |
int |
getXEnd()
|
int |
getXStart()
|
int |
getYEnd()
|
int |
getYStart()
|
protected void |
paintAxis(Graphics2D g2d,
BulletAxis axis)
|
protected void |
paintBullet(Graphics2D g2d)
|
protected void |
paintComponent(Graphics g)
|
void |
removeDrawable(Drawable drawable)
Removes the specified Drawable from the dial |
void |
removeDrawables()
Removes all Drawables from the dial |
void |
removeStyles()
|
Shape |
renderedAs(String valueName)
Returns the shape that was rendered for the supplied value |
void |
setAxis(BulletAxis axis)
Set the axis for the bullet. |
void |
setBulletBackground(Paint bulletBackground)
Specify the background paint to use for the bullet area |
void |
setBulletBorder(Border bulletBorder)
Specify the Border to use for the bullet area |
void |
setIndicatorStyle(IndicatorStyle style)
Sets the style for the default value. |
void |
setIndicatorStyle(String indicatorName,
IndicatorStyle style)
You can clear an individual style by setting it to null. |
void |
setOrientation(Orientation orientation)
Specify the orientation of the bullet |
void |
setRenderer(IndicatorRenderer renderer)
Specify the default IndicatorRenderer |
void |
setRenderer(String valueName,
IndicatorRenderer renderer)
Specify the renderer for the given value tag |
void |
setValue(String indicatorName,
Positionable pos,
boolean fireUpdate)
Set the value of the specified indicator on the primary axis |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_INDICATOR_NAME
public static final String PROPERTY_BULLET_FOREGROUND
public static final String PROPERTY_BULLET_BACKGROUND
| Constructor Detail |
|---|
public Bullet()
| Method Detail |
|---|
public BulletAxis getAxis()
public void setAxis(BulletAxis axis)
axis - the axis to set for the bullet.public void addAxis(BulletAxis axis)
axis - the axis to add to the bullet.public Orientation getOrientation()
public void setOrientation(Orientation orientation)
orientation - the orientation of the bullet chart (horizontal or vertical)public IndicatorRenderer getRenderer()
public void setRenderer(IndicatorRenderer renderer)
renderer - the renderer that will be used unless a value-specific one is setpublic IndicatorRenderer getRenderer(String valueName)
valueName - the name of the value
public void setRenderer(String valueName,
IndicatorRenderer renderer)
valueName - the name of the valuerenderer - the renderer to use for the valuepublic void addDrawable(Drawable drawable)
drawable - the Drawable to addDialIntervalMarker,
DialLabelpublic void removeDrawable(Drawable drawable)
drawable - the drawable to removepublic void removeDrawables()
public Paint getBulletBackground()
public void setBulletBackground(Paint bulletBackground)
bulletBackground - the background to use for the bullet areapublic Border getBulletBorder()
public void setBulletBorder(Border bulletBorder)
bulletBorder - the Border to use for the bullet areapublic Shape renderedAs(String valueName)
valueName - the name of the value in which we are interested
public List<String> containingShapes(Point p)
p - the pixel location of interest (usually the cursor position)
public int getXEnd()
public int getXStart()
public int getYEnd()
public int getYStart()
public void setValue(String indicatorName,
Positionable pos,
boolean fireUpdate)
setValue in class AbstractGauge<BulletAxis>indicatorName - the indicator whose value we are settingpos - a Positionable object that carries the value of the indicator (and possibly other information
too)fireUpdate - specify whether an update event should be fired on the model
public Bullet addIndicator(String indicatorName,
IndicatorStyle style)
indicatorName - the name of the value for which the style is being specifiedstyle - the style to assign to the value renderingpublic void setIndicatorStyle(IndicatorStyle style)
style - the style for the default bullet value
public void setIndicatorStyle(String indicatorName,
IndicatorStyle style)
indicatorName - the name of the value for which the style is being specifiedstyle - the style to assign to the value renderingpublic void removeStyles()
protected double calculatePixelCoordinate(BulletAxis axis,
double value)
protected Point2D calculatePixelPoint2D(BulletAxis axis,
double value)
calculatePixelPoint2D in class AbstractGauge<BulletAxis>public double getBulletBreadth()
protected void paintComponent(Graphics g)
paintComponent in class JComponentprotected void paintBullet(Graphics2D g2d)
protected void paintAxis(Graphics2D g2d,
BulletAxis axis)
|
JIDE 3.4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||