Java 2入门经典:JDK 5源码 这本书综合介绍了使用J2SE(Java 2 Standard Edition)5.0或更高版本开发动态程序的过程

源代码在线查看: sketcherconstants.java

软件大小: 978 K
上传用户: xujinliner
关键词: Java Standard Edition J2SE
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Defines application wide constants
				package Constants;
				import java.awt.Color;
				import java.awt.Font;
				import java.io.File;
				
				public class SketcherConstants { 
				  // Element type definitions
				  public final static int LINE      = 101;
				  public final static int RECTANGLE = 102;
				  public final static int CIRCLE    = 103;
				  public final static int CURVE     = 104;
				  public final static int TEXT      = 105;
				  // Initial conditions
				  public final static int DEFAULT_ELEMENT_TYPE = LINE;
				  public final static Color DEFAULT_ELEMENT_COLOR = Color.BLUE;
				  public final static Font DEFAULT_FONT = new Font("SansSerif",Font.PLAIN, 12);
				
				  public final static int pointSizeMin = 8;      // Minimum font point size
				  public final static int pointSizeMax = 24;     // Maximum font point size
				  public final static int pointSizeStep = 2;     // Point size step
				
				  // Operating modes
				  public final static int NORMAL = 0;
				  public final static int MOVE   = 1;
				  public final static int ROTATE = 2;
				
				  // Constants related to storing a sketch
				  public final static File DEFAULT_DIRECTORY = new File("C:/Sketches");
				  public final static String DEFAULT_FILENAME = "Sketch.ske";
				}
							

相关资源