-
大小: 59KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-06-14
- 语言: 其他
- 标签: GUI oop FileInputStr
资源简介
用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个文件信息
相关资源
- MiniGUI 按键切换图片,背景图片,控件
- hadoop实战全套视频
- Hadoop三个版本学习视频
- 面向大数据挖掘的Hadoop框架K均值聚类
- UGUI 动态加载内容的 dropdown 控件
- hadoop全套视频教学
- Unity DialogUI制作模板
- 云计算报告
- hadoop2.7.6 win10 x64本地编译结果
- 页面置换算法gui无时钟.zip
- svm gui安装该工具箱
- reportlab_userguide_pdf_高清含详细目录
- ucGUI汉字取模小工具
- FANUC roboguide破解软件
- Hadoop应用开发大作业.docx
- 易语言Imgui绘制模块
- 尚硅谷2018大数据全套
- 段海涛老师2017年最新12天hadoop视频
- 友盟大数据项目
- The Complete Effect and HLSL Guide (中文版)
- DHCP snooping代码
- hive&sqoop;的ppt
- QT之扫雷游戏
-
大数据hadoop+spark+hba
se+zookeeper+kafka - The Complete Effect and HLSL Guide
- hadoop 分布式云计算 课程设计报告
- MINIGUI下的计算器
- FlashWavRecorder(eguid修改版).zip
-
hadoop hba
se性能报告(英文) - IndentGuide VS2010 开始结束括号之间连线
评论
共有 条评论