|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.component.PartialIcon
public class PartialIcon
The default icon for showing a partially selected state of a TristateCheckBox. It uses another icon to paint the general layout and then draws a filled rectangle in the middle.
Field Summary | |
---|---|
protected Color |
fillColor
the rectangle's fill color |
protected Icon |
ic
the icon to paint over |
protected int |
marginX
the distance of the filled rectangle from the left/right |
protected int |
marginY
the distance of the filled rectangle from the top/bottom |
Constructor Summary | |
---|---|
PartialIcon(Icon ic)
Creates a PartialIcon. |
Method Summary | |
---|---|
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Icon ic
protected int marginX
protected int marginY
protected Color fillColor
Constructor Detail |
---|
public PartialIcon(Icon ic)
Method Detail |
---|
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |