Java(TM) 2D Sample Programs
These sample programs demonstrate new Java(TM) 2D features available in the
Java Development Kit, version 1.2 -- you will need to download JDK(TM) 1.2 to
run these programs.
List of Sample Programs
=======================
Directory Java Files Description
Arcs_Curves Arcs.java Arc2D Open, Chord, & Pie arcs; Animated Pie
Arc.
BezierAnim.java Animated Bezier Curve includes controls for
changing graphic attributes.
Curves.java CubicCurve2D & QuadCurve2D curves includes
FlatteningPathIterator example.
Ellipses.java Ellipse2D 25 animated expanding ellipses.
Clipping Areas.java CAG (Constructive Area Geometry) operations :
Add(union), Subtract, Intersect, and ExclusiveOR.
ClipAnim.java Animated clipping of an image & composited
shapes.
Intersection.java Animated intersection clipping of rectangle or
text.
Text.java Clipping an image, lines, and text with text.
Colors Balls.java Animated colored balls bouncing.
BullsEye.java Creating colors with an alpha value.
ColorConvert.java ColorConvertOp a ColorSpace.TYPE_RGB
BufferedImage to ColorSpace.CS_GRAY.
Rotator3D.java 3D objects with color & lighting translated,
rotated and scaled.
Composite ACimages.java Compositing shapes on images.
ACrules.java All the AlphaCompositing rules demonstrated.
FadeAnim.java Animation of compositing shapes, text, and
images fading in and out.
Fonts AllFonts.java Scrolling text of fonts returned from
GraphicsEnvironment.getAllFonts().
AttributedStr.java Build an AttributedString and then render
the string broken over lines.
Highlighting.java Highlighting of text showing the caret, the
highlight & the character advances.
Outline.java Rendering text as an outline shape.
Tree.java Transformation of characters.
Image DukeAnim.java Animated gif with a transparent background.
ImageOps.java Images drawn using operators such as
ConvolveOp LowPass & Sharpen, LookupOp and
RescaleOp.
JPEGFlip.java Render a stroked star into a BufferedImage
save the BufferedImage as a JPEG, display
both.
WarpImage.java Warps a image on a CubicCurve2D flattened
path.
Lines Dash.java Various shapes stoked with a dashing pattern.
LineAnim.java Lines & Paths animation illustrating all of
BasicStroke attributes.
LineTest.java Modify a star's BasicStroke attributes.
Paint GradAnim.java GradientPaint animation.
GradientBurst.java GradientPaint burst effect with controls
for different colors.
Textures.java TexturePaint of image, text and shapes.
TextureAnim Texture animation with controls for
transformations.
Paths Append.java Simple append of rectangle to path with and
without the connect.
CurveQuadTo.java Cubic & Quad curves implemented through
GeneralPath.
FillStroke.java Basic implementation of GeneralPath, filling
& drawing a path.
WindingRule.java Rectangles filled to illustrate the
GeneralPath winding rule, determining the
interior of a path.
Transforms ObjectAnim.java Animation of shapes, text and images
rotating, scaling and translating around a
canvas.
Rotate.java Simple 45 degree rotate of a rectangle.
Scale.java Scaling of a rectangle.
Shear.java Shearing a image.
Compiling the Sample Programs
=============================
You can compile the samples by changing to the sample program's directory and
compiling the *.java files, e.g.
cd Arcs_Curves
javac *.java
(This assumes javac is in your executible path, and you are using
JDK 1.2 FCS or greater)
For your convenience, we have provided a script to compile all the samples --
execute compile.bat (for Windows) or compile.sh (for Solaris).
Running the Sample Programs
===========================
These sample programs are designed to run as standalone Java applications.
To run them, you need to change to the sample program's directory and
execute the java command on the class name, e.g.
cd Arcs_Curves
java Arcs
(This assumes java is in your executible path, and you are using
JDK 1.2 FCS or greater)
For your convenience, we have provided another script to run the samples --
execute run.bat (for Windows) or run.sh (for Solaris).
没有合适的资源?快使用搜索试试~ 我知道了~
JAVA 2D例子
共273个文件
class:123个
html:79个
java:39个
需积分: 0 111 下载量 3 浏览量
2008-05-26
02:11:24
上传
评论
收藏 486KB RAR 举报
温馨提示
JAVA 2D的一些例子
资源详情
资源评论
资源推荐
收起资源包目录
JAVA 2D例子 (273个子文件)
run.bat 1KB
compile.bat 683B
FadeAnim$Demo.class 8KB
ACrules.class 8KB
TransformAnim$Demo.class 8KB
LineTest.class 7KB
SelectTx$Demo.class 7KB
Rotator3D.class 7KB
ClipAnim$Demo.class 7KB
AttributedStr.class 6KB
ImageOps$Demo.class 6KB
LineAnim.class 6KB
Highlighting.class 6KB
Intersection$Demo.class 5KB
JPEGFlip.class 5KB
Rotator3D$Objects3D.class 5KB
WarpImage.class 5KB
Arcs.class 5KB
Tree.class 5KB
ColorConvert.class 5KB
Stars3D$Demo.class 5KB
Text$Demo.class 5KB
TextureAnim$Demo.class 5KB
Texture.class 5KB
BezierAnim$Demo.class 5KB
ACimages.class 4KB
Ellipses.class 4KB
TransformAnim$DemoControls.class 4KB
Curves.class 4KB
GradAnim.class 4KB
BezierAnim$DemoControls.class 4KB
AllFonts$Demo.class 4KB
Dash.class 4KB
Outline.class 4KB
Balls$Demo.class 4KB
DukeAnim.class 4KB
ImageOps$DemoControls.class 3KB
Balls$Demo$Ball.class 3KB
TransformAnim$Demo$ObjectData.class 3KB
AllFonts$DemoControls.class 3KB
BezierCanvas.class 3KB
FadeAnim$Demo$ObjectData.class 3KB
FadeAnim$DemoControls.class 3KB
Areas$Demo.class 3KB
GradientBurst$DemoControls.class 3KB
Balls$DemoControls.class 3KB
FillStroke.class 3KB
TextureAnim$DemoControls.class 3KB
Append.class 3KB
WindingRule.class 2KB
Rotate$Demo.class 2KB
BullsEye.class 2KB
CurveQuadTo.class 2KB
GradientBurst$Demo.class 2KB
Text$DemoControls.class 2KB
ClipAnim$DemoControls.class 2KB
SelectTx$DemoControls.class 2KB
Areas$DemoControls.class 2KB
Rotate$DemoControls.class 2KB
Stars3D$DemoControls.class 2KB
Intersection$DemoControls.class 2KB
TransformAnim.class 1KB
TextureAnim.class 1KB
ClipAnim$Demo$AnimVal.class 1KB
Intersection.class 1KB
TextureAnim$Demo$AnimVal.class 1KB
AllFonts.class 1KB
SelectTx.class 1KB
FadeAnim.class 1KB
BezierAnim.class 1KB
ClipAnim.class 1KB
ImageOps.class 1KB
Balls.class 1KB
GradientBurst.class 1KB
GradAnim$animval.class 1KB
Rotator3D$Objects3D$Matrix3D.class 1KB
Rotate.class 1KB
Stars3D.class 1KB
Areas.class 1KB
Text.class 1KB
GradientBurst$DemoControls$ColoredSquare.class 974B
BezierAnim$DemoControls$PaintedIcon.class 963B
AllFonts$DemoControls$DownArrowIcon.class 946B
FadeAnim$Demo$TextData.class 756B
TransformAnim$1.class 709B
ImageOps$DemoControls$1.class 708B
Intersection$1.class 704B
Highlighting$1.class 704B
TextureAnim$1.class 699B
BezierAnim$1.class 694B
Rotator3D$1.class 689B
WarpImage$1.class 689B
FadeAnim$1.class 684B
Ellipses$1.class 684B
GradAnim$1.class 684B
ClipAnim$1.class 684B
AllFonts$1.class 684B
LineAnim$1.class 684B
SelectTx$1.class 684B
ACrules$1.class 679B
共 273 条
- 1
- 2
- 3
linbzh
- 粉丝: 2
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0