/** * Sets the color as a string. * * @param offset Point2D * @return this Shadow */ public final Shadow setOffset(final Point2D offset) { m_jso.setOffset(offset.getJSO()); return this; }
public final Point2DArray set(final int i, final Point2D p) { m_jso.set(i, p.getJSO()); return this; }
public final Point2DArray push(final Point2D point) { m_jso.push(point.getJSO()); return this; }
public final Point2D minus(final Point2D p) { m_jso.minus(p.getJSO()); return this; }
/** * Sets the color as a string. * * @param offset Point2D * @return this Shadow */ public final Shadow setOffset(final Point2D offset) { m_jso.setOffset(offset.getJSO()); return this; }
/** * Returns the distance from this Point2D to the other Point2D. * * @param other Point2D * @return double */ public final double distance(final Point2D other) { return m_jso.distance(other.getJSO()); };
public final Point2D offset(final Point2D p) { m_jso.offset(p.getJSO()); return this; }
/** * Sets the color as a string. * * @param offset Point2D * @return this Shadow */ public final Shadow setOffset(final Point2D offset) { m_jso.setOffset(offset.getJSO()); return this; }
public final Point2DArray set(final int i, final Point2D p) { m_jso.set(i, p.getJSO()); return this; }
/** * Sets the x and y coordinates to those of point P. * * @param p Point2D * @return this Point2D */ public final Point2D set(final Point2D p) { m_jso.set(p.getJSO()); return this; }
public final Point2DArray push(final Point2D point) { m_jso.push(point.getJSO()); return this; }
public final Point2DArray set(final int i, final Point2D p) { m_jso.set(i, p.getJSO()); return this; }
@Override public Point2D getComputedLocation() { final Point2D locn = new Point2D(); addParentsLocations(locn.getJSO()); return locn; }
/** * Constructs a Shadow from a color (as a String), a blur and an offset (offx, offy). * * @param color String * @param blur * @param offx * @param offy */ public Shadow(final String color, final int blur, final double offx, final double offy) { this(ShadowJSO.make(normalizeShadowColor(color), blur, true, new Point2D(offx, offy).getJSO())); }
/** * Constructs a Shadow from a color (as a String), a blur and an offset (offx, offy). * * @param color String * @param blur * @param offx * @param offy */ public Shadow(String color, int blur, double offx, double offy, boolean onfill) { this(ShadowJSO.make(normalizeShadowColor(color), blur, onfill, new Point2D(offx, offy).getJSO())); }
/** * Constructs a Shadow from a color (as a String), a blur and an offset (offx, offy). * * @param color String * @param blur * @param offx * @param offy */ public Shadow(final String color, final int blur, final double offx, final double offy, final boolean onfill) { this(ShadowJSO.make(normalizeShadowColor(color), blur, onfill, new Point2D(offx, offy).getJSO())); }
public final void setViewLocation(final Point2D view) { if (null != view) { put(Attribute.VIEW_LOCATION.getProperty(), view.getJSO()); } else { delete(Attribute.VIEW_LOCATION.getProperty()); } }
public final void setOffset(final Point2D offset) { if (null != offset) { put(Attribute.OFFSET.getProperty(), offset.getJSO()); } else { remove(Attribute.OFFSET.getProperty()); } }
public final void setOffset(Point2D offset) { if (null != offset) { put(Attribute.OFFSET.getProperty(), offset.getJSO()); } else { delete(Attribute.OFFSET.getProperty()); } }