Class IconFactory
java.lang.Object
com.sun.javatest.tool.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
FieldsModifier and TypeFieldDescriptionstatic final intA convenience redefinition ofStatus.ERROR.static final intA convenience redefinition ofStatus.FAILED.static final intA constant indicating that as icon should be represented as "filtered out".static final intA convenience redefinition ofStatus.NOT_RUN.static final intA constant indicating the number of different value "state" values.static final intA convenience redefinition ofStatus.PASSED. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IconGet an icon for a file.static IconGet an icon for a folder.static IconGet an icon for an openable (traversable) folder.static IconGet an icon for a file.static IconGet an icon for an selectable (non-traversable) folder.static IcongetTestFolderIcon(int state, boolean active, boolean glyph) Get a test folder icon.static IcongetTestIcon(int state, boolean active, boolean glyph) Get a test icon.static IcongetTestSectionIcon(int state) Get a test section icon.static IconGet an icon for a parent folder.
-
Field Details
-
PASSED
-
FAILED
-
ERROR
-
NOT_RUN
-
FILTERED_OUT
public static final int FILTERED_OUTA constant indicating that as icon should be represented as "filtered out".- See Also:
-
NUM_STATES
public static final int NUM_STATESA constant indicating the number of different value "state" values.- See Also:
-
-
Constructor Details
-
IconFactory
public IconFactory()
-
-
Method Details
-
getFileIcon
-
getReportIcon
-
getFolderIcon
-
getUpFolderIcon
Get an icon for a parent folder.- Returns:
- an icon for a parent folder
-
getOpenableFolderIcon
Get an icon for an openable (traversable) folder.- Returns:
- an icon for an openable (traversable) folder
-
getSelectableFolderIcon
Get an icon for an selectable (non-traversable) folder.- Returns:
- an icon for an selectable (non-traversable) folder
-
getTestIcon
Get a test icon.- Parameters:
state- the state for this test: one ofPASSED,FAILED,ERROR,NOT_RUN,FILTERED_OUTactive- whether the icon should indicate current activity or notglyph- whether the icon should contain an accessibility glyph or not- Returns:
- a test icon appropriate to the arguments
-
getTestFolderIcon
Get a test folder icon.- Parameters:
state- the state for this test: one ofPASSED,FAILED,ERROR,NOT_RUN,FILTERED_OUTactive- whether the icon should indicate current activity or notglyph- whether the icon should contain an accessibility glyph or not- Returns:
- a test folder icon appropriate to the arguments
-
getTestSectionIcon
-