org.jfree.ui
public class PaintSample extends JComponent
Constructor Summary | |
---|---|
PaintSample(Paint paint)
Standard constructor - builds a paint sample.
|
Method Summary | |
---|---|
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.
|
Parameters: paint the paint to display.
Returns: the paint.
Returns: the preferred size.
Parameters: g the graphics device.
Parameters: paint the paint.