com.sun.javatest.tool
public class IconFactory extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
IconFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 notpublic 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 notpublic static javax.swing.Icon getTestSectionIcon(int state)
state
- the state for this test: one of
PASSED
, FAILED
, ERROR
, NOT_RUN
, FILTERED_OUT
Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.