|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the subtype of JComponent that the implementing class
extendspublic interface Zoomable<T extends JComponent>
A Zoomable object is an instance of a subclass of JComponent that has a public paintComponent(Graphics) method. According to the zoom factor set by the ZoomPane belonging to this Zoomable, the graphics is scaled before we paint on it.
| Method Summary | |
|---|---|
T |
asJComponent()
Returns a JComponent reference to this Zoomable. |
int |
getAbsoluteHeight()
Returns the absolute, unscaled height |
int |
getAbsoluteWidth()
Returns the absolute, unscaled width. |
ZoomPane |
getZoomPane()
Returns the ZoomPane that is used to display this Zoomable. |
void |
paintComponent(Graphics g)
A JComponent#paintComponent(Graphics), made public. |
void |
setZoomPane(ZoomPane zoomPane)
Sets the ZoomPane that is used to display this Zoomable. |
| Method Detail |
|---|
void paintComponent(Graphics g)
g - T asJComponent()
int getAbsoluteWidth()
int getAbsoluteHeight()
void setZoomPane(ZoomPane zoomPane)
zoomPane - the ZoomPane that is used to display this
ZoomableZoomPane getZoomPane()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||