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

x33g5p2x  于2022-01-29 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(106)

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

Rectangle.getHeight介绍

[英]Gets the height of this rectangle.
[中]获取此矩形的高度。

代码示例

代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client

public double getHeight() {
  return container.getHeight();
}

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

public double getHeight() {
  return rectangle.getHeight();
}

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

@Override
public BoundingBox getBoundingBox()
{
  return new BoundingBox(0, 0, getWidth(), getHeight());
}

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

@Override
public BoundingBox getBoundingBox()
{
  return new BoundingBox(0, 0, getWidth(), getHeight());
}

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

@Override
public BoundingBox getBoundingBox()
{
  return new BoundingBox(0, 0, getWidth(), getHeight());
}

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

@Override
public BoundingBox getBoundingBox()
{
  return new BoundingBox(0, 0, getWidth(), getHeight());
}

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

public EditableBayesianNode(final Rectangle shape) {
  this(shape.getWidth(),
     shape.getHeight(),
     shape.getX(),
     shape.getY(),
     BayesianUtils.getNodeColors()[0][0]);
}

代码示例来源:origin: org.uberfire/uberfire-wires-bayesian-network-client

public EditableBayesianNode(final Rectangle shape) {
  this(shape.getWidth(),
     shape.getHeight(),
     shape.getX(),
     shape.getY(),
     BayesianUtils.getNodeColors()[0][0]);
}

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

public void center() {
  int x = (int) (width / 2 - substrate.getWidth() / 2);
  int y = (int) (height / 2 - substrate.getHeight() / 2);
  substrate.setX(x).setY(y);
  progress.setX(x + 2).setY(y + 2);
  progressPercentage.setX(x + substrate.getWidth() / 2).setY(y + 2 + progress.getHeight() / 2);
  layer.batch();
}

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

public void center() {
  int x = (int) (width / 2 - substrate.getWidth() / 2);
  int y = (int) (height / 2 - substrate.getHeight() / 2);
  substrate.setX(x).setY(y);
  progress.setX(x + 2).setY(y + 2);
  progressPercentage.setX(x + substrate.getWidth() / 2).setY(y + 2 + progress.getHeight() / 2);
  layer.batch();
}

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

private void assertRenderedRectangle(final Rectangle rectangle,
                     final double expectedWidth,
                     final double expectedHeight) {
    assertEquals(expectedWidth,
           rectangle.getWidth(),
           0.5);
    assertEquals(expectedHeight,
           rectangle.getHeight(),
           0.5);
  }
}

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

private void assertRenderedRectangle(final Rectangle rectangle,
                     final double expectedWidth,
                     final double expectedHeight) {
    assertEquals(expectedWidth,
           rectangle.getWidth(),
           0.5);
    assertEquals(expectedHeight,
           rectangle.getHeight(),
           0.5);
  }
}

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

@Override
  public void onNodeMouseEnter(NodeMouseEnterEvent event) {
    double x = barObject.getX();
    double y = barObject.getY();
    double width = barObject.getWidth();
    double height = barObject.getHeight();
    double xTooltip = x + width;
    double yTooltip = y + height/2;
    seriesValuesAlpha(numSerie, numValue, 0.5d);
    tooltip.setX(xTooltip).setY(yTooltip);
    tooltip.show(yValueFormatted, xValueFormatted);
  }
});

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

@Override
  public void onNodeMouseEnter(NodeMouseEnterEvent event) {
    double x = barObject.getX();
    double y = barObject.getY();
    double width = barObject.getWidth();
    double height = barObject.getHeight();
    double xTooltip = x + width/2;
    double yTooltip = y - BarChartTooltip.TRIANGLE_SIZE;
    seriesValuesAlpha(numSerie, numValue, 0.5d);
    tooltip.setX(xTooltip).setY(yTooltip);
    tooltip.show(xValueFormatted, yValueFormatted);
  }
});

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

@Override
  public void onMove(double x,
            double y) {
    controlPoint2.setX(controlPoint4.getX());
    controlPoint3.setY(controlPoint4.getY());
    rectangle.setWidth(controlPoint2.getX() - controlPoint1.getX());
    rectangle.setHeight(controlPoint3.getY() - controlPoint1.getY());
    bounding.setWidth(rectangle.getWidth() + BOUNDARY_SIZE);
    bounding.setHeight(rectangle.getHeight() + BOUNDARY_SIZE);
  }
}

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

@Override
  public void onMove(double x,
            double y) {
    controlPoint2.setX(controlPoint4.getX());
    controlPoint3.setY(controlPoint4.getY());
    rectangle.setWidth(controlPoint2.getX() - controlPoint1.getX());
    rectangle.setHeight(controlPoint3.getY() - controlPoint1.getY());
    bounding.setWidth(rectangle.getWidth() + BOUNDARY_SIZE);
    bounding.setHeight(rectangle.getHeight() + BOUNDARY_SIZE);
  }
}

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

@Override
  public void onMove(double x,
            double y) {
    controlPoint1.setX(controlPoint3.getX());
    controlPoint4.setY(controlPoint3.getY());
    rectangle.setX(x - getX());
    rectangle.setWidth(controlPoint2.getX() - controlPoint1.getX());
    rectangle.setHeight(controlPoint3.getY() - controlPoint1.getY());
    bounding.setX(rectangle.getX() - (BOUNDARY_SIZE / 2));
    bounding.setWidth(rectangle.getWidth() + BOUNDARY_SIZE);
    bounding.setHeight(rectangle.getHeight() + BOUNDARY_SIZE);
  }
}

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

@Override
  public void onMove(double x,
            double y) {
    controlPoint1.setY(controlPoint2.getY());
    controlPoint4.setX(controlPoint2.getX());
    rectangle.setY(y - getY());
    rectangle.setWidth(controlPoint2.getX() - controlPoint1.getX());
    rectangle.setHeight(controlPoint3.getY() - controlPoint1.getY());
    bounding.setY(rectangle.getY() - (BOUNDARY_SIZE / 2));
    bounding.setWidth(rectangle.getWidth() + BOUNDARY_SIZE);
    bounding.setHeight(rectangle.getHeight() + BOUNDARY_SIZE);
  }
}

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

@Override
  public void onMove(double x,
            double y) {
    controlPoint1.setY(controlPoint2.getY());
    controlPoint4.setX(controlPoint2.getX());
    rectangle.setY(y - getY());
    rectangle.setWidth(controlPoint2.getX() - controlPoint1.getX());
    rectangle.setHeight(controlPoint3.getY() - controlPoint1.getY());
    bounding.setY(rectangle.getY() - (BOUNDARY_SIZE / 2));
    bounding.setWidth(rectangle.getWidth() + BOUNDARY_SIZE);
    bounding.setHeight(rectangle.getHeight() + BOUNDARY_SIZE);
  }
}

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

@Override
  public void onMove(double x,
            double y) {
    controlPoint1.setX(controlPoint3.getX());
    controlPoint4.setY(controlPoint3.getY());
    rectangle.setX(x - getX());
    rectangle.setWidth(controlPoint2.getX() - controlPoint1.getX());
    rectangle.setHeight(controlPoint3.getY() - controlPoint1.getY());
    bounding.setX(rectangle.getX() - (BOUNDARY_SIZE / 2));
    bounding.setWidth(rectangle.getWidth() + BOUNDARY_SIZE);
    bounding.setHeight(rectangle.getHeight() + BOUNDARY_SIZE);
  }
}

相关文章