|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.forth.ics.vrp.visualization.Clipping
Field Summary | |
static int |
ABOVE
Flag for point lying "above" clipping area. |
static int |
BELOW
Flag for point lying "below" clipping area. |
static int |
H_CENTER
Flag for point lying between horizontal bounds of area. |
static int |
INSIDE
Mask for points which are inside. |
static int |
LEFT
Flag for point lying left of clipping area. |
static int |
OUTSIDE
Mask for points which are outside. |
static int |
RIGHT
Flag for point lying right of clipping area. |
static int |
V_CENTER
Flag for point lying between vertical bounds of clipping area. |
Constructor Summary | |
Clipping()
|
Method Summary | |
protected static Point[] |
getClipped(double x1,
double y1,
int mask1,
double x2,
double y2,
int mask2,
double xmin,
double xmax,
double ymin,
double ymax)
Calculate the clipping points of a line with a rectangle. |
static Point[] |
getClipped(int x1,
int y1,
int x2,
int y2,
int xmin,
int xmax,
int ymin,
int ymax)
Calculate the clipping points of a line with a rectangle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEFT
public static final int H_CENTER
public static final int RIGHT
public static final int BELOW
public static final int V_CENTER
public static final int ABOVE
public static final int INSIDE
public static final int OUTSIDE
Constructor Detail |
public Clipping()
Method Detail |
public static Point[] getClipped(int x1, int y1, int x2, int y2, int xmin, int xmax, int ymin, int ymax)
x1
- starting x of liney1
- starting y of linex2
- ending x of liney2
- ending y of linexmin
- lower left x of rectanglexmax
- upper right x of rectangleymin
- lower left y of rectangleymax
- upper right y of rectangle
null
(does not clip) or array of two pointsprotected static Point[] getClipped(double x1, double y1, int mask1, double x2, double y2, int mask2, double xmin, double xmax, double ymin, double ymax)
x1
- starting x of liney1
- starting y of linemask1
- clipping info mask for starting pointx2
- ending x of liney2
- ending y of linemask2
- clipping info mask for ending pointxmin
- lower left x of rectangleymin
- lower left y of rectanglexmax
- upper right x of rectangleymax
- upper right y of rectangle
null
(does not clip) or array of two points
|
eRqlEngine API documentation - http://www.wleklinski.de/rdf/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |