|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mlf.metouia.borders.MetouiaDots
This class implements the dots used throughout the Metouia Look and Feel.
| Field Summary | |
protected net.sourceforge.mlf.metouia.borders.MetouiaDotsBuffer |
buffer
The dots buffer that can be reused for painting dots. |
protected int |
xDots
The horizontal dots count. |
protected int |
yDots
The vertical dots count. |
| Constructor Summary | |
MetouiaDots(int width,
int height)
This constructor creates a dots area with the given size. |
|
| Method Summary | |
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Draws the dots area at the specified location. |
void |
setDotsArea(int width,
int height)
Sets the dots area to the given size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int xDots
protected int yDots
protected net.sourceforge.mlf.metouia.borders.MetouiaDotsBuffer buffer
| Constructor Detail |
public MetouiaDots(int width,
int height)
width - The width of the dots area.height - The height of the dots area.| Method Detail |
public void setDotsArea(int width,
int height)
width - The width of the dots area.height - The height of the dots area.
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconc - The component to draw on.g - The graphics context.x - The x coordinate of the top left corner.y - The y coordinate of the top left corner.public int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic int getIconHeight()
getIconHeight in interface javax.swing.Icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||