S-PLUS Connect/Java v1.0

com.insightful.gdevice
Class SCanvasPoint

java.lang.Object
  extended bycom.insightful.gdevice.SCanvasPoint
All Implemented Interfaces:
Serializable

public class SCanvasPoint
extends Object
implements Serializable

An SCanvasPoint object represents a point within a virtual SCanvas. It is represented relative to the virtual graphsheet, so it represents the same point, no matter how the SCanvas is scrolled or resized.

See Also:
Serialized Form

Constructor Summary
SCanvasPoint(float x, float y)
           
 
Method Summary
 float getX()
          Returns the x-coordinate.
 int getX(SCanvasAWT canvas)
          Returns the x-coordinate of the point in the virtual graphsheet of the given SCanvas.
 float getY()
          Returns the y-coordinate.
 int getY(SCanvasAWT canvas)
          Return the y-coordinate of the point in the virtual graphsheet of the given SCanvas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCanvasPoint

public SCanvasPoint(float x,
                    float y)
Method Detail

getX

public float getX()
Returns the x-coordinate.


getY

public float getY()
Returns the y-coordinate.


getX

public int getX(SCanvasAWT canvas)
Returns the x-coordinate of the point in the virtual graphsheet of the given SCanvas.


getY

public int getY(SCanvasAWT canvas)
Return the y-coordinate of the point in the virtual graphsheet of the given SCanvas.


S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.