|
org.openide.io 1.27.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.windows.IOColors
public abstract class IOColors
Settings of colors for normal, error, hyperlink, important hyperlink lines. Change is global for text past and future.
Client usage:
// set important hyperlink color to red InputOutput io = ...; IOColors.setColor(io, IOColors.OutputType.HYPERLINK_IMPORTANT, Color.RED);How to support
IOColors
in own IOProvider
implementation:
InputOutput
provided by IOProvider
has to implement Lookup.Provider
IOColors
and implement its abstract methods
IOColors
to Lookup
provided by InputOutput
IOColorLines
,
IOColorPrint
Nested Class Summary | |
---|---|
static class |
IOColors.OutputType
output types |
Constructor Summary | |
---|---|
IOColors()
|
Method Summary | |
---|---|
static Color |
getColor(InputOutput io,
IOColors.OutputType type)
Gets current color for output |
protected abstract Color |
getColor(IOColors.OutputType type)
Gets current color for output |
static boolean |
isSupported(InputOutput io)
Checks whether this feature is supported for provided IO |
static void |
setColor(InputOutput io,
IOColors.OutputType type,
Color color)
Sets specified color for output |
protected abstract void |
setColor(IOColors.OutputType type,
Color color)
Sets specified color for output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IOColors()
Method Detail |
---|
public static Color getColor(InputOutput io, IOColors.OutputType type)
io
- InputOutput to operate ontype
- output type to get color for
public static void setColor(InputOutput io, IOColors.OutputType type, Color color)
io
- InputOutput to operate ontype
- output type to set color forcolor
- new color for specified output typepublic static boolean isSupported(InputOutput io)
io
- IO to check on
protected abstract Color getColor(IOColors.OutputType type)
type
- output type to get color for
protected abstract void setColor(IOColors.OutputType type, Color color)
type
- output type to set color forcolor
- new color for specified output type
|
org.openide.io 1.27.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |