|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.ui.core.gui.ManagedColor
public class ManagedColor
Class to keep track of which color is a system color (managed by the OS) and which is not.
| Constructor Summary | |
|---|---|
ManagedColor(Color color,
boolean systemColor)
|
|
ManagedColor(Display display,
int color)
Create a managed color by specifying the color (SWT.COLOR_*) |
|
ManagedColor(Display display,
int r,
int g,
int b)
Create a new managed color by using the Red Green & Blue values. |
|
ManagedColor(Display display,
RGB rgb)
Create a new managed color by using the Red Green & Blue values. |
|
| Method Summary | |
|---|---|
void |
dispose()
Free the managed resource if it hasn't already been done and if this is not a system color |
Color |
getColor()
|
boolean |
isSystemColor()
|
void |
setColor(Color color)
|
void |
setSystemColor(boolean systemColor)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedColor(Color color,
boolean systemColor)
color - The colorsystemColor - true if this is a system color and doesn't need to be disposed off
public ManagedColor(Display display,
RGB rgb)
display - rgb -
public ManagedColor(Display display,
int r,
int g,
int b)
display - r - Red compositeg - Green compositeb - Blue composite
public ManagedColor(Display display,
int color)
display - color - | Method Detail |
|---|
public void dispose()
public Color getColor()
public void setColor(Color color)
color - the color to setpublic void setSystemColor(boolean systemColor)
systemColor - the systemColor to setpublic boolean isSystemColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||