org.jfree.ui
Class PaintSample
A panel that displays a paint sample.
PaintSample(Paint paint) - Standard constructor - builds a paint sample.
|
Paint | getPaint() - Returns the current Paint object being displayed in the panel.
|
Dimension | getPreferredSize() - Returns the preferred size of the component.
|
void | paintComponent(Graphics g) - Fills the component with the current Paint.
|
void | setPaint(Paint paint) - Sets the Paint object being displayed in the panel.
|
PaintSample
public PaintSample(Paint paint)
Standard constructor - builds a paint sample.
paint
- the paint to display.
getPaint
public Paint getPaint()
Returns the current Paint object being displayed in the panel.
getPreferredSize
public Dimension getPreferredSize()
Returns the preferred size of the component.
paintComponent
public void paintComponent(Graphics g)
Fills the component with the current Paint.
setPaint
public void setPaint(Paint paint)
Sets the Paint object being displayed in the panel.