public void setShadow(Shadow.ShadowJSO shadow) { if (Objects.nonNull(shadow)) { context.setShadowColor(shadow.getColor()); context.setShadowOffsetX(shadow.getOffset().getX()); context.setShadowOffsetY(shadow.getOffset().getY()); context.setShadowBlur(shadow.getBlur()); } else { context.setShadowColor("transparent"); context.setShadowOffsetX(0); context.setShadowOffsetY(0); context.setShadowBlur(0); } }
public Point2DArrayJSO noAdjacentPoints() { final Point2DArrayJSO no = Point2DArrayJSO.make(); final int sz = this.length(); if (sz < 1) { return no; } Point2D.Point2DJSO p1 = this.get(0); no.push(Point2D.Point2DJSO.make(p1.getX(), p1.getY())); if (sz < 2) { return no; } for (int i = 1; i < sz; i++) { final Point2D.Point2DJSO p2 = this.get(i); if (!((p1.getX() == p2.getX()) && (p1.getY() == p2.getY()))) { no.push(Point2D.Point2DJSO.make(p2.getX(), p2.getY())); } p1 = p2; } return no; }
public Point2DArrayJSO noAdjacentPoints() { final Point2DArrayJSO no = Point2DArrayJSO.make(); final int sz = this.length(); if (sz < 1) { return no; } Point2D.Point2DJSO p1 = this.get(0); no.push(Point2D.Point2DJSO.make(p1.getX(), p1.getY())); if (sz < 2) { return no; } for (int i = 1; i < sz; i++) { final Point2D.Point2DJSO p2 = this.get(i); if (!((p1.getX() == p2.getX()) && (p1.getY() == p2.getY()))) { no.push(Point2D.Point2DJSO.make(p2.getX(), p2.getY())); } p1 = p2; } return no; }
public Point2DArrayJSO copy() { final Point2DArrayJSO no = Point2DArrayJSO.make(); final int sz = this.length(); if (sz < 1) { return no; } for (int i = 0; i < sz; i++) { final Point2D.Point2DJSO p = get(i); no.push(Point2D.Point2DJSO.make(p.getX(), p.getY())); } return no; } }
public Point2DArrayJSO copy() { final Point2DArrayJSO no = Point2DArrayJSO.make(); final int sz = this.length(); if (sz < 1) { return no; } for (int i = 0; i < sz; i++) { final Point2D.Point2DJSO p = get(i); no.push(Point2D.Point2DJSO.make(p.getX(), p.getY())); } return no; } }
/** * Returns the x coordinate * @return double */ public final double getX() { return m_jso.getX(); }
public void transform(final Point2D.Point2DJSO src, final Point2D.Point2DJSO target) { final double x = src.getX(); final double y = src.getY(); target.setX((x * this.matrix[0]) + (y * this.matrix[2]) + this.matrix[4]); target.setY((x * this.matrix[1]) + (y * this.matrix[3]) + this.matrix[5]); } }
/** * Returns the x coordinate * @return double */ public final double getX() { return m_jso.getX(); }
public void transform(final Point2D.Point2DJSO src, final Point2D.Point2DJSO target) { final double x = src.getX(); final double y = src.getY(); target.setX((x * this.matrix[0]) + (y * this.matrix[2]) + this.matrix[4]); target.setY((x * this.matrix[1]) + (y * this.matrix[3]) + this.matrix[5]); } }
/** * Returns the x coordinate * @return double */ public final double getX() { return m_jso.getX(); }
/** * Returns the x coordinate * @return double */ public final double getX() { return m_jso.getX(); }