The classes for the Java2D(TM) demo are contained in the J2Ddemo.jar file.
To run the J2D demo:
% java -jar J2Ddemo.jar
-----------------------------------------------------------------------
Introduction
-----------------------------------------------------------------------
This Java2D demo consists of a set of demos housed in one GUI
framework that uses a JTabbedPane. You can access different groups of
demos by clicking the tabs at the top of the pane. There are demo
groups for Arcs_Curves, Clipping, Colors, Composite, Fonts, Images,
Lines, Mix, Paint, Paths and Transforms. On the right-hand side of the
pane, the GUI framework features individual and global controls for
changing graphics attributes. There's also a memory-usage monitor, and
a monitor for tracking the performance, in frames per second, of
animation demos.
-----------------------------------------------------------------------
Tips on usage
-----------------------------------------------------------------------
Click on one of the tabs at the top of the pane to select a demo group.
When you select a group, a set of surfaces is displayed, each of which
contains one of the group's demos. At the bottom of each surface is
a set of tools for controlling the demo. The tools can be displayed
by selecting the Tools checkbox in the Global Controls panel or
by clicking on the slim strip of gray bumps at the bottom of the demo
panel.
If you click on a demo surface, that demo is laid out by itself. A
new icon button will appear in the demo's tools toolbar one that enables
you to create new instances of that demo's surface.
To run the demo continuously without user interaction, select the
Run Window item in the Options menu and press the run button in the
new window that's displayed. To do this from the command line:
java -jar J2Ddemo.jar -runs=10
To view all the command line options for customizing demo runs:
java -jar J2Ddemo.jar -help
You can run the demos in stand-alone mode by issuing a command like this
java -cp J2Ddemo.jar java2d.demos.Clipping.ClipAnim
You can run the demos in groups by issuing a command like this
java -cp J2Ddemo.jar java2d.DemoGroup Clipping
To increase or decrease the Memory Monitor sampling rate click on the
Memory Monitor's title border, a panel with a TextField will appear.
The J2Ddemo Intro (the 'J2D demo' tab) contains a scene table, click in
the gray border and a table will appear.
Animated demos have a slider to control the animation rate. Bring up
the animated demo toolbar, then click in the gray area of the toolbar
panel, the toolbar goes away and the slider appears.
Demos that have Custom Controls can have their Custom Control Thread
activated and stopped by clicking in the gray area of the demos Custom
Control panel.
-----------------------------------------------------------------------
NOTE about demo surfaces
-----------------------------------------------------------------------
The demo groups are in separate packages with their class files stored
in directories named according to the demo group name. All drawing
demos extend either the Surface, AnimatingSurface, ControlsSurface or
AnimatingControlsSurface classes. Surface is the base class, demos
must implement the Surface's render method. All animated demos extend
either the AnimatingSurface or the AnimatingControlsSurface classes.
Animated demos must implement the reset and step methods. The demos
with gui controls extend either the ControlsSurface or the
AnimatingControlsSurface classes. Demos with controls must implement
the methods in the CustomControlsContext interface.
======================================================================
Here are some resources for learning about and using the Java2D(TM)
OpenJDK group page: http://openjdk.java.net/groups/2d/
Learning Java 2D: http://www.oracle.com/technetwork/articles/java/java2dpart1-137217.html
Tutorial : http://download.oracle.com/javase/tutorial/2d/
Specification: http://download.oracle.com/javase/8/docs/technotes/guides/2d/spec/j2d-bookTOC.html
Java 2D (TM) API White Paper : http://www.oracle.com/technetwork/java/javase/tech/2d-142228.html
2D FAQ: http://www.oracle.com/technetwork/java/index-137037.html
没有合适的资源?快使用搜索试试~ 我知道了~
elasticsearch-7.4.0-windows-x86_64.zip

共950个文件
jar:187个
dll:107个
jmod:71个

需积分: 22 16 下载量 123 浏览量
2020-06-20
10:47:43
上传
评论
收藏 275.14MB ZIP 举报
温馨提示
elasticsearch-7.4.0-windows-x86_64.zip ES全文搜索引擎 windows安装包
资源推荐
资源详情
资源评论



















收起资源包目录





































































































共 950 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论


SuperAvalon
- 粉丝: 125
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- AAGUI-C语言资源
- 年网络运营年度总结及计划.ppt
- 软件开发程序员求职简历模板.docx
- 互联网-物业.pptx
- 甘肃陇南市武都区花椒网络营销策划方案.doc
- 网络对青少年的影响.ppt
- 基于单片机的温室温湿度控制系统的设计-毕业论文最终版含全部源程序.doc
- 我国自动化量仪空白阻碍机床发展.ppt
- 裕明鑫LED灯光控制软件手册.docx
- 计算机二级word单项操作邮件合并(第7和8题).ppt
- 专升本数据库系统概论考试试卷及答案.doc
- 项目管理师考试知识汇总.doc
- 大中型网站云计算解决方案.doc
- 计算机及应用专业课程改革方案.doc
- 移动通信基站用蓄电池使用规范及日常维护注意事项.doc
- 电子商务的业务流程重组技术讲义.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
