本文整理了Java中com.ait.lienzo.client.core.shape.Attributes.getControlPoints()
方法的一些代码示例,展示了Attributes.getControlPoints()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.getControlPoints()
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Attributes
类名称:Attributes
方法名:getControlPoints
暂无
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Gets all points, which includes the context, control, and end point.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Gets this curve's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Gets this curve's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Gets this spline's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Returns this OrthogonalPolyLine's points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Gets all points, which includes the context, control, and end point.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Gets this spline's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Returns this OrthogonalPolyLine's points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this curve's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this spline's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns this OrthogonalPolyLine's points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this curve's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets all points, which includes the context, control, and end point.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets all points, which includes the context, control, and end point.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Gets this spline's control points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: ahome-it/lienzo-core
/**
* Returns this OrthogonalPolyLine's points.
*
* @return {@link Point2DArray}
*/
public Point2DArray getControlPoints()
{
return getAttributes().getControlPoints();
}
代码示例来源:origin: org.kie.workbench/kie-wb-common-dmn-client
public Point2DArray getControlPoints() {
return getAttributes().getControlPoints();
}
代码示例来源:origin: org.kie.workbench/kie-wb-common-dmn-client
@Override
public boolean parse(final Attributes attr) {
final Point2DArray points = attr.getControlPoints();
if (null != points && points.size() > 1) {
final Point2D p1 = points.get(0);
final double x1 = p1.getX();
final double y1 = p1.getY();
final Point2D p2 = points.get(points.size() - 1);
final double x2 = p2.getX();
final double y2 = p2.getY();
getPathPartList()
.M(x1,
y1)
.L(x2,
y2);
return true;
}
return false;
}
代码示例来源:origin: com.ahome-it/lienzo-core
/**
* Draws this quadratic curve
*
* @param context
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final Point2DArray points = attr.getControlPoints();
if ((points != null) && (points.size() == 3))
{
context.beginPath();
final Point2D p0 = points.get(0);
final Point2D p1 = points.get(1);
final Point2D p2 = points.get(2);
context.moveTo(p0.getX(), p0.getY());
context.quadraticCurveTo(p1.getX(), p1.getY(), p2.getX(), p2.getY());
return true;
}
return false;
}
代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core
/**
* Draws this Bezier Curve.
*
* @param context the {@link Context2D} used to draw this bezier curve.
*/
@Override
protected boolean prepare(final Context2D context, final Attributes attr, final double alpha)
{
final Point2DArray points = attr.getControlPoints();
if ((points != null) && (points.size() == 4))
{
context.beginPath();
final Point2D p0 = points.get(0);
final Point2D p1 = points.get(1);
final Point2D p2 = points.get(2);
final Point2D p3 = points.get(3);
context.moveTo(p0.getX(), p0.getY());
context.bezierCurveTo(p1.getX(), p1.getY(), p2.getX(), p2.getY(), p3.getX(), p3.getY());
return true;
}
return false;
}
内容来源于网络,如有侵权,请联系作者删除!