📄 drawwidget.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 + -