|
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.Pictogram
The Pictogram is a Java BeanTM that helps you to
plot professional pictograms. The data is read from a specified database that contains numeric values.
The pictogram works almost like a bar chart but instead of bars it uses images.
| 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 |
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 |
RESET
This value indicates that the components will return to the original order. |
| 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 | |
Pictogram()
Constructs a new Pictogram object. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
componentHidden(ComponentEvent e)
|
void |
componentMoved(ComponentEvent e)
|
void |
componentResized(ComponentEvent e)
|
void |
componentShown(ComponentEvent e)
|
Color |
getBackground()
Gets the current background color. |
String |
getDataUrl()
Gets the string representation of the URL where to find data. |
Font |
getFont()
Gets the current font. |
String |
getImageUrl()
Gets the string representation of the URL where to find the background image. |
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. |
Dimension |
getMinimumSize()
|
String |
getName()
Gets the name of the pictogram. |
int |
getOrder()
Gets the current sorting method. |
Color |
getTextColor()
Gets the current text color. |
double |
getValueForKey()
Gets the current value of the image. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paint(Graphics g)
|
void |
setBackground(Color col)
Sets the background color. |
void |
setDataUrl(String url)
Sets the string representation of the URL where the program can find the data set to be displayed. |
void |
setFont(Font font)
Sets the current font. |
void |
setImageUrl(String url)
Sets the string representation of the URL where the program should find an valid image to use as background. |
void |
setJDBCDriver(String driver)
This method only sends a new driver to the JavaBeans component. |
void |
setJDBCPassword(String value)
This method only registers this value as the next value 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 |
setName(String name)
Sets the name of the pictogram. |
void |
setOrder(int Order)
Specifies what type of sorting method should be used. |
void |
setTextColor(Color col)
Sets the text color. |
void |
setValueForKey(double key)
Specifies the value the each image represents. |
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 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
| Constructor Detail |
public Pictogram()
| Method Detail |
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic 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 componentResized(ComponentEvent e)
componentResized in interface ComponentListenerpublic void componentShown(ComponentEvent e)
componentShown in interface ComponentListenerpublic 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 setName(String name)
setName in class Componentname - the string to use as name of the pictogram.public String getName()
getName in class Componentpublic void setDataUrl(String url)
url - string representation of the URL.public String getDataUrl()
public void setOrder(int Order)
Order - the order to usepublic int getOrder()
setOrder(int)public void setBackground(Color col)
setBackground in class Componentcol - the color to be used as background.public Color getBackground()
getBackground in class Componentpublic void setTextColor(Color col)
col - color of the text.public Color getTextColor()
public void setImageUrl(String url)
url - string representation of the URL.public String getImageUrl()
public Dimension getMinimumSize()
getMinimumSize in class Componentpublic void setValueForKey(double key)
key - the value of each image.public double getValueForKey()
public void setFont(Font font)
setFont in class Componentfont - the font to be used.public Font getFont()
getFont in class Componentpublic void paint(Graphics g)
paint in class Canvaspublic 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 | |||||||