|
WebCab JGraph v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--com.webcab.beans.newchart.Pie
| Field Summary | |
static int |
ASCENDING_LABELS
This value indicates that the components will be sorted ascending acording to their labels. |
static int |
ASCENDING_VALUES
This value indicates that the components will be sorted ascending acording to their values. |
static int |
BOTTOM_CENTER
This value indicates that the background image is centered to the lower line. |
static int |
BOTTOM_LEFT
This value indicates that the background image is aligned to the lower left corner. |
static int |
BOTTOM_RIGHT
This value indicates that the background image is aligned to the lower right corner. |
static int |
DESCENDING_LABELS
This value indicates that the components will be sorted descending acording to their labels. |
static int |
DESCENDING_VALUES
This value indicates that the components will be sorted descending acording to their values. |
static int |
INVERTED_ORIGINAL
This value indicates that the components will be in the inverted original order. |
static int |
MIDDLE_CENTER
This value indicates that the background image is centered on the middle line. |
static int |
MIDDLE_LEFT
This value indicates that the background image is aligned to the left end of the middle line. |
static int |
MIDDLE_RIGHT
This value indicates that the background image is aligned to the right end of the middle line. |
static int |
ORIGINAL_ORDER
This value indicates that the components will return to the original order maintaining custom colors. |
static int |
PIE_CHART
Ease-of-use constant for setType. |
static int |
PIE_CHART_3D
Ease-of-use constant for setType. |
static int |
RESET
This value indicates that the components will return to the original order and colors. |
static int |
STRECHED
This value indicates that the background image is streched. |
static int |
TILED
This value indicates that the background image is tiled. |
static int |
TOP_CENTER
This value indicates that the background image is centered on the upper line. |
static int |
TOP_LEFT
This value indicates that the background image is aligned to the upper left corner. |
static int |
TOP_RIGHT
This value indicates that the background image is aligned to the upper right corner. |
static int |
TORUS_CHART
Ease-of-use constant for setType. |
| 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 | |
Pie()
This is the non-zero constructor required by the java.beans.Bean class in order to instantiate the bean. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
|
void |
componentShown(ComponentEvent e)
|
boolean |
getAntialias()
Returns true if antilaias is used while drawing. |
Color |
getBackground()
Gets the background color. |
int |
getDepth()
Gets the depth of 3D perspective charts. |
boolean |
getDisplayGrid()
Returns true if a grid is shown. |
boolean |
getDisplayImage()
Returns true if an image is used as background. |
boolean |
getDisplayValues()
Returns true if the values are displayed. |
Font |
getFont()
Gets the current font. |
Color |
getForeground()
Gets the foreground color. |
Color |
getGridColor()
Gets the grid's color. |
int |
getGridThickness()
Gets the current grid thickness. |
String |
getImageUrl()
Gets the string representation of the URL where to find the background image. |
boolean |
getInteractive()
Returns true if the program responds to mouse clicks. |
String |
getJDBCDriver()
Gets the current JDBC driver. |
String |
getJDBCPassword()
Gets the current JDBC password. |
String |
getJDBCQuery()
Gets the current JDBC query. |
String |
getJDBCUrl()
Gets the current JDBC URL. |
String |
getJDBCUser()
Gets the current JDBC user. |
boolean |
getLight()
Returns true if a light effect is used. |
Dimension |
getMinimumSize()
|
String |
getNameOfPie()
Gets the name of the chart. |
int |
getSpace()
Gets the space (in pixels) between the chart and the edge of the viewable area. |
int |
getTransparency()
Returns the transparency level. |
int |
getType()
Gets the type of chart displayed on the screen. |
int |
getTypeOfImage()
Gets the type of image alignament. |
boolean |
getUseRandomColors()
Returns true if custom colors are used. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g)
|
void |
setAntialias(boolean b)
Sets whether antialias is used while drawing. |
void |
setBackground(Color color)
Sets the background color. |
void |
setDepth(int value)
Sets the depth of 3D charts. |
void |
setDisplayGrid(boolean b)
Sets whether a grid is shown. |
void |
setDisplayImage(boolean b)
Sets whether an image should be used as background. |
void |
setDisplayValues(boolean b)
Sets whether the values are displayed. |
void |
setFont(Font f)
Sets the font to write with. |
void |
setForeground(Color color)
Sets the foreground color (it is used as text color). |
void |
setGridColor(Color color)
Sets the grid's color. |
void |
setGridThickness(int value)
Sets the grid thickness value. |
void |
setImageUrl(String url)
Sets the string representation of the URL where the program should find an valid image to use as background. |
void |
setInteractive(boolean b)
Sets whether the program should respond to users's mouse clicks or not. |
void |
setJDBCDriver(String driver)
This method only sends a new driver to the JavaBeans component. |
void |
setJDBCPassword(String value)
This method only registers this password as the next password to use when sending the next query. |
void |
setJDBCQuery(String query)
This method tries to send the specified query to the JDBC server (as previously registered with the setJDBCDriver and the setJDBCUrl methods. |
void |
setJDBCUrl(String url)
This method only registers this url as the next url to use when sending the next query. |
void |
setJDBCUser(String value)
This method only registers this user as the next user to use when sending the next query. |
void |
setLight(boolean b)
Sets whether a light effect is used when drawing the charts that uses 3D prospective. |
void |
setNameOfPie(String name)
Sets the name of the chart. |
void |
setSpace(int value)
Sets the space (in pixels) between the chart and the edge of the viewable area. |
void |
setTransparency(int value)
Sets the transparency level from 0 (opaque) to 100. |
void |
setType(int type)
Sets the type of chart that should be displayed. |
void |
setTypeOfImage(int type)
Sets the type of alignament for the image used as background. |
void |
setUseRandomColors(boolean b)
Sets whether a custom colors will be used. |
void |
update(Graphics g)
|
| Methods inherited from class java.awt.Canvas |
addNotify, getAccessibleContext |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TOP_LEFT
public static final int TOP_CENTER
public static final int TOP_RIGHT
public static final int MIDDLE_LEFT
public static final int MIDDLE_CENTER
public static final int MIDDLE_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_CENTER
public static final int BOTTOM_RIGHT
public static final int TILED
public static final int STRECHED
public static final int RESET
public static final int ASCENDING_VALUES
public static final int DESCENDING_VALUES
public static final int ASCENDING_LABELS
public static final int DESCENDING_LABELS
public static final int ORIGINAL_ORDER
public static final int INVERTED_ORIGINAL
public static final int PIE_CHART
public static final int PIE_CHART_3D
public static final int TORUS_CHART
| Constructor Detail |
public Pie()
| Method Detail |
public void setType(int type)
type - the type of chart.public int getType()
public void setNameOfPie(String name)
name - the string to use as name of the chart.public String getNameOfPie()
public void setDepth(int value)
value - the number of pixels.public int getDepth()
public void setTypeOfImage(int type)
type - the type of alignament.public int getTypeOfImage()
setTypeOfImage(int)public void setSpace(int value)
value - the space between the chart and the clossest edge.public int getSpace()
public void setBackground(Color color)
setBackground in class Componentpublic Color getBackground()
getBackground in class Componentpublic void setDisplayImage(boolean b)
b - true if an image is used as background; false otherwise.setImageUrl(java.lang.String)public boolean getDisplayImage()
setDisplayImage(boolean)public void setGridThickness(int value)
value - the grid thickness.public int getGridThickness()
public void setDisplayValues(boolean b)
b - true if the values are displayed; false otherwise.public boolean getDisplayValues()
public void setFont(Font f)
setFont in class Componentf - the font to write with.public Font getFont()
getFont in class Componentpublic void setDisplayGrid(boolean b)
b - true if a grid is shown; false otherwise.public boolean getDisplayGrid()
public void setImageUrl(String url)
url - the string representation of URL where to download the image used as background.setDisplayImage(boolean)public String getImageUrl()
public void setGridColor(Color color)
color - the color to be used.public Color getGridColor()
public void setForeground(Color color)
setForeground in class Componentcolor - the color to be used.public Color getForeground()
getForeground in class Componentpublic void setAntialias(boolean b)
a - true if antialias is used; false othwerwise.public boolean getAntialias()
public void setTransparency(int value)
value - the transparency level.public int getTransparency()
public void setLight(boolean b)
b - true if a light effect is used; false otherwise.public boolean getLight()
public void setUseRandomColors(boolean b)
b - true if custom colors are used; false otherwise.public boolean getUseRandomColors()
public void setInteractive(boolean b)
b - true if the program will respond to mouse clicks; false otherwise.public boolean getInteractive()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void componentHidden(ComponentEvent e)
componentHidden in interface ComponentListenerpublic void componentMoved(ComponentEvent e)
componentMoved in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerpublic void componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void setJDBCDriver(String driver)
public void setJDBCUrl(String url)
setJDBCQuery method is actually run.public void setJDBCQuery(String query)
setJDBCDriver and the setJDBCUrl methods. It requires
that the query return a ResultSet containing such:
1. double (the x coordinate) 2. double (the y coordinate)
The method will not throw an exception, instead it will print its stack-trace. Please send a request if you wish it to be in any other way.
public String getJDBCDriver()
public String getJDBCUrl()
public String getJDBCQuery()
public void setJDBCUser(String value)
setJDBCQuery method is actually run.public String getJDBCUser()
public void setJDBCPassword(String value)
setJDBCQuery method is actually run.public String getJDBCPassword()
public void paint(Graphics g)
paint in class Canvaspublic Dimension getMinimumSize()
getMinimumSize in class Componentpublic void update(Graphics g)
update in class Component
|
WebCab JGraph v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||