亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? svgtoolframe.java

?? 完全基于java開發的svg矢量繪圖工具
?? JAVA
字號:
/* * Created on 1 déc. 2004   =============================================                   GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 =============================================GLIPS Graffiti Editor, a SVG EditorCopyright (C) 2003 Jordi SUC, Philippe Gil, SARL ITRISThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USAContact : jordi.suc@itris.fr; philippe.gil@itris.fr ============================================= */package fr.itris.glips.svgeditor.menutool;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.event.*;import fr.itris.glips.svgeditor.*;import fr.itris.glips.svgeditor.resources.*;/** * @author Jordi SUC * * the class allowing to display a frame containing the components  * used for modifying the svg elements */public class SVGToolFrame{    /**     * the editor     */    private SVGEditor editor;    	/**	 * the font	 */	public final Font theFont=new Font("theFont", Font.ROMAN_BASELINE, 10);        /**     * the panel containing the widgets that will be displayed     */    protected JPanel toolPanel=new JPanel();        /**     * the frame into which the content of the tool frame will be displayed     */    private JInternalFrame internalFrame=new JInternalFrame();        /**     * the toggle button used to show or hide the frame, and that will be found in the tool bar     */    private JToggleButton frameButton=new JToggleButton();        /**     * the menu item used to handle the visibility of the frame     */    private JMenuItem frameMenuItem=new JMenuItem();        /**     * whether the frame has already been shown     */    private boolean hasBeenShown=false;        /**     * the runnable that should be executed when the visibility of the frame changes     */    private Runnable visibilityChangedRunnable=null;    	/**	 * the id	 */	private String id="";        /**     * the labels     */    private String showFrameLabel="", hideFrameLabel="";        /**     * the constructor of the class     *@param editor the editor     *@param id the id of a module     *@param label the label that will be displayed in the title     *@param toolPanel the panel that will be displayed     */    public SVGToolFrame(final SVGEditor editor, String id, String label, final JPanel toolPanel){                this.editor=editor;        this.toolPanel=toolPanel;        this.id=id;    	        //building the dialog//        //setting the properties for the dialog    	internalFrame.setFrameIcon(null);    	internalFrame.setResizable(true);    	internalFrame.setClosable(true);    	internalFrame.setMaximizable(false);    	internalFrame.setIconifiable(false);    	internalFrame.setTitle(label);    	toolPanel.setVisible(true);		    	JScrollPane scrollpane=new JScrollPane(toolPanel);    	internalFrame.getContentPane().setLayout(new BoxLayout(internalFrame.getContentPane(), BoxLayout.X_AXIS));    	internalFrame.getContentPane().add(scrollpane);		//adds a listener to the resizement of the desktop		editor.getDesktop().addComponentListener(new ComponentAdapter(){			@Override            public void componentResized(ComponentEvent evt) {                Rectangle dialogBounds=internalFrame.getBounds();                Dimension parentSize=SVGToolFrame.this.editor.getDesktop().getSize();                                if(dialogBounds.x+dialogBounds.width>parentSize.width){                                        dialogBounds.x=parentSize.width-dialogBounds.width;                }                                if(dialogBounds.y+dialogBounds.height>parentSize.height){                                        dialogBounds.y=parentSize.height-dialogBounds.height;                }                                if(dialogBounds.x<0){                	                	dialogBounds.x=0;                }                                if(dialogBounds.y<0){                	                	dialogBounds.y=0;                }                                internalFrame.setBounds(dialogBounds);            }		});				//adds the dialog to the desktop		editor.getDesktop().add(internalFrame);		        //setting its z-index on the desktop         ((JDesktopPane)editor.getDesktop()).setLayer(internalFrame, 2, 2);                //getting the labels        if(SVGEditor.getBundle()!=null){        	        	try{        		showFrameLabel=SVGEditor.getBundle().getString("label_hidden_"+id.toLowerCase());        		hideFrameLabel=SVGEditor.getBundle().getString("label_shown_"+id.toLowerCase());        	}catch (Exception ex){ex.printStackTrace();}        }                //getting the icon for this tool frame        ImageIcon toolFrameIcon=SVGResource.getIcon(id+"Window", false);                //handling the menuitem and the toggle button used to show or hide this frame        frameButton.setIcon(toolFrameIcon);        frameButton.setToolTipText(showFrameLabel);        frameMenuItem.setText(showFrameLabel);                //the runnable used to place the frame        final Runnable runnable=new Runnable(){        	        	public void run() {    			//getting the location of the toggle button    			Point location=SwingUtilities.convertPoint(frameButton.getParent(), frameButton.getLocation(),     																			editor.getDesktop());    			    			internalFrame.setLocation(location.x, 0);    			hasBeenShown=true;        	}        };                //adding the listener to the frame button        frameButton.addActionListener(new ActionListener(){        	        	public void actionPerformed(ActionEvent evt) {        		if(frameButton.isSelected()){        			        			frameMenuItem.setText(hideFrameLabel);        	        frameButton.setToolTipText(hideFrameLabel);        			        		}else{        			        			frameMenuItem.setText(showFrameLabel);        	        frameButton.setToolTipText(showFrameLabel);        		}        		        		internalFrame.setVisible(frameButton.isSelected());        		        		if(visibilityChangedRunnable!=null){        			        			visibilityChangedRunnable.run();        		}        		internalFrame.pack();        		if(! hasBeenShown){        			        			runnable.run();        		}        	}        });                //the listener to the menu item        frameMenuItem.addActionListener(new ActionListener(){        	        	public void actionPerformed(ActionEvent evt) {        		frameButton.doClick();        	}        });                //setting the listener to the close event        internalFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);        internalFrame.addInternalFrameListener(new InternalFrameAdapter(){        	        	@Override        	public void internalFrameClosing(InternalFrameEvent evt) {        		frameButton.doClick();        	}        });    }    /**	 * @return Returns the id.	 */	public String getId() {		return id;	}	/**     * @return whether this tool frame is visible     */    public boolean isVisible(){    	    	return internalFrame.isVisible();    }        /**     * sets whether the frame should be visible or not     * @param visible     */    public void setVisible(boolean visible){    	    	internalFrame.setVisible(visible);    }	/**	 * @return the tool bar button	 */	public JToggleButton getToolBarButton() {		return frameButton;	}	/**	 * @return the menu item t	 */	public JMenuItem getMenuItem() {		return frameMenuItem;	}	/**	 * @return Returns the editor.	 */	public SVGEditor getSVGEditor() {		return editor;	}		/**	 * revalidates the tool frame	 */	public void revalidate(){				internalFrame.pack();	}	/**	 * @param visibilityChangedRunnable The visibilityChangedRunnable to set.	 */	public void setVisibilityChangedRunnable(Runnable visibilityChangedRunnable) {				this.visibilityChangedRunnable=visibilityChangedRunnable;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91官网在线免费观看| 精品国产乱码久久久久久老虎| 欧美精品久久99| 国产午夜亚洲精品不卡| 天天影视涩香欲综合网| 91色|porny| 中文字幕+乱码+中文字幕一区| 日韩中文字幕区一区有砖一区| 9i看片成人免费高清| 久久久久亚洲蜜桃| 久久精品72免费观看| 欧美精品久久一区二区三区| 亚洲精品高清视频在线观看| 成人午夜短视频| 精品美女被调教视频大全网站| 亚洲成人av中文| 色琪琪一区二区三区亚洲区| 中文字幕电影一区| 国产馆精品极品| 国产日产欧美一区| 国产自产视频一区二区三区| 91精品欧美福利在线观看| 一区二区三区四区视频精品免费 | 亚洲成在人线在线播放| 成人va在线观看| 亚洲国产精品99久久久久久久久| 精品制服美女丁香| 精品精品欲导航| 国产主播一区二区三区| 日韩欧美在线不卡| 麻豆一区二区三| www日韩大片| 精品伊人久久久久7777人| 91精品国产乱码久久蜜臀| 日本aⅴ精品一区二区三区| 欧美高清视频一二三区 | 中日韩av电影| 成人免费毛片片v| 国产精品久久久久三级| 国产精品18久久久久| 欧美国产一区视频在线观看| 成人免费视频国产在线观看| 1区2区3区精品视频| 99re这里都是精品| 一区二区三区在线不卡| 欧美精品久久久久久久久老牛影院 | 波多野结衣中文字幕一区| 国产精品久久久久天堂| 色综合视频一区二区三区高清| 亚洲激情自拍视频| 欧美二区在线观看| 麻豆精品新av中文字幕| 国产女人18水真多18精品一级做 | 久久精品99国产精品日本| 精品999在线播放| 丁香网亚洲国际| 日韩美女视频一区| 欧美日韩国产首页在线观看| 久久99久国产精品黄毛片色诱| 国产亚洲一二三区| 91极品美女在线| 久久99国产精品尤物| 国产精品久久久久一区| 欧美理论在线播放| 国产盗摄一区二区| 亚洲成人动漫av| 国产欧美中文在线| 欧美男同性恋视频网站| 懂色av一区二区三区免费观看| 一区二区三区欧美日| 久久夜色精品一区| 欧美少妇性性性| 国产凹凸在线观看一区二区| 亚洲成人综合网站| 国产婷婷精品av在线| 欧美日韩国产不卡| 成人免费av资源| 久久精品国产999大香线蕉| 国产精品水嫩水嫩| 在线不卡免费av| 99国产精品久久久久久久久久| 奇米一区二区三区av| 中文字幕一区二区视频| 欧美不卡在线视频| 91激情五月电影| 成人免费视频一区二区| 久久99热99| 日韩高清一级片| 亚洲女人小视频在线观看| 精品久久久久久久人人人人传媒| 欧美午夜影院一区| 99热99精品| 国产成人综合网站| 久久91精品久久久久久秒播| 婷婷成人激情在线网| 亚洲人成网站精品片在线观看| 久久色视频免费观看| 日韩欧美不卡一区| 欧美日本精品一区二区三区| 在线免费av一区| 一本一道久久a久久精品| 国产精品 日产精品 欧美精品| 久久精品国产一区二区三| 午夜欧美大尺度福利影院在线看| 一区二区三区日韩在线观看| 亚洲欧美偷拍三级| 国产精品国产成人国产三级| 欧美激情一区二区三区| 国产视频911| 国产亚洲成年网址在线观看| 国产香蕉久久精品综合网| 337p粉嫩大胆噜噜噜噜噜91av| 欧美电影免费提供在线观看| 日韩一区二区三区三四区视频在线观看| 欧美综合色免费| 欧洲国内综合视频| 欧美视频一区二区三区四区| 欧美日韩一区三区| 欧美精品在欧美一区二区少妇| 欧美久久一区二区| 欧美一区二区精品在线| 日韩一区二区影院| 精品国产3级a| 国产欧美一区二区三区在线看蜜臀 | 豆国产96在线|亚洲| 粉嫩在线一区二区三区视频| eeuss鲁片一区二区三区| 91麻豆swag| 欧美日本一道本| 久久影院视频免费| 国产精品午夜在线| 亚洲欧美经典视频| 亚洲大片在线观看| 九九国产精品视频| 国产成人免费视频一区| 91亚洲精品乱码久久久久久蜜桃| 欧美在线免费播放| 欧美猛男超大videosgay| 欧美一级搡bbbb搡bbbb| 久久精品夜色噜噜亚洲a∨| 中文字幕在线一区免费| 亚洲国产中文字幕在线视频综合 | 成人免费看的视频| 在线国产亚洲欧美| 日韩一二三区视频| 国产精品午夜免费| 亚洲福利一区二区三区| 久久er精品视频| 91社区在线播放| 日韩一区二区三区在线视频| 中文字幕第一区第二区| 亚洲综合清纯丝袜自拍| 九九久久精品视频| 在线亚洲精品福利网址导航| 日韩午夜av电影| 亚洲人午夜精品天堂一二香蕉| 日韩中文字幕亚洲一区二区va在线| 国产suv一区二区三区88区| 在线日韩国产精品| 久久综合九色综合97婷婷女人 | 91精品中文字幕一区二区三区| 久久久久久久久久久99999| 一区二区三区国产豹纹内裤在线| 狠狠色狠狠色合久久伊人| 在线精品视频一区二区三四| 久久久综合激的五月天| 性做久久久久久| 99在线精品免费| 日韩欧美国产小视频| 亚洲一区二区三区自拍| 国产99久久久精品| 日韩精品一区二区三区视频播放| 亚洲综合激情小说| 成人h动漫精品一区二区| 日韩写真欧美这视频| 一区二区三区四区在线免费观看| 丰满亚洲少妇av| 精品国产一区久久| 亚洲大片一区二区三区| 99re成人在线| 国产精品护士白丝一区av| 久久www免费人成看片高清| 欧美精品xxxxbbbb| 亚洲欧美日韩电影| 99久久99久久精品免费看蜜桃| 精品国产在天天线2019| 日韩av一二三| 在线观看免费视频综合| 亚洲久草在线视频| av在线播放一区二区三区| 亚洲国产精品成人综合色在线婷婷| 久久精品二区亚洲w码| 欧美一级免费大片| 免费在线欧美视频| 欧美精品视频www在线观看 | 国产美女视频一区| 亚洲精品在线电影| 久久激情综合网| 精品国产91久久久久久久妲己| 久久99这里只有精品|