|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.JViewportCanvas.ViewportKey
public abstract static class JViewportCanvas.ViewportKey
The class that allows selecting of only a portion of an JViewport
. It contains a normalized viewport. It implements Serializable and
serializes its mostly non-serializable Rectangle2D (I think its an insult
that sun did fix this only in 1.6.3, as it was reported already agains
1.2.2).
The class is abstract to force subclassing
| Field Summary | |
|---|---|
private Rectangle2D |
view
The normalized view in this tab. |
| Constructor Summary | |
|---|---|
protected |
JViewportCanvas.ViewportKey(Rectangle2D zoom)
Constructs a new key from the tab name and the current zoom. |
| Method Summary | |
|---|---|
Rectangle2D |
getView()
Returns the zoom. |
private void |
readObject(ObjectInputStream in)
To allow serialization, we read the rectangle after the default object as four doubles. |
private void |
writeObject(ObjectOutputStream out)
To allow serialization, we write the rectangle after the default object as four doubles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private transient Rectangle2D view
| Constructor Detail |
|---|
protected JViewportCanvas.ViewportKey(Rectangle2D zoom)
| Method Detail |
|---|
public Rectangle2D getView()
private void writeObject(ObjectOutputStream out)
throws IOException
IOException
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||