资源简介
用GUI做的画板,可以绘制圆形,椭圆,三角形,五角星,五边形,可以实现文件保存以及读取,前进和后退,颜色变化,功能齐全。

代码片段和文件信息
/*
*/
package com.cloudgarden.layout;
/**
* Used by both AnchorLayout (SWT) and AnchorLayoutManager (Swing)
*/
public class AnchorConstraint {
/**
* Meaning: This side is not anchored.
*/
public static final int ANCHOR_NONE = 0;
/**
* (Relative anchor) Meaning: This side is anchored so that it always
* occurs a fixed fraction of
* the distance along it‘s parent‘s side. The position is calculated by
* the formula “ position = (parent side)*(value)/1000 “ so for
* instance if top=100 and topType == ANCHOR_REL then the
* value of y for this side would be (parent height)*top/1000.
*/
public static final int ANCHOR_REL = 1;
/**
* (Absolute anchor) Meaning: This side is anchored a fixed distance
* in pixels (given by the value for this side) from it‘s parent‘s respective side.
* For instance if bottomType == ANCHOR_ABS and bottom = 100 then the
* bottom side of this component will remain fixed 100 pixels from
* the bottom side of it‘s parent container.
*/
public static final int ANCHOR_ABS = 2;
public int top;
public int bottom;
public int left;
public int right;
public int topType;
public int bottomType;
public int rightType;
public int leftType;
public AnchorConstraint() {
this(0 0 0 0 ANCHOR_NONE ANCHOR_NONE ANCHOR_NONE ANCHOR_NONE);
}
/**
* Creates an AnchorConstraint.
* @param top - value (relative or absolute) for top side
* @param right - like ‘top‘ but for right side
* @param bottom - like ‘top‘ but for bottom side
* @param left - like ‘top‘ but for left side
* @param topType - either ANCHOR_ABS ANCHOR_REL or ANCHOR_NONE
* to indicate whether the ‘top‘ parameter is an absolute value (in pixels) or
* a fractional value (in 1/1000 ths) of the height of this component‘s parent
* denoting where the anchor will be applied (if at all).
* @param rightType - like ‘topType‘ but for right side
* @param bottomType - like ‘topType‘ but for bottom side
* @param leftType - like ‘topType‘ but for left side
*/
public AnchorConstraint(
int top
int right
int bottom
int left
int topType
int rightType
int bottomType
int leftType) {
this.top = top;
this.bottom = bottom;
this.left = left;
this.right = right;
this.topType = topType;
this.rightType = rightType;
this.bottomType = bottomType;
this.leftType = leftType;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 226 2008-08-21 19:29 CAD\.classpath
文件 379 2008-08-13 11:20 CAD\.project
......R 805 2008-08-14 16:58 CAD\icon\do.jpg
......R 1698 2008-08-14 16:58 CAD\icon\ellipse.jpg
......R 1628 2008-08-14 16:58 CAD\icon\line.jpg
......R 2136 2008-08-14 16:58 CAD\icon\pentacle.jpg
......R 2059 2008-08-14 16:58 CAD\icon\pentagon.jpg
......R 1759 2008-08-14 16:58 CAD\icon\rect.jpg
......R 2480 2008-08-14 16:58 CAD\icon\round.jpg
......R 780 2008-08-14 16:58 CAD\icon\select.jpg
......R 2196 2008-08-14 16:58 CAD\icon\triangle.jpg
......R 3943 2008-08-14 16:58 CAD\icon\turn.jpg
......R 791 2008-08-14 16:58 CAD\icon\undo.jpg
....SHR 375 2008-08-27 11:42 CAD\icon\vssver2.scc
......R 28547 2008-08-27 14:32 CAD\com\hb\cad\CADJfr
......R 3126 2008-08-14 17:47 CAD\com\hb\cad\ColorJDialog.java
....SHR 224 2008-08-27 14:35 CAD\com\hb\cad\vssver2.scc
......R 9928 2008-08-27 14:32 CAD\com\hb\cad\shapes\NewEllipse2D.java
......R 6281 2008-08-27 11:43 CAD\com\hb\cad\shapes\NewLine2D.java
......R 14794 2008-08-26 19:42 CAD\com\hb\cad\shapes\NewPentacle2D.java
......R 12058 2008-08-26 18:29 CAD\com\hb\cad\shapes\NewRectangle2D.java
......R 9073 2008-08-27 14:32 CAD\com\hb\cad\shapes\NewRound2D.java
......R 15939 2008-08-26 18:30 CAD\com\hb\cad\shapes\NewTriangle2D.java
....SHR 370 2008-08-27 14:35 CAD\com\hb\cad\shapes\vssver2.scc
......R 13980 2008-08-26 19:46 CAD\com\hb\cad\shapes\NewPentagon2D.java
......R 16127 2008-08-26 19:56 CAD\com\hb\cad\canvas\CanvasJPanel.java
....SHR 131 2008-08-27 14:35 CAD\com\hb\cad\canvas\vssver2.scc
文件 4317 2008-08-27 16:35 CAD\com\hb\cad\ba
....SHR 149 2008-08-27 14:35 CAD\com\hb\cad\ba
......R 1176 2008-08-26 18:54 CAD\com\hb\cad\ReadAndWrite.java
............此处省略16个文件信息
相关资源
- the_definitive_guide_to_linux_network_programm
- ANSYS 14.5 Design Exploration User Guide
- 嵌入式图形界面MiniGUI的示例程序9例
- STM32基于rt_thread操作系统的SDHC卡文件
- GUI银行管理系统
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- System Design Interview - An Insider’s Guide
- VCS lab 和 VCS lab guide
- 《Hadoop大数据技术》课程设计报告.
- Hadoop.in.Practice.2nd.Edition
- 翻译的美国大学经典参考书,Roland
- ida pro for mac 破解版 含解决打开就显示
- easygui手册
- 英文原版-Certified Ethical Hacker CEH Foun
- Guide to Reliable Distributed Systems
- Channel waveguides fabrication in bulk Lithium
- Origin of anomalous hysteresis loops induced b
- ARM嵌入式系统开发:软件设计与优化
- IT6802 Programming Guide
- CWAP Certified Wireless Analysis Professional
- Academic Writing--a practical guide for studen
- 基于Greenplum Hadoop- 分布式平台的大数
- Unigui 1.50.0.1481(含keygen)
- 自己做的一个简单GUI扑克纸牌识别-
- 构建用户自画像视频教程真实企业项
- hdp安装手册
- 爬取豆瓣排行榜电影数据(含GUI界面
- hadoop技术内幕三件套
- [百度网盘]Hadoop技术内幕 深入解析M
- 基于最小错误率的贝叶斯手写数字分
评论
共有 条评论