|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectteamdev.jxdesktop.Pen
This is a bean class that holds parameters for creating native pen objects.
| Constructor Summary | |
Pen()
Constructs a new Pen object. |
|
Pen(java.awt.Color color,
int width)
Constructs a new Pen object. |
|
| Method Summary | |
java.awt.Color |
getColor()
Returns the color of the current object. |
int |
getWidth()
Gets the width of the current object in pixels. |
void |
setColor(java.awt.Color color)
Sets the specified color for the current object. |
void |
setWidth(int width)
Sets the specified width for the current object in pixels. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Pen()
Pen object.
public Pen(java.awt.Color color,
int width)
Pen object.
color - a specified colorwidth - a specified width in pixels| Method Detail |
public java.awt.Color getColor()
null if the current color is transparent.public void setColor(java.awt.Color color)
null value.
color - the specified colorpublic int getWidth()
public void setWidth(int width)
width - the specified width for the current object in pixels
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||