|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.tool.IconFactory
public class IconFactory
A factory for standard JT Harness icons. Note: some of this code is based upon the Swing icon factory for the "metal" look and feel.
Field Summary | |
---|---|
static int |
ERROR
A convenience redefinition of Status.ERROR . |
static int |
FAILED
A convenience redefinition of Status.FAILED . |
static int |
FILTERED_OUT
A constant indicating that as icon should be represented as "filtered out". |
static int |
NOT_RUN
A convenience redefinition of Status.NOT_RUN . |
static int |
NUM_STATES
A constant indicating the number of different value "state" values. |
static int |
PASSED
A convenience redefinition of Status.PASSED . |
Constructor Summary | |
---|---|
IconFactory()
|
Method Summary | |
---|---|
static javax.swing.Icon |
getFileIcon()
Get an icon for a file. |
static javax.swing.Icon |
getFolderIcon()
Get an icon for a folder. |
static javax.swing.Icon |
getOpenableFolderIcon()
Get an icon for an openable (traversable) folder. |
static javax.swing.Icon |
getReportIcon()
Get an icon for a file. |
static javax.swing.Icon |
getSelectableFolderIcon()
Get an icon for an selectable (non-traversable) folder. |
static javax.swing.Icon |
getTestFolderIcon(int state,
boolean active,
boolean glyph)
Get a test folder icon. |
static javax.swing.Icon |
getTestIcon(int state,
boolean active,
boolean glyph)
Get a test icon. |
static javax.swing.Icon |
getTestSectionIcon(int state)
Get a test section icon. |
static javax.swing.Icon |
getUpFolderIcon()
Get an icon for a parent folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PASSED
Status.PASSED
.
public static final int FAILED
Status.FAILED
.
public static final int ERROR
Status.ERROR
.
public static final int NOT_RUN
Status.NOT_RUN
.
public static final int FILTERED_OUT
public static final int NUM_STATES
Constructor Detail |
---|
public IconFactory()
Method Detail |
---|
public static javax.swing.Icon getFileIcon()
public static javax.swing.Icon getReportIcon()
public static javax.swing.Icon getFolderIcon()
public static javax.swing.Icon getUpFolderIcon()
public static javax.swing.Icon getOpenableFolderIcon()
public static javax.swing.Icon getSelectableFolderIcon()
public static javax.swing.Icon getTestIcon(int state, boolean active, boolean glyph)
state
- the state for this test: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
, FILTERED_OUT
active
- whether the icon should indicate current activity or notglyph
- whether the icon should contain an accessibility glyph or not
public static javax.swing.Icon getTestFolderIcon(int state, boolean active, boolean glyph)
state
- the state for this test: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
, FILTERED_OUT
active
- whether the icon should indicate current activity or notglyph
- whether the icon should contain an accessibility glyph or not
public static javax.swing.Icon getTestSectionIcon(int state)
state
- the state for this test: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
, FILTERED_OUT
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |