public class SWTPaintCanvas
extends Canvas
| Constructor and Description |
|---|
SWTPaintCanvas(Composite parent,
int style)
Creates a new instance.
|
SWTPaintCanvas(Composite parent,
int style,
Color color)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Frees resources.
|
Color |
getColor()
Returns the color.
|
void |
setBackground(Color c)
Overridden to do nothing.
|
void |
setColor(Color color)
Sets the color.
|
void |
setForeground(Color c)
Overridden to do nothing.
|
public SWTPaintCanvas(Composite parent,
int style,
Color color)
parent - the parent.style - the style.color - the color.public SWTPaintCanvas(Composite parent,
int style)
parent - the parent.style - the style.public void setColor(Color color)
color - the color.public Color getColor()
public void setBackground(Color c)
c - the color.public void setForeground(Color c)
c - the color.public void dispose()