gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.api / src / main / java / org / gvsig / tools / swing / api / CompoundIcon.java @ 1947
History | View | Annotate | Download (1.11 KB)
1 |
package org.gvsig.tools.swing.api; |
---|---|
2 |
|
3 |
import javax.swing.Icon; |
4 |
|
5 |
/**
|
6 |
*
|
7 |
* @author jjdelcerro
|
8 |
*/
|
9 |
public interface CompoundIcon extends Icon { |
10 |
|
11 |
public static final int STACKED = -1; |
12 |
|
13 |
/**
|
14 |
* Get the alignment of the icon on the x-axis
|
15 |
*
|
16 |
* @return the alignment
|
17 |
*/
|
18 |
float getAlignmentX();
|
19 |
|
20 |
/**
|
21 |
* Get the alignment of the icon on the y-axis
|
22 |
*
|
23 |
* @return the alignment
|
24 |
*/
|
25 |
float getAlignmentY();
|
26 |
|
27 |
/**
|
28 |
* Get the gap between each icon
|
29 |
*
|
30 |
* @return the gap in pixels
|
31 |
*/
|
32 |
int getGap();
|
33 |
|
34 |
/**
|
35 |
* Get the Icon at the specified index.
|
36 |
*
|
37 |
* @param index the index of the Icon to be returned
|
38 |
* @return the Icon at the specifed index
|
39 |
* @exception IndexOutOfBoundsException if the index is out of range
|
40 |
*/
|
41 |
Icon getIcon(int index); |
42 |
|
43 |
/**
|
44 |
* Get the number of Icons contained in this CompoundIcon.
|
45 |
*
|
46 |
* @return the total number of Icons
|
47 |
*/
|
48 |
int getIconCount();
|
49 |
|
50 |
/**
|
51 |
* Get the orientation along which each icon is painted.
|
52 |
*
|
53 |
* @return the orientation
|
54 |
*/
|
55 |
int getOrientation();
|
56 |
|
57 |
} |