亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91亚洲国产成人精品一区二区三| 不卡av电影在线播放| 懂色一区二区三区免费观看| 精品国产一区二区精华| 午夜伊人狠狠久久| 7777精品伊人久久久大香线蕉| 伊人夜夜躁av伊人久久| 欧美日韩免费不卡视频一区二区三区 | 国产精品妹子av| 不卡欧美aaaaa| 99久久国产综合精品色伊| 日韩影院在线观看| 久久亚洲春色中文字幕久久久| 成人av资源下载| 91视频免费观看| 一本色道a无线码一区v| 五月激情综合色| 欧美激情在线看| 欧美精品自拍偷拍| www.综合网.com| 美女性感视频久久| 中文字幕在线不卡一区二区三区| 色伊人久久综合中文字幕| 91视频在线看| 56国语精品自产拍在线观看| 欧美哺乳videos| 欧美日韩久久一区| 日韩你懂的电影在线观看| 91亚洲永久精品| 欧美色倩网站大全免费| 国产激情一区二区三区四区| 亚洲桃色在线一区| 久久久久久久久一| 欧美日韩国产系列| 国产亚洲欧洲997久久综合| 欧美高清hd18日本| 久久久久国产精品人| 亚洲精品一二三| 美女视频第一区二区三区免费观看网站| 国产一区二区三区四区五区美女| 亚洲精品高清在线观看| 日韩精品一级中文字幕精品视频免费观看| 美女尤物国产一区| 91精品办公室少妇高潮对白| 成人国产精品免费观看| 91.com在线观看| 国产精品素人视频| 全国精品久久少妇| 日韩av一区二区在线影视| 五月天视频一区| 不卡一区二区在线| 精品国产一区二区精华| 亚洲一区国产视频| 亚洲一区视频在线| 成人午夜精品一区二区三区| 国产成人午夜精品影院观看视频 | 88在线观看91蜜桃国自产| 国产清纯白嫩初高生在线观看91| 欧美一级片免费看| 欧美变态凌虐bdsm| 婷婷中文字幕一区三区| 99r国产精品| 国产精品美女视频| 国内精品免费**视频| 国产成人综合视频| 精品国产麻豆免费人成网站| 亚洲综合色丁香婷婷六月图片| 丁香婷婷综合色啪| 国产日本欧洲亚洲| 精品一区二区三区蜜桃| 国产精品18久久久| 久久影院视频免费| 久久激情五月激情| 成人国产精品视频| 国产精品青草久久| 成人午夜在线免费| 国产亚洲人成网站| 国产成人av电影在线| 国产偷国产偷精品高清尤物| 久久99精品久久久久久国产越南| 日韩网站在线看片你懂的| 国产三区在线成人av| 国产裸体歌舞团一区二区| 久久久精品蜜桃| 国产精华液一区二区三区| 中文字幕 久热精品 视频在线| 国产一区二区三区精品欧美日韩一区二区三区 | 99精品在线免费| 亚洲日本在线看| 日本二三区不卡| 日韩精品国产精品| 精品久久久久久久一区二区蜜臀| 国产精品一区二区你懂的| 91视频观看免费| 亚洲国产精品一区二区尤物区| 国产麻豆日韩欧美久久| 国产精品午夜免费| 欧美四级电影网| 久久久国产一区二区三区四区小说 | 日韩欧美一级在线播放| 黄网站免费久久| 国产精品国产馆在线真实露脸| 日韩精品色哟哟| 精品福利在线导航| 99精品视频在线免费观看| 亚洲第一成人在线| 精品日韩99亚洲| av电影一区二区| 免费观看久久久4p| 精品久久久久一区二区国产| 不卡的av中国片| 日本v片在线高清不卡在线观看| 欧美精品一区二区三区很污很色的 | 日韩av不卡一区二区| 久久婷婷综合激情| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 日韩二区三区在线观看| 亚洲国产精品高清| 欧美一区二区三区影视| 99热精品一区二区| 国内精品自线一区二区三区视频| 亚洲欧洲精品一区二区精品久久久 | 欧美一级日韩不卡播放免费| av日韩在线网站| 国产一区二区三区av电影| 亚洲一区二区中文在线| 国产精品卡一卡二| 精品国产乱码久久久久久夜甘婷婷| 91香蕉视频mp4| 懂色av一区二区三区免费观看 | 91蜜桃婷婷狠狠久久综合9色| 免费高清成人在线| 午夜国产精品一区| 亚洲欧美日韩国产另类专区| 成人免费视频视频| 久久电影网站中文字幕| 亚洲综合自拍偷拍| 在线观看日产精品| 婷婷久久综合九色国产成人 | 91免费精品国自产拍在线不卡| 麻豆视频一区二区| 婷婷开心激情综合| 亚洲国产精品久久久久婷婷884 | 欧美影院一区二区| 日本乱码高清不卡字幕| 成人sese在线| 99re这里只有精品视频首页| 国产在线视频不卡二| 国产一区二区伦理| 国产在线日韩欧美| 国产精品一区二区在线观看网站| 久久99精品久久久久婷婷| 裸体一区二区三区| 精品综合久久久久久8888| 麻豆91在线播放免费| 青青草成人在线观看| 理论片日本一区| 激情综合五月婷婷| 国产东北露脸精品视频| 国产不卡免费视频| www.视频一区| 色久优优欧美色久优优| 欧洲av一区二区嗯嗯嗯啊| 欧美日韩你懂的| 精品精品欲导航| 日本一区二区三区国色天香| 亚洲国产精品t66y| 亚洲欧美激情小说另类| 亚洲成人免费看| 精品无人码麻豆乱码1区2区 | xnxx国产精品| 国产欧美视频在线观看| 亚洲欧美影音先锋| 亚洲成人免费视| 国产精品伊人色| 99精品在线观看视频| 欧美日韩不卡视频| 精品久久久久久久久久久久久久久久久| 久久久电影一区二区三区| 亚洲蜜臀av乱码久久精品蜜桃| 午夜久久电影网| 国产一区二区三区国产| 色天使久久综合网天天| 91精品午夜视频| 国产精品亲子伦对白| 亚洲aⅴ怡春院| 国产成人av一区二区三区在线观看| 成人精品gif动图一区| 一本到不卡免费一区二区| 欧美一级黄色录像| 国产精品电影一区二区三区| 青青草伊人久久| 色综合天天综合网天天看片| 国产精品一区二区无线| 91蜜桃传媒精品久久久一区二区| 欧美三级电影网站| 国产精品对白交换视频| 久久国内精品自在自线400部| 91在线观看污| 欧美精品一区二区三区蜜桃视频|