javafx.scene.shape.Rectangle.getArcHeight()方法的使用及代码示例

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

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

Rectangle.getArcHeight介绍

暂无

代码示例

代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine

/**
 * Compute the needed clip for stage's shadow border
 *
 * @param newBounds
 * @param shadowVisible
 */
void setShadowClip(Bounds newBounds) {
 external.relocate(newBounds.getMinX() - SHADOW_WIDTH, newBounds.getMinY() - SHADOW_WIDTH);
 internal.setX(SHADOW_WIDTH);
 internal.setY(SHADOW_WIDTH);
 internal.setWidth(newBounds.getWidth());
 internal.setHeight(newBounds.getHeight());
 internal.setArcWidth(shadowRectangle.getArcWidth()); // shadowRectangle
 // CSS cannot be
 // applied on
 // this
 internal.setArcHeight(shadowRectangle.getArcHeight());
 external.setWidth(newBounds.getWidth() + SHADOW_WIDTH * 2);
 external.setHeight(newBounds.getHeight() + SHADOW_WIDTH * 2);
 Shape clip = Shape.subtract(external, internal);
 shadowRectangle.setClip(clip);
}

代码示例来源:origin: com.github.almasb/fxgl-ui

trace.setArcHeight(innerBar.getArcHeight());
trace.setTranslateX(innerBar.getWidth() < newWidth ? innerBar.getWidth() : newWidth);
trace.setTranslateY(3);

代码示例来源:origin: com.github.almasb/fxgl-base

trace.setArcHeight(innerBar.getArcHeight());
trace.setTranslateX(innerBar.getWidth() < newWidth ? innerBar.getWidth() : newWidth);
trace.setTranslateY(3);

相关文章

微信公众号

最新文章

更多