|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.insightful.gdevice.SCanvasRectangle
public class SCanvasRectangle
SCanvasRectangle represents a rectangle within a virtual SCanvas. It is represented relative to the virtual graphsheet, so it represents the same rectangle, no matter how the SCanvas is scrolled or resized.
Constructor Summary | |
---|---|
SCanvasRectangle(float x,
float y,
float width,
float height)
|
Method Summary | |
---|---|
boolean |
contains(float x,
float y)
Checks whether this rectangle contains the specified points. |
boolean |
equals(Object obj)
|
SCanvasPoint |
getFirstCorner()
Returns SCanvasPoint for the first point where the mouse is initially pressed, as the rectangle is swept. |
float |
getHeight()
|
int |
getHeight(SCanvasAWT canvas)
Return the height of the rectangle, in the virtual graphsheet of the given SCanvas |
int |
getLeft(SCanvasAWT canvas)
Return the X coordinate of the left of the rectangle, in the virtual graphsheet of the given SCanvas |
SCanvasPoint |
getSecondCorner()
returns SCanvasPoint for the second point where the mouse is released, as the rectangle is swept. |
int |
getTop(SCanvasAWT canvas)
Return the Y coordinate of the top of the rectangle, in the virtual graphsheet of the given SCanvas |
float |
getWidth()
|
int |
getWidth(SCanvasAWT canvas)
Return the width of the rectangle, in the virtual graphsheet of the given SCanvas |
Rectangle |
getWindowRect(SCanvasAWT c)
|
float |
getX()
|
float |
getY()
|
float |
maxX()
|
float |
maxY()
|
float |
minX()
|
float |
minY()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCanvasRectangle(float x, float y, float width, float height)
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public SCanvasPoint getFirstCorner()
public SCanvasPoint getSecondCorner()
public int getLeft(SCanvasAWT canvas)
public int getTop(SCanvasAWT canvas)
public int getWidth(SCanvasAWT canvas)
public int getHeight(SCanvasAWT canvas)
public Rectangle getWindowRect(SCanvasAWT c)
public boolean contains(float x, float y)
public float getX()
public float getY()
public float getWidth()
public float getHeight()
public float minX()
public float maxX()
public float minY()
public float maxY()
|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |