当前位置: 首页>>代码示例>>Java>>正文


Java SceneAntialiasing.DISABLED属性代码示例

本文整理汇总了Java中javafx.scene.SceneAntialiasing.DISABLED属性的典型用法代码示例。如果您正苦于以下问题:Java SceneAntialiasing.DISABLED属性的具体用法?Java SceneAntialiasing.DISABLED怎么用?Java SceneAntialiasing.DISABLED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javafx.scene.SceneAntialiasing的用法示例。


在下文中一共展示了SceneAntialiasing.DISABLED属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createSubScene

protected SubScene createSubScene() {
	Group group = new Group();
	group.getChildren().add(createPlayerModel());
	group.getTransforms().add(zRotate);
	
	camera.getTransforms().addAll(yRotate, translate, scale);
	
	subScene = new SubScene(group, preW, preH, true,
			msaa ? SceneAntialiasing.BALANCED : SceneAntialiasing.DISABLED);
       subScene.setFill(Color.ALICEBLUE);
       subScene.setCamera(camera);
       
       return subScene;
}
 
开发者ID:InfinityStudio,项目名称:minecraft-jfx-skin,代码行数:14,代码来源:SkinCanvas.java

示例2: getTopLeftScene

@Override
protected SubScene getTopLeftScene() {
    rootTLMV = buildGroupMover();
    SubScene ss = new SubScene(rootTLMV.getGroup(), SS_WIDTH, SS_HEIGHT, true, SceneAntialiasing.DISABLED);
    ss.setCamera(new PerspectiveCamera());
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:7,代码来源:SubSceneDepthTestApp.java

示例3: getTopRightScene

@Override
protected SubScene getTopRightScene() {
    rootTRMV = buildGroupMover();
    rootTRMV.setRotateY(60);

    SubScene ss = new SubScene(rootTRMV.getGroup(), SS_WIDTH, SS_HEIGHT, true, SceneAntialiasing.DISABLED);
    ss.setCamera(new PerspectiveCamera());
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:9,代码来源:SubSceneDepthTestApp.java

示例4: getDownLeftScene

@Override
protected SubScene getDownLeftScene() {
    rootDLMV = buildGroupMover();
    rootDLMV.setRotateY(-60);
    SubScene ss = new SubScene(rootDLMV.getGroup(), SS_WIDTH, SS_HEIGHT, true, SceneAntialiasing.DISABLED);
    ss.setCamera(new PerspectiveCamera());
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:8,代码来源:SubSceneDepthTestApp.java

示例5: getSubScene

private SubScene getSubScene(int num) {
    Group root = cases[num].buildAll();
    cases[num].getGroupMover().translateXProperty().set(WIDTH / 4);
    cases[num].getGroupMover().translateYProperty().set(HEIGHT / 4);
    SubScene ss = new SubScene(root, HEIGHT / 2, WIDTH / 2, true, SceneAntialiasing.DISABLED);
    cases[num].addCamera(ss);
    ss.setFill(Color.GREEN);
    if (!isTest()) {
        cases[num].initRotation(ss);
    }
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:12,代码来源:SubSceneShape3DAbstractApp.java

示例6: getTopLeftScene

@Override
protected SubScene getTopLeftScene() {
    SubScene ss = new SubScene(buildGroup(), SS_WIDTH, SS_HEIGHT, true, SceneAntialiasing.DISABLED);
    ss.setCamera(new PerspectiveCamera());
    scenes[0] = ss;
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:7,代码来源:SubSceneBasicPropsTestApp.java

示例7: getTopRightScene

@Override
protected SubScene getTopRightScene() {
    SubScene ss = new SubScene(buildGroup(), SS_WIDTH, SS_HEIGHT, true, SceneAntialiasing.DISABLED);
    ss.setCamera(new PerspectiveCamera());
    scenes[1] = ss;
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:7,代码来源:SubSceneBasicPropsTestApp.java

示例8: getDownLeftScene

@Override
protected SubScene getDownLeftScene() {
    SubScene ss = new SubScene(buildGroup(), SS_WIDTH, SS_HEIGHT, true, SceneAntialiasing.DISABLED);
    ss.setCamera(new PerspectiveCamera());
    scenes[2] = ss;
    return ss;
}
 
开发者ID:teamfx,项目名称:openjfx-8u-dev-tests,代码行数:7,代码来源:SubSceneBasicPropsTestApp.java

示例9: createScene3D

/**Creates a 3D subscene with a perspectiveCamera, where the specified group node acts as the parent node of
   * the subscene. Dont forget to make the subscene scale with the size of the whole scene, by binding its size
   * (mySubscene.heightProperty().bind(myVBox.heightProperty()))
   **/
  private SubScene createScene3D(Group group,PerspectiveCamera camera) {
  SubScene scene3d = new SubScene(group, sceneWidth, sceneHeight, true, SceneAntialiasing.DISABLED);
  scene3d.setFill(Color.DARKGRAY.darker().darker().darker().darker());
  scene3d.setCamera(camera);

  return scene3d;
  
}
 
开发者ID:VRL-Studio,项目名称:VRL-JFXVis,代码行数:12,代码来源:Main.java


注:本文中的javafx.scene.SceneAntialiasing.DISABLED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。