|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nwoods.jgo.JGoObject
com.nwoods.jgo.JGoDrawable
com.nwoods.jgo.JGoRectangle
com.nwoods.jgo.JGoOverviewRectangle
The rectangle shown and dragged around in the overview window.
This class also takes up the additional responsibilities of keeping track of changes to the view, by being both a JGoViewListener and a ComponentListener.
| Field Summary |
| Fields inherited from class com.nwoods.jgo.JGoObject |
Bottom, BottomCenter, BottomLeft, BottomMiddle, BottomRight, Center, CenterLeft, CenterRight, Changed4ResizeHandles, ChangedAutoRescale, ChangedBrush, ChangedDraggable, ChangedDragsNode, ChangedGeometry, ChangedGrabChildSelection, ChangedInitializing, ChangedPen, ChangedResizable, ChangedSelectable, ChangedUpdatePartner, ChangedVisible, ChangedZOrder, LastChangedHint, Left, LeftCenter, NoHandle, NoSpot, NumReservedHandles, RepaintAll, Right, RightCenter, SideLeft, SideRight, Top, TopCenter, TopLeft, TopMiddle, TopRight |
| Constructor Summary | |
JGoOverviewRectangle()
|
|
JGoOverviewRectangle(java.awt.Point p,
java.awt.Dimension d)
Construct a non-resizable rectangle with an extra-wide pen, so that it can show up reasonably at the reduced scale. |
|
| Method Summary | |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
protected void |
gainedSelection(JGoSelection selection)
Selecting the overview rectangle shouldn't show any handles or do anything else. |
protected void |
geometryChange(java.awt.Rectangle prevRect)
Handle any change in location (due to dragging) of this rectangle by changing the observed view's viewPosition. |
protected void |
lostSelection(JGoSelection selection)
Selecting the overview rectangle shouldn't show any handles or do anything else. |
void |
setBoundingRect(int left,
int top,
int width,
int height)
Keep this rectangle within the bounds of the document. |
void |
updateRectFromView()
Make this JGoRectangle's position and size correspond to the observed view's position and size in the document. |
void |
viewChanged(JGoViewEvent e)
Handle basic changes to the observed view's viewPosition or scale. |
| Methods inherited from class com.nwoods.jgo.JGoRectangle |
copyObject, getNearestIntersectionPoint, paint, SVGReadAttributes, SVGReadObject, SVGWriteAttributes, SVGWriteObject |
| Methods inherited from class com.nwoods.jgo.JGoDrawable |
changeValue, copyNewValueForRedo, draw3DRect, draw3DRect, drawEllipse, drawEllipse, drawEllipse, drawLine, drawLine, drawPath, drawPolygon, drawPolygon, drawRect, drawRect, drawRect, drawRoundRect, drawRoundRect, expandRectByPenWidth, getBrush, getNearestIntersectionPoint, getPen, setBrush, setPen, SVGAddPathArgs, SVGUpdateReference |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JGoOverviewRectangle()
public JGoOverviewRectangle(java.awt.Point p,
java.awt.Dimension d)
| Method Detail |
public void updateRectFromView()
public void setBoundingRect(int left,
int top,
int width,
int height)
setBoundingRect in class JGoObjectleft - the left side of the new bounding boxtop - the top side of the new bounding boxwidth - the width of the new bounding boxheight - the height of the new bounding boxprotected void geometryChange(java.awt.Rectangle prevRect)
geometryChange in class JGoObjectprotected void gainedSelection(JGoSelection selection)
gainedSelection in class JGoObjectselection - the selection into which this object was addedprotected void lostSelection(JGoSelection selection)
lostSelection in class JGoObjectselection - the selection from which this object was removedpublic void viewChanged(JGoViewEvent e)
viewChanged in interface JGoViewListenere - the view event describing the change to the viewpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||