|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.JViewportButton.ViewportIcon
private class JViewportButton.ViewportIcon
The icon to be displayed on the button. It shows a rectangular area as big as its size and inlayed the size of the currently active viewport. If the viewport size changes, we are notified via a property change.
| Field Summary | |
|---|---|
private Rectangle2D |
curview
The current viewport clipping. |
| Constructor Summary | |
|---|---|
private |
JViewportButton.ViewportIcon(JViewportCanvas canvas)
Creates a viewport icon with the desired viewport. |
| Method Summary | |
|---|---|
int |
getIconHeight()
The height of the icon. |
int |
getIconWidth()
The width of the icon equals the width of the button. |
void |
paintIcon(Component button,
Graphics g,
int x,
int y)
Paints the icon onto the graphics. |
void |
propertyChange(PropertyChangeEvent e)
Notified when a viewport has changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Rectangle2D curview
| Constructor Detail |
|---|
private JViewportButton.ViewportIcon(JViewportCanvas canvas)
| Method Detail |
|---|
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Icon
public void paintIcon(Component button,
Graphics g,
int x,
int y)
paintIcon in interface Iconpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||