本文整理了Java中com.ait.lienzo.client.core.shape.Rectangle.getWidth
方法的一些代码示例,展示了Rectangle.getWidth
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.getWidth
方法的具体详情如下:
包路径:com.ait.lienzo.client.core.shape.Rectangle
类名称:Rectangle
方法名:getWidth
[英]Gets the width of this rectangle.
[中]获取此矩形的宽度。
代码示例来源:origin: org.drools/drools-wb-guided-dtree-editor-client
public double getWidth() {
return container.getWidth();
}
代码示例来源: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: 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.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: 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: com.ahome-it/lienzo-charts
@Override
public void onNodeMouseEnter(NodeMouseEnterEvent event)
{
double x = bar.getX();
double y = bar.getY();
double width = bar.getWidth();
double height = bar.getHeight();
double xTooltip = isVertical() ? x + width / 2 : x + width;
double yTooltip = isVertical() ? y - XYChartTooltip.TRIANGLE_SIZE : y + height / 2;
seriesValuesAlpha(numSeries, 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);
}
}
内容来源于网络,如有侵权,请联系作者删除!