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

📄 drawwidget.java

📁 用Java开发的、实现类似Visio功能的应用程序源码
💻 JAVA
字号:
/**
 *    $Id:DrawWidget.java $
 *
 *    Copyright 2004 ~ 2005  JingFei International Cooperation LTD. All rights reserved. *
 */
package com.jfimagine.jfdraw.gui;

import javax.swing.JPanel;
import javax.swing.JSplitPane;

import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

 
 /**
 * Draw widget class. Is widgets class for cad drawing.
 * Always placed in the left side of the main drawing frame.
 * Contains glance view and customized library controls.
 *
 * @author     CookieMaker    
 *
 * @version $Revision: 1.00 $
 */  
 public class DrawWidget extends JPanel implements ActionListener{

    	/** A split pane for glance view(on top) and  customized library controls(on bottom) */
    	private JSplitPane m_splitPane; 
    
	/** Constructor */
    	public DrawWidget() {

		super(new BorderLayout());

        	//Create a split pane with sub controls in it.
        	m_splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,new JPanel(),new JPanel());
        	m_splitPane.setOneTouchExpandable(false);
        	m_splitPane.setDividerLocation(150);
        	add(m_splitPane,BorderLayout.CENTER);
    	} 	

    	/** Process actions from menus/buttons.
    	 *  
    	 *  @param  e  An action event sent by menus/buttons.
    	 *
    	 */
    	public void actionPerformed(ActionEvent e) {
    		//do nothing here now.
    	}
 }

⌨️ 快捷键说明

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