com.ait.lienzo.client.core.shape.Line.getPoints()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中com.ait.lienzo.client.core.shape.Line.getPoints()方法的一些代码示例,展示了Line.getPoints()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.getPoints()方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Line
类名称:Line
方法名:getPoints

Line.getPoints介绍

[英]Gets the end-points of this line.
[中]获取此行的终点。

代码示例

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
public Point2DArray getPoint2DArray()
{
  return getPoints();
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public Point2DArray getPoint2DArray()
{
  return getPoints();
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public Point2DArray getPoint2DArray()
{
  return getPoints();
}

代码示例来源:origin: org.dashbuilder/dashbuilder-lienzo-core

@Override
public BoundingBox getBoundingBox()
{
  return new BoundingBox(getPoints());
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public BoundingBox getBoundingBox()
{
  return new BoundingBox(getPoints());
}

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
public Point2D getHeadOffsetPoint()
{
  final Point2DArray list = getPoints();
  if ((null != list) && (list.size() == 2))
  {
    return list.get(1);
  }
  return null;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public Point2D getTailOffsetPoint()
{
  final Point2DArray list = getPoints();
  if ((null != list) && (list.size() == 2))
  {
    return list.get(0);
  }
  return null;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public Point2D getHeadOffsetPoint()
{
  final Point2DArray list = getPoints();
  if ((null != list) && (list.size() == 2))
  {
    return list.get(1);
  }
  return null;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public Point2D getTailOffsetPoint()
{
  final Point2DArray list = getPoints();
  if ((null != list) && (list.size() == 2))
  {
    return list.get(0);
  }
  return null;
}

代码示例来源:origin: ahome-it/lienzo-core

@Override
public Point2D getHeadOffsetPoint()
{
  final Point2DArray list = getPoints();
  if ((null != list) && (list.size() == 2))
  {
    return list.get(1);
  }
  return null;
}

代码示例来源:origin: com.ahome-it/lienzo-core

@Override
public Point2D getTailOffsetPoint()
{
  final Point2DArray list = getPoints();
  if ((null != list) && (list.size() == 2))
  {
    return list.get(0);
  }
  return null;
}

代码示例来源:origin: kiegroup/appformer

@Override
public boolean contains(final double cx,
            final double cy) {
  final double _x = cx - getX();
  final double _y = cy - getY();
  return Math.sqrt(GeometryUtil.ptSegDistSq(line.getPoints().get(0).getX(),
                       line.getPoints().get(0).getY(),
                       line.getPoints().get(1).getX(),
                       line.getPoints().get(1).getY(),
                       _x,
                       _y)) < BOUNDARY_SIZE;
}

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

@Override
public boolean contains(final double cx,
            final double cy) {
  final double _x = cx - getX();
  final double _y = cy - getY();
  return Math.sqrt(GeometryUtil.ptSegDistSq(line.getPoints().get(0).getX(),
                       line.getPoints().get(0).getY(),
                       line.getPoints().get(1).getX(),
                       line.getPoints().get(1).getY(),
                       _x,
                       _y)) < BOUNDARY_SIZE;
}

代码示例来源:origin: kiegroup/appformer

@Override
  public void onMove(final double x,
            final double y) {
    line.getPoints().get(1).setX(x - getX());
    line.getPoints().get(1).setY(y - getY());
    bounding.getPoints().get(1).setX(x - getX());
    bounding.getPoints().get(1).setY(y - getY());
  }
});

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

@Override
  public void onMove(final double x,
            final double y) {
    line.getPoints().get(1).setX(x - getX());
    line.getPoints().get(1).setY(y - getY());
    bounding.getPoints().get(1).setX(x - getX());
    bounding.getPoints().get(1).setY(y - getY());
  }
});

代码示例来源:origin: kiegroup/appformer

@Override
  public void onMove(final double x,
            final double y) {
    line.getPoints().get(0).setX(x - getX());
    line.getPoints().get(0).setY(y - getY());
    bounding.getPoints().get(0).setX(x - getX());
    bounding.getPoints().get(0).setY(y - getY());
  }
});

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

@Override
  public void onMove(final double x,
            final double y) {
    curve.getControlPoints().get(1).setX(x - getX());
    curve.getControlPoints().get(1).setY(y - getY());
    bounding.getControlPoints().get(1).setX(x - getX());
    bounding.getControlPoints().get(1).setY(y - getY());
    controlLine1.getPoints().get(1).setX(x - getX());
    controlLine1.getPoints().get(1).setY(y - getY());
  }
}

代码示例来源:origin: kiegroup/appformer

@Override
  public void onMove(final double x,
            final double y) {
    curve.getControlPoints().get(0).setX(x - getX());
    curve.getControlPoints().get(0).setY(y - getY());
    bounding.getControlPoints().get(0).setX(x - getX());
    bounding.getControlPoints().get(0).setY(y - getY());
    controlLine1.getPoints().get(0).setX(x - getX());
    controlLine1.getPoints().get(0).setY(y - getY());
  }
}

代码示例来源:origin: org.uberfire/uberfire-wires-core-scratchpad

@Override
  public void onMove(final double x,
            final double y) {
    curve.getControlPoints().get(0).setX(x - getX());
    curve.getControlPoints().get(0).setY(y - getY());
    bounding.getControlPoints().get(0).setX(x - getX());
    bounding.getControlPoints().get(0).setY(y - getY());
    controlLine1.getPoints().get(0).setX(x - getX());
    controlLine1.getPoints().get(0).setY(y - getY());
  }
}

代码示例来源:origin: kiegroup/appformer

@Override
  public void onMove(final double x,
            final double y) {
    curve.getControlPoints().get(2).setX(x - getX());
    curve.getControlPoints().get(2).setY(y - getY());
    bounding.getControlPoints().get(2).setX(x - getX());
    bounding.getControlPoints().get(2).setY(y - getY());
    controlLine2.getPoints().get(0).setX(x - getX());
    controlLine2.getPoints().get(0).setY(y - getY());
  }
}

相关文章