Java 类org.eclipse.draw2d.geometry.Geometry 实例源码

项目:ermasterr    文件:ERDiagramConnection.java   
@Override
protected boolean shapeContainsPoint(final int x, final int y) {
    return Geometry.polylineContainsPoint(getBezierPoints(), x, y, TOLERANCE);
}
项目:ermaster-k    文件:ERDiagramConnection.java   
@Override
protected boolean shapeContainsPoint(int x, int y) {
    return Geometry.polylineContainsPoint(this.getBezierPoints(), x, y,
            TOLERANCE);
}
项目:erflute    文件:ERDiagramConnection.java   
@Override
protected boolean shapeContainsPoint(int x, int y) {
    return Geometry.polylineContainsPoint(getBezierPoints(), x, y, TOLERANCE);
}
项目:ermaster-nhit    文件:ERDiagramConnection.java   
@Override
protected boolean shapeContainsPoint(int x, int y) {
    return Geometry.polylineContainsPoint(this.getBezierPoints(), x, y,
            TOLERANCE);
}
项目:gef-gwt    文件:ScalablePolygonShape.java   
protected boolean shapeContainsPoint(int x, int y) {
    Point location = getLocation();
    return Geometry.polygonContainsPoint(getScaledPoints(), x - location.x,
            y - location.y);
}
项目:gef-gwt    文件:Polygon.java   
protected boolean shapeContainsPoint(int x, int y) {
    return Geometry.polygonContainsPoint(points, x, y);
}
项目:gef-gwt    文件:Polyline.java   
protected boolean shapeContainsPoint(int x, int y) {
    return Geometry.polylineContainsPoint(points, x, y, tolerance);
}
项目:gef-gwt    文件:PolylineShape.java   
/**
 * @return true if the distance between specified point and closest segment
 *         of this PolyLine is less then {@link PolylineShape#tolerance}
 */
protected boolean shapeContainsPoint(int x, int y) {
    Point location = getLocation();
    return Geometry.polylineContainsPoint(points, x - location.x, y
            - location.y, tolerance);
}
项目:gef-gwt    文件:PolygonShape.java   
protected boolean shapeContainsPoint(int x, int y) {
    Point location = getLocation();
    return Geometry.polygonContainsPoint(points, x - location.x, y
            - location.y);
}
项目:gef-gwt    文件:Segment.java   
/**
 * Returns true if the given segment intersects this segment.
 * 
 * @param sx
 *            start x
 * @param sy
 *            start y
 * @param tx
 *            end x
 * @param ty
 *            end y
 * @return true if the segments intersect
 */
boolean intersects(int sx, int sy, int tx, int ty) {
    return Geometry.linesIntersect(start.x, start.y, end.x, end.y, sx, sy,
            tx, ty);
}