⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shapeconst.java

📁 用Java开发的、实现类似Visio功能的应用程序源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/**
 *    $Id:ShapeConst.java $
 *
 *    Copyright 2004 ~ 2005  JingFei International Cooperation LTD. All rights reserved. *
 */
package com.jfimagine.jfgraph.shape.base;


/**
 *  Shape Const class is a const definition list of shapes.
 *
 * @author     CookieMaker    
 *
 * @version $Revision: 1.00 $
 */  
public class ShapeConst{

       /**
    	*   An empty shape.
        */
	public static final int	 SHAPETYPE_NONE		=0;

       /**
    	*   A label. A label is differnet as a text object here.
    	*  A label should be encapsulate by AbstractShape. 
        */
	public static final int	 SHAPETYPE_LABEL	=1;

       //***************************************************
       //      Shape Type
       //***************************************************
       
       /**
    	*   A node shape
        */
	public static final int	 SHAPETYPE_NODE		=10;

       /**
    	*   A regular node shape
        */
	public static final int	 SHAPETYPE_REGULARNODE	=11;

       /**
    	*   A poly node shape
        */
	public static final int	 SHAPETYPE_POLYNODE	=12;


       /**
    	*   A port shape
        */
	public static final int	 SHAPETYPE_PORT		=15;

       /**
    	*   A port of curve.
        */
	public static final int	 SHAPETYPE_CURVEPORT	=16;

       /**
    	*   A port of arc.
        */
	public static final int	 SHAPETYPE_ARCPORT	=17;

       /**
    	*   A port of ELLIPSE.
        */
	public static final int	 SHAPETYPE_ELLIPSEPORT	=18;


       /**
    	*   A property shape
        */
	public static final int	 SHAPETYPE_PROPERTY	=30;


       /**
    	*   A quadrant lines.
        */
	public static final int	 SHAPETYPE_QUADRANT	=80;


       /**
    	*   A line shape.
        */
	public static final int	 SHAPETYPE_LINE		=100;

       /**
    	*   A regular line shape.
        */
	public static final int	 SHAPETYPE_REGULARLINE	=101;

       /**
    	*   A label line shape.
        */
	public static final int	 SHAPETYPE_LABELLINE	=102;

       /**
    	*   A horizontal label line shape.
        */
	public static final int	 SHAPETYPE_HLABELLINE	=103;

       /**
    	*   A vertical label line shape.
        */
	public static final int	 SHAPETYPE_VLABELLINE	=104;

       /**
    	*   A curve shape.
        */
	public static final int	 SHAPETYPE_CURVE	=105;

       /**
    	*   A rectangle shape.
        */
	public static final int	 SHAPETYPE_RECT		=110;

       /**
    	*   A parallogram shape. 
        */
	public static final int	 SHAPETYPE_RECT_PARALLELOGRAM	=111;

       /**
    	*   A trapezoid shape. 
        */
	public static final int	 SHAPETYPE_RECT_TRAPEZOID	=112;

       /**
    	*   An isosceles trapezoid shape. 
        */
	public static final int	 SHAPETYPE_RECT_ISOSCELESTRAPEZOID =113;

       /**
    	*   A rounded rectangle.
        */
	public static final int	 SHAPETYPE_RECT_ROUNDED =114;

       /**
    	*   A diamond shape.
        */
	public static final int	 SHAPETYPE_RECT_DIAMOND =115;

       /**
    	*   A arc shape.
        */
	public static final int	 SHAPETYPE_ARC 		=130;
       /**
    	*   A arc shape.
        */
	public static final int	 SHAPETYPE_CHORD	=131;
       /**
    	*   A arc shape.
        */
	public static final int	 SHAPETYPE_PIE 		=132;

       /**
    	*   An ellipse shape.
        */
	public static final int	 SHAPETYPE_ELLIPSE	=150;

       /**
    	*   An isosceles triangle shape.
        */
	public static final int	 SHAPETYPE_ISOSCELESTRIANGLE	=170;
       
       /**
    	*   An hexagon shape.
        */
	public static final int	 SHAPETYPE_HEXAGON	=175;

       /**
    	*   An arbitrary polygon shape.
        */
	public static final int	 SHAPETYPE_POLYGON	=180;


       /**
    	*   A table cell shape.
        */
	public static final int	 SHAPETYPE_TABLECELL	=200;

       /**
    	*   A table shape.
        */
	public static final int	 SHAPETYPE_TABLE	=201;


       /**
    	*   A text shape. Actually a text object is not a shape, it's only an abstractObject instance.
        */
	public static final int	 SHAPETYPE_TEXT		=300;

       /**
    	*   A image shape.
        */
	public static final int	 SHAPETYPE_IMAGE	=350;

       /**
    	*   A group shape.
        */
	public static final int	 SHAPETYPE_GROUP	=360;


       //***************************************************
       //      Decorate type
       //***************************************************

       /**
    	*   An arrow format type.
        */
	public static final int	 DECORATETYPE_ARROW	=500;

       /**
    	*   A Line format type.
        */
	public static final int	 DECORATETYPE_LINEFORMAT=505;

       /**
    	*   A fill format type.
        */
	public static final int	 DECORATETYPE_FILLFORMAT=510;

       /**
    	*   A font format type.
        */
	public static final int	 DECORATETYPE_FONTFORMAT=520;

       /**
    	*   A page format type.
        */
	public static final int	 DECORATETYPE_PAGEFORMAT=530;

       /**
    	*   A canvas format type.
        */
	public static final int	 DECORATETYPE_CANVASFORMAT=531;


       //***************************************************
       //      Object type
       //***************************************************

       /**
    	*   An object list 
        */
	public static final int	 OBJECTTYPE_OBJECTLIST	=1000;

       /**
    	*   A node list 
        */
	public static final int	 OBJECTTYPE_NODELIST	=1001;

       /**
    	*   A port list 
        */
	public static final int	 OBJECTTYPE_PORTLIST	=1002;

       /**
    	*   A property list 
        */
	public static final int	 OBJECTTYPE_PROPERTYLIST=1003;


       /**
    	*   A layer used to support muti-view of cad graphs.
        */
	public static final int	 OBJECTTYPE_LAYER	=1010;


       /**
    	*   A cad design page
        */
	public static final int	 OBJECTTYPE_PAGE	=1020;


       /**
    	*   A library element.
        */
	public static final int	 OBJECTTYPE_LIBELEM	=2000;






	/**english type of measurement */
	public static final int  MEASURE_ENGLISH	=1;
	/**metric type of measurement */
	public static final int  MEASURE_METRIC		=2;
        
	//**************************************        
        //    english measure types
	//**************************************        

	/**a measurement type of inch,in*/
	public static final int  MEASURE_TYPE_IN	=1; 
	
	/**a measurement abbreviation of inch,in*/
	public static final String  MEASURE_ABBR_IN	="in"; 

	/**a measurement full name of inch*/
	public static final String  MEASURE_NAME_IN	=com.jfimagine.jfdraw.gui.resource.CADResource.getString("label.measure.inch.name");

	/**a measurement type of foot,ft*/
	public static final int  MEASURE_TYPE_FT	=2;

	/**a measurement abbreviation of foot,ft*/
	public static final String  MEASURE_ABBR_FT	="ft"; 

	/**a measurement full name of foot*/
	public static final String  MEASURE_NAME_FT	=com.jfimagine.jfdraw.gui.resource.CADResource.getString("label.measure.foot.name");
	
	/**a measurement type of yard,yd*/
	public static final int  MEASURE_TYPE_YD	=3;

	/**a measurement abbreviation of yard,yd*/
	public static final String  MEASURE_ABBR_YD	="yd"; 

	/**a measurement full name of yard*/
	public static final String  MEASURE_NAME_YD	=com.jfimagine.jfdraw.gui.resource.CADResource.getString("label.measure.yard.name");

	/**a measurement type of mile,mi*/
	public static final int  MEASURE_TYPE_MI	=4;

	/**a measurement abbreviation of mile,mi*/
	public static final String  MEASURE_ABBR_MI	="mi"; 

	/**a measurement full name of mile*/
	public static final String  MEASURE_NAME_MI	=com.jfimagine.jfdraw.gui.resource.CADResource.getString("label.measure.mile.name");

	//**************************************        
        //    metric measure types
	//**************************************        


	/**a measurement type of millimeter,mm*/
	public static final int  MEASURE_TYPE_MM	=10;

	/**a measurement abbreviation of millimeter,mm*/
	public static final String  MEASURE_ABBR_MM	="mm"; 

	/**a measurement full name of millimeter,mm*/
	public static final String  MEASURE_NAME_MM	=com.jfimagine.jfdraw.gui.resource.CADResource.getString("label.measure.mm.name");

	/**a measurement type of centimeter,cm*/
	public static final int  MEASURE_TYPE_CM	=11;

	/**a measurement abbreviation of centimeter,mm*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -