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

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

?? shapesettingdialog.java

?? 用Java開發的、實現類似Visio功能的應用程序源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/**
 *    $Id:ShapeSettingDialog.java $
 *
 *    Copyright 2004 ~ 2005  JingFei International Cooperation LTD. All rights reserved. *
 */
package com.jfimagine.jfdraw.gui.dialog;
 

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Container;
import java.awt.Color;

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

import java.util.Iterator;
import java.util.List;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.BorderFactory;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JOptionPane;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JCheckBox;
import javax.swing.ImageIcon;
import javax.swing.ListCellRenderer;
import javax.swing.JList;
import javax.swing.JColorChooser;
import javax.swing.JComboBox;

import com.jfimagine.jfgraph.shape.base.AbstractShape;
import com.jfimagine.jfdraw.gui.ToolFactory;
import com.jfimagine.jfdraw.gui.resource.CADResource;
import com.jfimagine.jfdraw.gui.GUIConst;


 /**
 * ShapeSettingDialog class.  A class is used to set the properties of a shape.
 *
 * @author     CookieMaker    
 *
 * @version $Revision: 1.1.1 $
 */  
public class ShapeSettingDialog extends JDialog
                        implements ActionListener {

    public static String[] transparencyAry; 
    static{
    	transparencyAry	=new String[101];
    	for (int i=0; i<=100; i++){
    		transparencyAry[i]   =""+i;	
    	}
    }


    private static ShapeSettingDialog m_dialog;
    private static List m_list;
    
    private JCheckBox disableScalingCheck;
    private JCheckBox disableModifyingPropertiesCheck;
    private JCheckBox disableMotionCheck;
    private JCheckBox hideShapeCheck;
    private JComboBox transparencyList;
    
    private static boolean m_modified	=false;
                           
    /**
     * Open an shape setting modifier window, to modify the line format.
     *
     * @param modalFrame  Determines which frame the dialog depends on; it should be
     * a component in the dialog's controlling frame. 
     *
     * @param list A shape list to be modified
     * @return True if modified shape, false otherwise.
     */
    public static boolean newShapeSetting(Frame modalFrame,List list) {
    	return newShapeSetting(modalFrame,null,list);
    }    

    /**
     * Open an shape setting modifier window, to modify the line format.
     *
     * @param modalFrame  Determines which frame the dialog depends on; it should be
     * a component in the dialog's controlling frame. 
     *
     * @param refComp  This should be null if you want the dialog
     * to come up with its left corner in the center of the screen;
     * otherwise, it should be the component on top of which the
     * dialog should appear.
     *
     * @param list A shape list to be modified
     *
     * @return True if modified shape, false otherwise.
     */
    public static boolean newShapeSetting(Frame modalFrame,Component refComp,List list) {
    	return showDialog(modalFrame,refComp,list);
    }    


    /**
     * Set up and show the dialog.  The first Component argument
     * determines which frame the dialog depends on; it should be
     * a component in the dialog's controlling frame. The second
     * Component argument should be null if you want the dialog
     * to come up with its left corner in the center of the screen;
     * otherwise, it should be the component on top of which the
     * dialog should appear.
     */
    private static boolean showDialog(Component frameComp,
                                    Component locationComp,
                                    List list) {
        Frame frame = JOptionPane.getFrameForComponent(frameComp);
        m_dialog = new ShapeSettingDialog(frame,
                                locationComp,
                                CADResource.getString("dialog.shapesetting"),
                                list);
	m_modified  =false;                                
        m_dialog.setVisible(true);
        return m_modified;
    }


    //--------------hide shape-------------------------------------

    //get if hide shape of objects in the list    
    private boolean getInvisible(){
    	return getInvisible(m_list);
    }

    //get hide shape of objects in the list    
    public static boolean getInvisible(List l){
    	return getInvisible(l,false);
    }

    /**
     *   get hide shape of objects in the list    
     *   @param ifOneInvisible True to check if any shape is invisible, False to check if all shape is invisible.
     */
    public static boolean getInvisible(List l,boolean ifOneInvisible){
    	if (l==null || l.size()==0)
    		return false;
    	
    	Iterator it	=l.iterator();
    	while (it!=null && it.hasNext()){
    		AbstractShape	shape   =(AbstractShape)it.next();
    		if (ifOneInvisible){
    			if (shape.isInvisible())
    				return true;	
    		}else if (!shape.isInvisible()){
    			return false;
    		}
    	}
    	if (ifOneInvisible)
    		return false;
    	else
    		return true;
    }
    
    //set hide shape of objects in the list    
    private void setInvisible(boolean invisible){
    	if (m_list==null || m_list.size()==0)
    		return;
    	
    	Iterator it	=m_list.iterator();
    	while (it!=null && it.hasNext()){
    		AbstractShape	shape   =(AbstractShape)it.next();
    		shape.setInvisible(invisible);
    	}
    }


    //--------------disable scaling-------------------------------------

    //get disable scaling of objects in the list    
    private boolean getDisableScaling(){
    	return getDisableScaling(m_list);
    }

    //get disable scaling of objects in the list    
    public static boolean getDisableScaling(List l){
    	return getDisableScaling(l,false);
    }

    /**
     *   get disable scaling of objects in the list    
     *   @param ifOneDisabled True to check if any shape is disabled scaling, False to check if all shape is disabled scaling.
     */
    public static boolean getDisableScaling(List l,boolean ifOneDisabled){
    	if (l==null || l.size()==0)
    		return false;
    	
    	Iterator it	=l.iterator();
    	while (it!=null && it.hasNext()){
    		AbstractShape	shape   =(AbstractShape)it.next();
    		if (ifOneDisabled){
    			if (shape.isDisableScaling())
    				return true;	
    		}else if (!shape.isDisableScaling()){
    			return false;
    		}
    	}
    	if (ifOneDisabled)
    		return false;
    	else
    		return true;
    }
    
    //set disable scaling of objects in the list    
    private void setDisableScaling(boolean disable){
    	if (m_list==null || m_list.size()==0)
    		return;
    	
    	Iterator it	=m_list.iterator();
    	while (it!=null && it.hasNext()){
    		AbstractShape	shape   =(AbstractShape)it.next();
    		shape.setDisableScaling(disable);
    	}
    }

    //--------------disable modifying properties-------------------------------------

    //get disable modifying properties of objects in the list    
    private boolean getDisableModifyingProperties(){
    	return getDisableModifyingProperties(m_list);
    }

    //get disable modifying properties of objects in the list    
    public static boolean getDisableModifyingProperties(List l){
    	return getDisableModifyingProperties(l,false);
    }

    /**
     *   get disable modifying properties of objects in the list    
     *   @param ifOneDisabled True to check if any shape is disabled modifying properties, False to check if all shape is disabled modifying properties.
     */
    public static boolean getDisableModifyingProperties(List l,boolean ifOneDisabled){
    	if (l==null || l.size()==0)
    		return false;
    	
    	Iterator it	=l.iterator();
    	while (it!=null && it.hasNext()){
    		AbstractShape	shape   =(AbstractShape)it.next();
    		if (ifOneDisabled){
    			if (shape.isDisableModifyingProperties())
    				return true;	
    		}else if (!shape.isDisableModifyingProperties()){

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品乱人伦小说| 成人午夜免费av| 欧美一区二区精品在线| 男女激情视频一区| 精品国产免费人成在线观看| 国产麻豆精品theporn| 国产精品国产三级国产普通话蜜臀 | 一区二区三区四区在线播放| 91论坛在线播放| 亚洲妇女屁股眼交7| 日韩欧美一区二区视频| 成人免费视频app| 亚洲精品乱码久久久久久黑人| 欧美日韩不卡视频| 久久精品久久综合| 中文字幕亚洲成人| 欧美日本一区二区| 国产一区二区不卡在线| 亚洲男人电影天堂| 日韩欧美美女一区二区三区| www.66久久| 日本三级亚洲精品| 国产精品久久久久久久久免费丝袜| 在线观看一区二区精品视频| 精品一区二区三区免费观看 | 亚洲国产高清在线观看视频| 欧美在线高清视频| 国产又粗又猛又爽又黄91精品| 国产欧美日韩视频一区二区 | 日韩久久免费av| 国产成人免费在线视频| 亚洲第一成年网| 国产日产欧美一区| 欧美日韩精品欧美日韩精品一| 久久99日本精品| 亚洲一区二区三区四区在线 | 久久精品国产99| 亚洲综合清纯丝袜自拍| 久久亚洲综合av| 日韩欧美的一区| 91麻豆免费在线观看| 激情六月婷婷综合| 亚洲一级片在线观看| 欧美国产精品v| 日韩免费电影一区| 精品视频一区 二区 三区| 成人免费视频一区二区| 日本伊人午夜精品| 一二三区精品视频| 国产精品国产三级国产aⅴ原创| 日韩欧美的一区| 欧美群妇大交群中文字幕| 91视频在线看| 国产成人在线色| 精品一区二区三区的国产在线播放| 亚洲自拍与偷拍| 亚洲免费观看高清完整版在线观看熊 | 老汉av免费一区二区三区| 亚洲精品成人a在线观看| 亚洲国产精品精华液ab| 337p日本欧洲亚洲大胆色噜噜| 欧美日韩在线观看一区二区| 成人午夜碰碰视频| 国产福利一区在线| 国产麻豆一精品一av一免费| 九九在线精品视频| 久热成人在线视频| 免费精品视频在线| 香蕉成人伊视频在线观看| 亚洲一区二区欧美激情| 一区二区三区精品在线| 亚洲欧美日韩电影| 亚洲自拍偷拍图区| 亚洲综合无码一区二区| 一区二区成人在线| 亚洲一卡二卡三卡四卡五卡| 亚洲国产精品一区二区www在线 | 欧美伊人精品成人久久综合97| 99re成人在线| 一本到高清视频免费精品| 色婷婷久久久综合中文字幕| 在线精品视频一区二区三四| 91女厕偷拍女厕偷拍高清| 色欧美88888久久久久久影院| 色av成人天堂桃色av| 色综合天天综合网天天看片| 欧美午夜免费电影| 欧美一区二区性放荡片| 精品国产91九色蝌蚪| 亚洲精品在线观| 国产精品久久久久久久裸模| 亚洲日本丝袜连裤袜办公室| 亚洲嫩草精品久久| 日韩中文欧美在线| 国产精品一二二区| 欧美电影在线免费观看| 欧美一级黄色录像| 国产肉丝袜一区二区| 亚洲色大成网站www久久九九| 亚洲r级在线视频| 激情六月婷婷久久| av激情综合网| 欧美日产国产精品| 久久久99精品久久| 亚洲一区二区三区美女| 久久国产精品第一页| 不卡一二三区首页| 欧美乱妇20p| 国产精品私人自拍| 亚洲国产欧美另类丝袜| 狠狠色伊人亚洲综合成人| av在线免费不卡| 91麻豆精品国产自产在线 | 在线观看欧美精品| 欧美电影免费观看完整版| 国产精品久久久久久久久图文区 | 色素色在线综合| 日韩欧美国产一二三区| 亚洲天堂精品在线观看| 麻豆中文一区二区| 色综合久久中文综合久久97| 日韩免费高清视频| 亚洲夂夂婷婷色拍ww47| 国产成人丝袜美腿| 欧美日韩卡一卡二| 国产女同性恋一区二区| 蜜臀av在线播放一区二区三区 | 亚洲午夜视频在线观看| 国产精品2024| 欧美一区二区三区性视频| 久久国产婷婷国产香蕉| 97久久人人超碰| 精品久久久久99| 日韩av在线免费观看不卡| 91亚洲精品乱码久久久久久蜜桃 | 成人黄页在线观看| 精品成人一区二区三区四区| 亚洲sss视频在线视频| 色综合天天综合| 欧美国产亚洲另类动漫| 黄色小说综合网站| 日韩精品最新网址| 丝袜亚洲另类欧美| 欧美在线免费视屏| 亚洲精品亚洲人成人网在线播放| 国产精品66部| 久久蜜臀精品av| 久久精品国产精品亚洲综合| 91超碰这里只有精品国产| 亚洲精品日韩综合观看成人91| 成人一级视频在线观看| 久久欧美中文字幕| 久久精品久久99精品久久| 欧美精品精品一区| 亚洲国产日韩综合久久精品| 91丨九色丨尤物| 成人欧美一区二区三区在线播放| 国产成人亚洲综合色影视| 欧美成人精品3d动漫h| 视频一区二区国产| 欧美丰满少妇xxxbbb| 午夜不卡在线视频| 欧美日韩一区二区三区视频| 一二三区精品视频| 欧美三级韩国三级日本三斤| 一区二区三区.www| 欧美亚洲另类激情小说| 亚洲精品国产无套在线观| 色综合久久综合中文综合网| 一区二区三区欧美激情| 欧美亚洲国产一区二区三区 | 欧美综合在线视频| 亚洲国产精品影院| 欧美福利电影网| 美女网站在线免费欧美精品| 精品国产免费一区二区三区香蕉| 激情久久五月天| 国产精品毛片久久久久久| a美女胸又www黄视频久久| 亚洲永久免费视频| 欧美一区二区三区免费在线看| 免费av成人在线| 国产午夜一区二区三区| av电影在线观看完整版一区二区| 亚洲免费观看高清完整版在线| 欧美日韩一区二区欧美激情| 美女免费视频一区二区| 国产日韩精品一区二区三区 | 99这里只有精品| 亚洲国产一二三| 亚洲精品一区二区三区蜜桃下载 | 国产一区二区三区最好精华液| 国产网站一区二区三区| 91丨九色丨尤物| 免费在线观看日韩欧美| 亚洲国产高清不卡| 欧美日韩国产乱码电影| 国产传媒日韩欧美成人| 一区二区三区欧美久久| 欧美精品一区二区三|