资源简介
JavaFX Script编程语言是Sun微系统公司开发的一种declarative,statically typed(声明性的、静态类型)脚本语言。JavaFX技术有着良好的前景,包括可以直接调用Java API的能力。
代码片段和文件信息
/*
* Copyright (c) 2008 2012 Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file is available and licensed under the following license:
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the distribution.
* - Neither the name of Oracle Corporation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
* LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
* SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
* LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
* DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package brickbreaker;
import javafx.scene.Parent;
import javafx.scene.image.ImageView;
public class Ball extends Parent {
public static final int DEFAULT_SIZE = 2;
public static final int MAX_SIZE = 5;
private int size;
private int diameter;
private ImageView imageView;
public Ball() {
imageView = new ImageView();
getChildren().add(imageView);
changeSize(DEFAULT_SIZE);
setMouseTransparent(true);
}
public int getSize() {
return size;
}
public int getDiameter() {
return diameter;
}
public void changeSize(int newSize) {
size = newSize;
imageView.setImage(Config.getImages().get(Config.IMAGE_BALL_0 + size));
diameter = (int) imageView.getImage().getWidth() - Config.SHADOW_WIDTH;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-06-05 17:29 javafx-samples-2.2.25\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\nbproject\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\desktop\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\desktop\ball\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\desktop\bat\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\desktop\bonus\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\desktop\brick\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\BrickBreaker\src\brickbreaker\images\desktop\splash\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\nbproject\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\heattab\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\historytab\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\images\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\livetab\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\map\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\productstab\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\rest\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\src\com\javafx\experiments\dataapp\client\util\
目录 0 2013-06-05 17:26 javafx-samples-2.2.25\src\DataApp\DataAppClient\web\
............此处省略786个文件信息
相关资源
- 将worddocdocx转换成html代码以及所需p
- itext 5.5.5全部jar包
- org.apache.commons jar包
- Maven 构建 Kettle 时所需的部分jar包
- pageoffice4.5.0.3.jar升级jar包(java版)
- xalan系列jar包
- lucene4.6所有jar包
- ssh框架所有jar包
- selenium及依赖jar包(java)
- Spring3.2.0 框架jar包及Spring依赖jar包
- 200多个JAVA经典游戏源代码和资源及
- 最全的lucene-2.4.0jar包
- rt.jar常用Jar包
- htmlunit用到的jar包
- AutoIt工具及jar包
- spring2+hibernate3+struts2JAR包
- icepdf 6.2.5 jar包
- 利用JavaFx实现照片册功能
- springboot全部jar包
- Struts jar包
- hibernate需要的jar包
- axis2生成客户端代码 (带jar包)
- axis2-1.7.7-bin所有jar包
- Activiti6.0依赖jar包依赖解决
- axis2所用jar包大全
- XFire1.2.6完整版JAR包
- Spring、MyBatis和SpringMVC整合的jar包
- hadoop-eclipse-plugin-3.1.2.jar
- Hadoop的jar包
- JDBC资料及jar包
评论
共有 条评论