|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.timebars.swt.renderer.RelationRenderer.Line
public class RelationRenderer.Line
Internal line represenation for caching.
| Field Summary | |
|---|---|
IIntervalRelation |
relation
relation the line belongs to. |
int |
x1
start x coordinate. |
int |
x2
end x coordinate. |
int |
y1
start y coordinate. |
int |
y2
end y coordinate. |
| Constructor Summary | |
|---|---|
RelationRenderer.Line(IIntervalRelation relation,
int x1,
int y1,
int x2,
int y2)
Construct a line. |
|
| Method Summary | |
|---|---|
boolean |
hit(int x,
int y,
int tolerance)
Check whether the line is hit by a certain coordinate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public IIntervalRelation relation
public int x1
public int y1
public int x2
public int y2
| Constructor Detail |
|---|
public RelationRenderer.Line(IIntervalRelation relation,
int x1,
int y1,
int x2,
int y2)
relation - relation the line belongs tox1 - start xy1 - start yx2 - end xy2 - end y| Method Detail |
|---|
public boolean hit(int x,
int y,
int tolerance)
x - x coordy - y coordtolerance - the max delta
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||