org.jfree.experimental.swt
Class SWTPaintCanvas

java.lang.Object
  extended by Canvas
      extended by org.jfree.experimental.swt.SWTPaintCanvas

public class SWTPaintCanvas
extends Canvas

A paint canvas.


Constructor Summary
SWTPaintCanvas(Composite parent, int style)
          Creates a new instance.
SWTPaintCanvas(Composite parent, int style, Color color)
          Creates a new instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTPaintCanvas

public SWTPaintCanvas(Composite parent,
                      int style,
                      Color color)
Creates a new instance.

Parameters:
parent - the parent.
style - the style.
color - the color.

SWTPaintCanvas

public SWTPaintCanvas(Composite parent,
                      int style)
Creates a new instance.

Parameters:
parent - the parent.
style - the style.
Method Detail

setColor

public void setColor(Color color)
Sets the color.

Parameters:
color - the color.

getColor

public Color getColor()
Returns the color.

Returns:
The color.

setBackground

public void setBackground(Color c)
Overridden to do nothing.

Parameters:
c - the color.

setForeground

public void setForeground(Color c)
Overridden to do nothing.

Parameters:
c - the color.

dispose

public void dispose()
Frees resources.