My thanks to Larry and Sander. You have answered my questions. I will
do some research on XOR drawing, and "rubberband" drawing.

Thanks,

The Sunburned Surveyor

P.S. - You are correct Larry. I will end up subclassing the
SelectFeature tool for my Coordinate Selectors. However, I wanted to
take a look at CursorTool, AbstractCursorTool, and DragTool, which my
classes will also implement or extend via inheritence.



On 9/1/06, Larry Becker <[EMAIL PROTECTED]> wrote:
> Hi Sunburned,
>
>     I believe that shape is this context is a reference to a Graphics2D
> shape.
>
>    XOR drawing is an old trick to erase the previously drawn item when doing
> interactive "rubber-band" drawing.  It has the property that any value you
> XOR with can be restored by a second XOR operation.
>
>    If you are doing selection, I would study the SelectTool.  Selection
> tools often do XOR drawing to give a visual display of the fence being
> dragged around objects.
>
> regards,
> Larry
>
>
> On 8/31/06, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> >
> When the AbstractCursorTool class makes reference to a "Shape", does
> it mean the Java Shape object being drawn on the screen? (As an
> example, the line drawn on the screen as a user picks points with the
> CursorTool that allows the user to create new Features with a
> LineString geomtry?)
>
> If this is the case, am I correct to conclude that not all CursorTool
> implementations draw a shape? If I am implementing a CursorTool that
> doesn't need to paint graphics on the screen, should I not extend this
> class?
>
> Also, Jon says in his comment near the class declaration that this
> class is "A tool that draws an XOR visual indicator. Subclasses need
> not keep track of the XOR state of the indicator -- that logic is all
> handled by this class. Even if the LayerViewPanel is repainted while
> the XOR indicator is on-screen."
>
> What does Jon mean when he says an "XOR visual indicator"?
>
> Thanks,
>
> The Sunburned Surveyor
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to