|
||||||||||
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(org.eclipse.swt.graphics.Point p,
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 |
controlMoved(org.eclipse.swt.events.ControlEvent e)
|
void |
controlResized(org.eclipse.swt.events.ControlEvent e)
|
protected void |
gainedSelection(JGoSelection selection)
Selecting the overview rectangle shouldn't show any handles or do anything else. |
protected void |
geometryChange(org.eclipse.swt.graphics.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(org.eclipse.swt.graphics.Point p, Dimension d)
Method Detail |
public void updateRectFromView()
public void setBoundingRect(int left, int top, int width, int height)
setBoundingRect
in class JGoObject
left
- 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(org.eclipse.swt.graphics.Rectangle prevRect)
geometryChange
in class JGoObject
protected void gainedSelection(JGoSelection selection)
gainedSelection
in class JGoObject
selection
- the selection into which this object was addedprotected void lostSelection(JGoSelection selection)
lostSelection
in class JGoObject
selection
- the selection from which this object was removedpublic void viewChanged(JGoViewEvent e)
viewChanged
in interface JGoViewListener
e
- the view event describing the change to the viewpublic void controlMoved(org.eclipse.swt.events.ControlEvent e)
controlMoved
in interface org.eclipse.swt.events.ControlListener
public void controlResized(org.eclipse.swt.events.ControlEvent e)
controlResized
in interface org.eclipse.swt.events.ControlListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |