|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Painter
The Painter interface defines the API of a graphical representation of an object. A painter is a self contained object that is capable of drawing its own graphical representation, and calculating its own size. A Painter can be thought of a combination of a Presenter and an object presented by the Presenter.
| Method Summary | |
|---|---|
Dimension |
getPreferredSize()
Return the preferred size of this painter. |
boolean |
isScalable()
If scalable is false, the painter is always sized to the preferred size. |
void |
paint(Graphics g,
int x,
int y,
int w,
int h)
Paint contents at the specified location. |
| Method Detail |
|---|
void paint(Graphics g,
int x,
int y,
int w,
int h)
g - graphical context.x - x coordinate of the left edge of the paint area.y - y coordinate of the upper edge of the paint area.w - area width.h - area height.Dimension getPreferredSize()
boolean isScalable()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||