📄 actionconst.java
字号:
/**
* $Id:ActionConst.java $
*
* Copyright 2004 ~ 2005 JingFei International Cooperation LTD. All rights reserved. *
*/
package com.jfimagine.jfdraw.action;
import java.awt.Toolkit;
import java.awt.Dimension;
/**
* Action Const class is a const definition list of any actions in gui interface.
*
* @author CookieMaker
*
* @version $Revision: 1.00 $
*/
public class ActionConst{
/** A new file command. */
public static final String CMD_FILE_NEW ="cmd.file.new";
/** An open file command. */
public static final String CMD_FILE_OPEN ="cmd.file.open";
/** An open url file command. */
public static final String CMD_FILE_OPENURL ="cmd.file.openUrl";
/** A save file command. */
public static final String CMD_FILE_SAVE ="cmd.file.save";
/** A save as file command.*/
public static final String CMD_FILE_SAVEAS ="cmd.file.saveas";
/** A save as xml file command.*/
public static final String CMD_FILE_SAVEASXML ="cmd.file.saveasxml";
/** A page setup command.*/
public static final String CMD_FILE_PAGESETUP ="cmd.file.pagesetup";
/** A print command.*/
public static final String CMD_FILE_PRINT ="cmd.file.print";
/** A print preview command.*/
public static final String CMD_FILE_PRINTPREVIEW="cmd.file.printpreview";
/** pick command, to clear any drawing/dragging command*/
public static final String CMD_GRAPH_PICK ="cmd.graph.pick";
/** draw text command.*/
public static final String CMD_GRAPH_DRAWTEXT ="cmd.graph.drawText";
/** draw line/curve commands list trigger.*/
public static final String CMD_GRAPH_DRAWLINETRIGGER ="cmd.graph.drawLineTrigger";
/** draw line command.*/
public static final String CMD_GRAPH_DRAWLINE ="cmd.graph.drawLine";
/** draw regular line command.*/
public static final String CMD_GRAPH_DRAWREGULARLINE ="cmd.graph.drawRegularLine";
/** draw label line command.*/
public static final String CMD_GRAPH_DRAWLABELLINE ="cmd.graph.drawLabelLine";
/** draw horizontal label line command.*/
public static final String CMD_GRAPH_DRAWHLABELLINE ="cmd.graph.drawHLabelLine";
/** draw vertical label line command.*/
public static final String CMD_GRAPH_DRAWVLABELLINE ="cmd.graph.drawVLabelLine";
/** draw curve command.*/
public static final String CMD_GRAPH_DRAWCURVE ="cmd.graph.drawCurve";
/** draw quadrant command.*/
public static final String CMD_GRAPH_DRAWQUADRANT ="cmd.graph.drawQuadrant";
/** draw rectangle commands list trigger.*/
public static final String CMD_GRAPH_DRAWRECTTRIGGER ="cmd.graph.drawRectTrigger";
/** draw rectangle command.*/
public static final String CMD_GRAPH_DRAWRECT ="cmd.graph.drawRect";
/** draw rounded rectangle command.*/
public static final String CMD_GRAPH_DRAWRECT_ROUNDED ="cmd.graph.drawRect_Rounded";
/** draw diamond command.*/
public static final String CMD_GRAPH_DRAWRECT_DIAMOND ="cmd.graph.drawRect_Diamond";
/** draw parallelogram command.*/
public static final String CMD_GRAPH_DRAWRECT_PARALLELOGRAM ="cmd.graph.drawRect_Parallel";
/** draw trapezoid command.*/
public static final String CMD_GRAPH_DRAWRECT_TRAPEZOID ="cmd.graph.drawRect_Trapezoid";
/** draw isoceles trapezoid command.*/
public static final String CMD_GRAPH_DRAWRECT_ISOSCELESTRAPEZOID="cmd.graph.drawRect_isocelesTrapezoid";
/** draw ellipse commands list trigger.*/
public static final String CMD_GRAPH_DRAWELLIPSETRIGGER ="cmd.graph.drawEllipseTrigger";
/** draw ellipse command.*/
public static final String CMD_GRAPH_DRAWELLIPSE ="cmd.graph.drawEllipse";
/** draw arc command.*/
public static final String CMD_GRAPH_DRAWARC ="cmd.graph.drawArc";
/** draw chord command.*/
public static final String CMD_GRAPH_DRAWCHORD ="cmd.graph.drawChord";
/** draw pie command.*/
public static final String CMD_GRAPH_DRAWPIE ="cmd.graph.drawPie";
/** draw polygon commands list trigger.*/
public static final String CMD_GRAPH_DRAWPOLYGONTRIGGER ="cmd.graph.drawPolygonTrigger";
/** draw isosceles triangle command.*/
public static final String CMD_GRAPH_DRAWISOSCELESTRIANGLE ="cmd.graph.drawIsoscelesTriangle";
/** draw hexagon command.*/
public static final String CMD_GRAPH_DRAWHEXAGON ="cmd.graph.drawHexagon";
/** draw arbitrary polygon command.*/
public static final String CMD_GRAPH_DRAWPOLYGON ="cmd.graph.drawPolygon";
/** draw image command.*/
public static final String CMD_GRAPH_DRAWIMAGE ="cmd.graph.drawImage";
/** draw table command.*/
public static final String CMD_GRAPH_DRAWTABLE ="cmd.graph.drawTable";
/** scale command.*/
public static final String CMD_GRAPH_SCALE ="cmd.graph.scale";
/** rotate command.*/
public static final String CMD_GRAPH_ROTATE ="cmd.graph.rotate";
/** rotate setup command.*/
public static final String CMD_GRAPH_ROTATE_SETUP ="cmd.graph.rotate.setup";
/** mirror command.*/
public static final String CMD_GRAPH_MIRROR ="cmd.graph.mirror";
/** flip command.*/
public static final String CMD_GRAPH_FLIP ="cmd.graph.flip";
/** add port command.*/
public static final String CMD_GRAPH_ADDPORT ="cmd.graph.addport";
/** remove port command.*/
public static final String CMD_GRAPH_REMOVEPORT ="cmd.graph.removeport";
/** bind ports on current cursor command.*/
public static final String CMD_GRAPH_BINDPORTS ="cmd.graph.bindports";
/** unbind ports on current cursor command.*/
public static final String CMD_GRAPH_UNBINDPORTS ="cmd.graph.unbindports";
/** change arrow head command.*/
public static final String CMD_GRAPH_ARROWHEAD ="cmd.graph.arrowhead";
/** change line format command.*/
public static final String CMD_GRAPH_LINEFORMAT ="cmd.graph.lineformat";
/** change fill format command.*/
public static final String CMD_GRAPH_FILLFORMAT ="cmd.graph.fillformat";
/** change font format command.*/
public static final String CMD_GRAPH_FONTFORMAT ="cmd.graph.fontformat";
/** change grid format command.*/
public static final String CMD_GRAPH_GRIDFORMAT ="cmd.graph.gridformat";
/** send current graphs to back command.*/
public static final String CMD_GRAPH_SENDTOBACK ="cmd.graph.sendtoback";
/** send current graphs to front command.*/
public static final String CMD_GRAPH_BRINGTOFRONT ="cmd.graph.bringtofront";
/** group current selected shapes.*/
public static final String CMD_GRAPH_GROUP ="cmd.graph.groupshape";
/** ungroup current grouped shapes to individual shapes.*/
public static final String CMD_GRAPH_UNGROUP ="cmd.graph.ungroupshape";
/** text alignment.*/
public static final String CMD_TEXTALIGNMENT_LEFT ="cmd.textalignment.left";
public static final String CMD_TEXTALIGNMENT_MIDDLE ="cmd.textalignment.middle";
public static final String CMD_TEXTALIGNMENT_RIGHT ="cmd.textalignment.right";
/** alignment.*/
public static final String CMD_GRAPH_ALIGNMENT ="cmd.view.alignment";
/** align left.*/
public static final String CMD_GRAPH_ALIGNMENT_LEFT ="cmd.view.alignment.left";
/** align right.*/
public static final String CMD_GRAPH_ALIGNMENT_RIGHT ="cmd.view.alignment.right";
/** align top.*/
public static final String CMD_GRAPH_ALIGNMENT_TOP ="cmd.view.alignment.top";
/** align bottom.*/
public static final String CMD_GRAPH_ALIGNMENT_BOTTOM ="cmd.view.alignment.bottom";
/** align center.*/
public static final String CMD_GRAPH_ALIGNMENT_CENTER ="cmd.view.alignment.center";
/** align justify horizontal.*/
public static final String CMD_GRAPH_ALIGNMENT_JUSTIFY_HORIZONTAL ="cmd.view.alignment.justify.horizontal";
/** align justify vertical.*/
public static final String CMD_GRAPH_ALIGNMENT_JUSTIFY_VERTICAL ="cmd.view.alignment.justify.vertical";
/** align horizontal proportional spacing.*/
public static final String CMD_GRAPH_ALIGNMENT_PROPORTIONAL_SPACING_HORIZONTAL ="cmd.view.alignment.proportionalspacing.horizontal";
/** align vertical proportional spacing.*/
public static final String CMD_GRAPH_ALIGNMENT_PROPORTIONAL_SPACING_VERTICAL ="cmd.view.alignment.proportionalspacing.vertical";
/** zoom in actual size.*/
public static final String CMD_GRAPH_ZOOM_ACTUALSIZE ="cmd.zoom.actualsize";
/** zoom in(scale up)graphs.*/
public static final String CMD_GRAPH_ZOOMIN ="cmd.zoom.zoomin";
/** zoom out(scale down)graphs.*/
public static final String CMD_GRAPH_ZOOMOUT ="cmd.zoom.zoomout";
/** zoom setup(customized zoom)*/
public static final String CMD_GRAPH_ZOOMSETUP ="cmd.zoom.zoomsetup";
/** layers setup*/
public static final String CMD_GRAPH_LAYERS ="cmd.graph.layers";
/** ruler setup*/
public static final String CMD_GRAPH_RULER ="cmd.graph.ruler";
/** english ruler setup*/
public static final String CMD_GRAPH_RULER_ENGLISH ="cmd.graph.ruler.english";
/** metric ruler setup*/
public static final String CMD_GRAPH_RULER_METRIC ="cmd.graph.ruler.metric";
/** libraries and templates*/
public static final String CMD_GRAPH_LIBRARY ="cmd.graph.library";
/** Quit command.*/
public static final String CMD_QUIT ="cmd.quit";
/** An select all operation command on current layer.*/
public static final String CMD_EDIT_SELECTALL ="cmd.edit.selectall";
/** An undo edit operation command.*/
public static final String CMD_EDIT_UNDO ="cmd.edit.undo";
/** A redo edit operation command.*/
public static final String CMD_EDIT_REDO ="cmd.edit.redo";
/** An undo setup operation command.*/
public static final String CMD_EDIT_UNDOSETUP ="cmd.edit.undosetup";
/** A copy operation command.*/
public static final String CMD_EDIT_COPY ="cmd.edit.copy";
/** A cut operation command.*/
public static final String CMD_EDIT_CUT ="cmd.edit.cut";
/** A paste operation command.*/
public static final String CMD_EDIT_PASTE ="cmd.edit.paste";
/** A delete operation command.*/
public static final String CMD_EDIT_DELETE ="cmd.edit.delete";
/** An add to library operation command.*/
public static final String CMD_EDIT_ADDTOLIB ="cmd.edit.addtolib";
/** An add to template operation command.*/
public static final String CMD_EDIT_ADDTOTEMPLATE ="cmd.edit.addtotemplate";
/** A window cascade command.*/
public static final String CMD_WINDOW_CASCADE ="cmd.window.cascade";
/** A window tile command.*/
public static final String CMD_WINDOW_TILE ="cmd.window.tile";
/** A window maximize command.*/
public static final String CMD_WINDOW_MAXIMIZE ="cmd.window.maximize";
/** A window minimize command.*/
public static final String CMD_WINDOW_MINIMIZE ="cmd.window.minimize";
/** Toggle window command.*/
public static final String CMD_WINDOW_TOGGLE ="cmd.window.toggle";
/** change current image.*/
public static final String CMD_SETTING_CHANGEIMAGE ="cmd.setting.changeimage";
/** change current shape's properties.*/
public static final String CMD_SETTING_SHAPEPROPERTIES ="cmd.setting.shapeproperties";
/** shape text setting command.*/
public static final String CMD_SETTING_SHAPETEXT ="cmd.setting.shapetext";
/** shape setting command.*/
public static final String CMD_SETTING_SHAPESETTING ="cmd.setting.shapesetting";
/** page setting command.*/
public static final String CMD_SETTING_PAGESETTING ="cmd.setting.pagesetting";
/** global setting command.*/
public static final String CMD_SETTING_GLOBALSETTING ="cmd.setting.globalsetting";
/** jpg exporting command.*/
public static final String CMD_EXPORTING_JPG ="cmd.exporting.jpg";
/** gif exporting command.*/
public static final String CMD_EXPORTING_GIF ="cmd.exporting.gif";
/** png exporting command.*/
public static final String CMD_EXPORTING_PNG ="cmd.exporting.png";
/** eps exporting command.*/
public static final String CMD_EXPORTING_EPS ="cmd.exporting.eps";
/** svg exporting command.*/
public static final String CMD_EXPORTING_SVG ="cmd.exporting.svg";
/** swf exporting command.*/
public static final String CMD_EXPORTING_SWF ="cmd.exporting.swf";
/** cgm exporting command.*/
public static final String CMD_EXPORTING_CGM ="cmd.exporting.cgm";
/** emf exporting command.*/
public static final String CMD_EXPORTING_EMF ="cmd.exporting.emf";
/** pdf exporting command.*/
public static final String CMD_EXPORTING_PDF ="cmd.exporting.pdf";
/** ppm exporting command.*/
public static final String CMD_EXPORTING_PPM ="cmd.exporting.ppm";
/** tiff exporting command.*/
public static final String CMD_EXPORTING_TIFF ="cmd.exporting.tiff";
/** jpg exporting command of selection.*/
public static final String CMD_EXPORTING_JPG_SELECTION ="cmd.exporting.jpg.selection";
/** gif exporting command of selection.*/
public static final String CMD_EXPORTING_GIF_SELECTION ="cmd.exporting.gif.selection";
/** png exporting command of selection.*/
public static final String CMD_EXPORTING_PNG_SELECTION ="cmd.exporting.png.selection";
/** eps exporting command of selection.*/
public static final String CMD_EXPORTING_EPS_SELECTION ="cmd.exporting.eps.selection";
/** svg exporting command of selection.*/
public static final String CMD_EXPORTING_SVG_SELECTION ="cmd.exporting.svg.selection";
/** swf exporting command of selection.*/
public static final String CMD_EXPORTING_SWF_SELECTION ="cmd.exporting.swf.selection";
/** cgm exporting command of selection.*/
public static final String CMD_EXPORTING_CGM_SELECTION ="cmd.exporting.cgm.selection";
/** emf exporting command of selection.*/
public static final String CMD_EXPORTING_EMF_SELECTION ="cmd.exporting.emf.selection";
/** pdf exporting command of selection.*/
public static final String CMD_EXPORTING_PDF_SELECTION ="cmd.exporting.pdf.selection";
/** ppm exporting command of selection.*/
public static final String CMD_EXPORTING_PPM_SELECTION ="cmd.exporting.ppm.selection";
/** tiff exporting command of selection.*/
public static final String CMD_EXPORTING_TIFF_SELECTION ="cmd.exporting.tiff.selection";
/** an about help menu.*/
public static final String CMD_HELP_ABOUT ="cmd.help.about";
/** an visit web site menu.*/
public static final String CMD_HELP_WEBSITE ="cmd.help.website";
/** an mailto menu.*/
public static final String CMD_HELP_MAILTO ="cmd.help.mailto";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -