|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.Note
The Note class displays notes on the chart area. Note objects can be dropped at any place and can be dragged.
| Field Summary | |
static int |
CENTER
Constant used to set text alignment to center. |
static int |
LEFT
Constant used to set text alignment to left. |
static int |
RIGHT
Constant used to set text alignment to right. |
| Constructor Summary | |
Note()
Creates a Note object. |
|
Note(java.lang.String[] note,
int x,
int y)
Creates a Note object. |
|
| Method Summary | |
protected void |
finalize()
|
void |
setAlignment(int alignment)
Sets text alignment. |
void |
setBackground(java.awt.Color background)
Sets background color. |
void |
setBorderColor(java.awt.Color borderColor)
Sets border color. |
void |
setBorderEnabled(boolean isBorderEnabled)
Enables/disables a border around a Note object. |
void |
setBorderThickness(int borderThickness)
Sets the border thickness. |
void |
setBounds(java.awt.Rectangle bounds)
Sets the bounds of this Note object. |
void |
setDraggingEnabled(boolean isDraggingEnabled)
Enables/disables dragging of a Note object. |
void |
setFont(java.awt.Font font)
Sets the Note object font. |
void |
setForeground(java.awt.Color foreground)
Sets foreground color. |
void |
setLocation(int x,
int y)
Sets the location of the Note object. |
void |
setOpacityEnabled(boolean isOpaque)
Enables/disables opacity. |
void |
setShadowColor(java.awt.Color shadowColor)
Sets shadow color. |
void |
setShadowEnabled(boolean isShadowEnabled)
Enables/disables shadow. |
void |
setText(java.lang.String[] note)
Sets text to be displayed in the Note object. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LEFT
setAlignment(int),
Constant Field Valuespublic static final int RIGHT
setAlignment(int),
Constant Field Valuespublic static final int CENTER
setAlignment(int),
Constant Field Values| Constructor Detail |
public Note()
public Note(java.lang.String[] note,
int x,
int y)
note - An array of strings. Each string is a new line in the Note object text.x - An integer number representing the upper-left x coordinate of the Note object.y - An integer number representing the upper-left y coordinate of the Note object.| Method Detail |
public void setLocation(int x,
int y)
x - An integer number representing the upper-left x coordinate of the Note object.y - An integer number representing the upper-left y coordinate of the Note object.public void setBounds(java.awt.Rectangle bounds)
bounds - A Rectangle object.public void setText(java.lang.String[] note)
note - An array of strings. Each string is a new line in the Note object.public void setAlignment(int alignment)
LEFT,
RIGHT,
CENTERpublic void setFont(java.awt.Font font)
font - A Font object.public void setForeground(java.awt.Color foreground)
foreground - A Color object.public void setBackground(java.awt.Color background)
background - A Color object.setOpacityEnabled(boolean)public void setOpacityEnabled(boolean isOpaque)
isOpaque - A boolean value(true/false).public void setDraggingEnabled(boolean isDraggingEnabled)
isDraggingEnabled - A boolean value(true/false).public void setBorderEnabled(boolean isBorderEnabled)
isBorderEnabled - A boolean value(true/false).public void setBorderColor(java.awt.Color borderColor)
borderColor - A Color object.public void setBorderThickness(int borderThickness)
borderThickness - An integer number equal to or larger than 1.public void setShadowEnabled(boolean isShadowEnabled)
isShadowEnabled - A boolean value(true/false).public void setShadowColor(java.awt.Color shadowColor)
shadowColor - A Color object.setShadowEnabled(boolean)
protected void finalize()
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||