|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.painter.BulletGraphPresenter
public class BulletGraphPresenter
This presenter is an implementation of bullet graph. It is similar to a gauge but has a simpler look-and-feel and smaller foot print.
| Constructor Summary | |
|---|---|
BulletGraphPresenter()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Check if equals another object. |
Color |
getBackground()
Get the background. |
Color |
getBarColor()
Get the bar color. |
Color |
getColor1()
Get the range 1 color. |
Color |
getColor2()
Get the range 2 color. |
Color |
getColor3()
Get the range 3 color. |
Color |
getColor4()
Get the range 4 color. |
String |
getDisplayName()
Get the display name of this presenter. |
double |
getMaximum()
Get the maximum value. |
double |
getMinimum()
Get the minimum value. |
Dimension |
getPreferredSize(Object v)
Calculate the preferred size of the object representation. |
double |
getRange1()
Get the range 1 value. |
double |
getRange2()
Get the range 2 value. |
double |
getRange3()
Get the range 3 value. |
double |
getTarget()
Get the target value. |
int |
hashCode()
Get the presenter's hash code. |
boolean |
isFill()
Check if this presenter should always fill the entire area of a cell. |
boolean |
isPresenterOf(Class type)
Check if the presenter can handle this type of objects. |
boolean |
isPresenterOf(Object obj)
Check if the presenter can handle this particular object. |
boolean |
isRawDataRequired()
Determine if this Presenter requires raw (unformatted) data. |
void |
paint(Graphics g,
Object v,
int x,
int y,
int w,
int h)
Paint an object at the specified location. |
void |
setBackground(Color bg)
Set the background. |
void |
setBarColor(Color color)
Set the bar color. |
void |
setColor1(Color color1)
Set the range 1 color. |
void |
setColor2(Color color2)
Set the range 2 color. |
void |
setColor3(Color color3)
Set the range 3 color. |
void |
setColor4(Color color4)
Set the range 4 color. |
boolean |
setFill(boolean fill)
Set the property to fill the entire area of the cell. |
void |
setFont(Font font)
Set the font to use for this presenter. |
void |
setMaximum(double max)
Set the maximum value. |
void |
setMinimum(double min)
Set the minimum value. |
void |
setPreferredSize(Dimension psize)
Change the preferred size of the presenter. |
void |
setRange1(double range1)
Set the range 1 value. |
void |
setRange2(double range2)
Set the range 2 value. |
void |
setRange3(double range3)
Set the range 3 value. |
void |
setTarget(double target)
Set the target value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BulletGraphPresenter()
| Method Detail |
|---|
public double getMaximum()
public void setMaximum(double max)
public double getMinimum()
public void setMinimum(double min)
public double getTarget()
public void setTarget(double target)
public double getRange1()
public void setRange1(double range1)
public double getRange2()
public void setRange2(double range2)
public double getRange3()
public void setRange3(double range3)
public Color getColor1()
public void setColor1(Color color1)
public Color getColor2()
public void setColor2(Color color2)
public Color getColor3()
public void setColor3(Color color3)
public Color getColor4()
public void setColor4(Color color4)
public Color getBarColor()
public void setBarColor(Color color)
public void paint(Graphics g,
Object v,
int x,
int y,
int w,
int h)
paint in interface Presenterg - graphical context.v - object value.x - x coordinate of the left edge of the paint area.y - y coordinate of the upper edge of the paint area.w - area width.h - area height.public Dimension getPreferredSize(Object v)
getPreferredSize in interface Presenterv - object value.
public void setPreferredSize(Dimension psize)
public boolean isPresenterOf(Class type)
isPresenterOf in interface Presentertype - object type.
public boolean isPresenterOf(Object obj)
if(type == null) {
return false;
}
return isPresenterOf(obj.getClass());
isPresenterOf in interface Presenterobj - object type.
public boolean isFill()
isFill in interface Presenterpublic boolean setFill(boolean fill)
fill - true to fill the cell area.public void setFont(Font font)
setFont in interface Presenterpublic String getDisplayName()
getDisplayName in interface Presenterpublic boolean equals(Object obj)
equals in class Objectobj - the specified object
public int hashCode()
hashCode in class Objectpublic boolean isRawDataRequired()
isRawDataRequired in interface Presentertrue.public void setBackground(Color bg)
setBackground in interface Presenterpublic Color getBackground()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||