/** * 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 MetaData getMetaData(int index) { if (m_jso.getNativeTypeOf(index) == NativeInternalType.OBJECT) { NFastStringMapMixedJSO jso = m_jso.getObject(index).cast(); return new MetaData(jso); } return null; }
public BoundingPoints(BoundingBox bbox) { double x = bbox.getX(); double y = bbox.getY(); double w = bbox.getWidth(); double h = bbox.getHeight(); m_array.push(new Point2D(x + 0, y + 0)); m_array.push(new Point2D(x + w, y + 0)); m_array.push(new Point2D(x + w, y + h)); m_array.push(new Point2D(x + 0, y + h)); }
/** * Returns a new Point2D perpendicular to this vector by rotating this Point2D * 90 degrees counterclockwise around (0,0) * * @return Point2D * @see http://mathworld.wolfram.com/PerpendicularVector.html */ public final Point2D perpendicular() { return new Point2D(m_jso.perpendicular()); }
public final PathPartList A(final double rx, final double ry, final double ps, final double fa, final double fs, final double x, final double y) { final NFastDoubleArrayJSO points = PathPartList.convertEndpointToCenterParameterization(m_cpx, m_cpy, x, y, fa, fs, rx, ry, ps); points.push(m_cpx = x); points.push(m_cpy = y); push(PathPartEntryJSO.make(PathPartEntryJSO.ARCTO_ABSOLUTE, points)); return this; }
/** * 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) { 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(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) { 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(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(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())); }