|
static final int[] | VALID_X = {LEFT, RIGHT, CENTER} |
|
static final int[] | VALID_Y = {TOP, BOTTOM, CENTER} |
|
The compond icon can be used to take an existing icon and overlay another smaller icon over it.
- Author
- Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
Definition at line 28 of file CompoundIcon.java.
Constructor with empty args so that the class can be extended
Definition at line 51 of file CompoundIcon.java.
CompoundIcon |
( |
Icon |
mainIcon, |
|
|
Icon |
decorator, |
|
|
int |
xAlignment, |
|
|
int |
yAlignment |
|
) |
| |
|
inline |
Constructs a conpound icon
- Parameters
-
mainIcon | the main icon which will be on the bottom layer |
decorator | the decorator icon which will be on the top layer |
xAlignment | the x alignment |
yAlignment | the y alignment |
Definition at line 63 of file CompoundIcon.java.
Returns an icon that can be used in disabled JLabels
- Returns
- the disabled icon
Definition at line 111 of file CompoundIcon.java.
Returns the icon height, which is the same as the main icon height
- Returns
- the icon height
Definition at line 131 of file CompoundIcon.java.
Returns the icon with of the compond icon, wchich is the sam with as the main icon
- Returns
- the width
Definition at line 122 of file CompoundIcon.java.
boolean isLegalValue |
( |
int |
value, |
|
|
int[] |
legal |
|
) |
| |
|
inline |
Returns TRUE if the specified value is legal
- Parameters
-
value | the value to check |
legal | the legal values |
- Returns
Definition at line 98 of file CompoundIcon.java.
void paintIcon |
( |
Component |
c, |
|
|
Graphics |
g, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
Paints the compound icon
- Parameters
-
c | the component |
g | the graphics set |
x | the x co-ordinate |
y | the y co-ordiate |
Definition at line 143 of file CompoundIcon.java.
final int [] VALID_X = {LEFT, RIGHT, CENTER} |
|
staticprotected |
final int [] VALID_Y = {TOP, BOTTOM, CENTER} |
|
staticprotected |
The documentation for this class was generated from the following file:
- /Users/webmaster/Desktop/squiz_matrix/core/lib/asset_map/java/src/net/squiz/matrix/assetmap/CompoundIcon.java