Tabnine Logo
com.ait.lienzo.client.core.types
Code IndexAdd Tabnine to your IDE (free)

How to use com.ait.lienzo.client.core.types

Best Java code snippets using com.ait.lienzo.client.core.types (Showing top 20 results out of 315)

origin: com.ahome-it/lienzo-core

/**
 * 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()));
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList M(final double x, final double y)
{
  m_mov = true;
  push(PathPartEntryJSO.make(PathPartEntryJSO.MOVETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx = x, m_cpy = y)));
  return this;
}
origin: org.dashbuilder/dashbuilder-lienzo-core

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;
}
origin: org.dashbuilder/dashbuilder-lienzo-core

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));
}
origin: com.ahome-it/lienzo-core

/**
 * 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());
}
origin: org.dashbuilder/dashbuilder-lienzo-core

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;
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList Z()
{
  push(PathPartEntryJSO.make(PathPartEntryJSO.CLOSE_PATH_PART, NFastDoubleArrayJSO.make()));
  return close();
}
origin: com.ahome-it/lienzo-core

/**
 * Returns the distance from point A to point B.
 *
 * @param a Point2D
 * @param b Point2D
 * @return double
 */
public static final double distance(final Point2D a, final Point2D b)
{
  return Point2DJSO.distance(a.getJSO(), b.getJSO());
};
origin: com.ahome-it/lienzo-core

public final Point2D offset(final Point2D p)
{
  m_jso.offset(p.getJSO());
  return this;
}
origin: org.dashbuilder/dashbuilder-lienzo-core

/**
 * 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()));
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList L(final double x, final double y)
{
  push(PathPartEntryJSO.make(PathPartEntryJSO.LINETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx = x, m_cpy = y)));
  return this;
}
origin: com.ahome-it/lienzo-core

/**
 * 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()));
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList H(final double x)
{
  push(PathPartEntryJSO.make(PathPartEntryJSO.LINETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx = x, m_cpy)));
  return this;
}
origin: org.dashbuilder/dashbuilder-lienzo-core

/**
 * 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()));
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList Q(final double cx, final double cy, final double x, final double y)
{
  push(PathPartEntryJSO.make(PathPartEntryJSO.QUADRATIC_CURVETO_ABSOLUTE, NFastDoubleArrayJSO.make(cx, cy, m_cpx = x, m_cpy = y)));
  return this;
}
origin: ahome-it/lienzo-core

/**
 * 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()));
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList V(final double y)
{
  push(PathPartEntryJSO.make(PathPartEntryJSO.LINETO_ABSOLUTE, NFastDoubleArrayJSO.make(m_cpx, m_cpy = y)));
  return this;
}
origin: ahome-it/lienzo-core

/**
 * 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()));
}
origin: org.dashbuilder/dashbuilder-lienzo-core

public final PathPartList C(final double x1, final double y1, final double x2, final double y2, final double x, final double y)
{
  push(PathPartEntryJSO.make(PathPartEntryJSO.BEZIER_CURVETO_ABSOLUTE, NFastDoubleArrayJSO.make(x1, y1, x2, y2, m_cpx = x, m_cpy = y)));
  return this;
}
origin: ahome-it/lienzo-core

/**
 * 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()));
}
com.ait.lienzo.client.core.types

Most used classes

  • Point2D
    Point2D can be used to represent a point or vector in 2D. Some of the methods related to linear alge
  • BoundingBox
  • Point2DArray
    Point2DArray represents an array (or List) with Point2D objects.
  • Transform
    Transform is an affine transformation matrix. In general, an affine transformation is a composition
  • Shadow
    Wraps a Shadow JSO providing JS native access to color, blur and coordinates offset.
  • DashArray,
  • DragBounds,
  • Point2D$Point2DJSO,
  • ImageData,
  • PatternGradient,
  • RadialGradient,
  • SpriteBehaviorMap,
  • TextMetrics,
  • FillGradient$GradientJSO,
  • PathPartEntryJSO,
  • PathPartList$PathPartListJSO,
  • PathPartList,
  • Shadow$ShadowJSO,
  • Transform$TransformJSO
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now