public class ManagedColor extends Object
Constructor and Description |
---|
ManagedColor(org.eclipse.swt.graphics.Color color,
boolean systemColor) |
ManagedColor(org.eclipse.swt.widgets.Display display,
int color)
Create a managed color by specifying the color (SWT.COLOR_*)
|
ManagedColor(org.eclipse.swt.widgets.Display display,
int r,
int g,
int b)
Create a new managed color by using the Red Green & Blue values.
|
ManagedColor(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.graphics.RGB rgb)
Create a new managed color by using the Red Green & Blue values.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Free the managed resource if it hasn't already been done and if this is not a system color
|
org.eclipse.swt.graphics.Color |
getColor() |
boolean |
isSystemColor() |
void |
setColor(org.eclipse.swt.graphics.Color color) |
void |
setSystemColor(boolean systemColor) |
public ManagedColor(org.eclipse.swt.graphics.Color color, boolean systemColor)
color
- The colorsystemColor
- true if this is a system color and doesn't need to be disposed offpublic ManagedColor(org.eclipse.swt.widgets.Display display, org.eclipse.swt.graphics.RGB rgb)
display
- rgb
- public ManagedColor(org.eclipse.swt.widgets.Display display, int r, int g, int b)
display
- r
- Red compositeg
- Green compositeb
- Blue compositepublic ManagedColor(org.eclipse.swt.widgets.Display display, int color)
display
- color
- public void dispose()
public org.eclipse.swt.graphics.Color getColor()
public void setColor(org.eclipse.swt.graphics.Color color)
color
- the color to setpublic void setSystemColor(boolean systemColor)
systemColor
- the systemColor to setpublic boolean isSystemColor()
Copyright © 2019 Hitachi Vantara. All rights reserved.