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

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

?? shapesettingdialog.java

?? 用Java開發的、實現類似Visio功能的應用程序源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    			return false;
    		}
    	}
    	if (ifOneDisabled)
    		return false;
    	else
    		return true;
    }

    
    //set disable modifying properties of objects in the list    
    private void setDisableModifyingProperties(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.setDisableModifyingProperties(disable);
    	}
    }

    //--------------disable motion-------------------------------------

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

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

    /**
     *   get disable motion of objects in the list    
     *   @param ifOneDisabled True to check if any shape is disabled motion, False to check if all shape is disabled motion.
     */
    public static boolean getDisableMotion(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.isDisableMotion())
    				return true;	
    		}else if (!shape.isDisableMotion()){
    			return false;
    		}
    	}
    	if (ifOneDisabled)
    		return false;
    	else
    		return true;
    }

    
    //set disable motion of objects in the list    
    private void setDisableMotion(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.setDisableMotion(disable);
    	}
    }

    //--------------transparency-------------------------------------

    //get transparency of objects in the list    
    private int getTransparency(){
    	return getTransparency(m_list);
    }


    /**
     *   get transparency of objects in the list    
     */
    public static int getTransparency(List l){
    	if (l==null || l.size()==0)
    		return 0;

	try{	
		AbstractShape shape	=(AbstractShape)l.get(0);
		return shape.getTransparency();    	
	}catch(Exception e){
		return 0;
	}
    }

    
    //set transparency of objects in the list    
    private void setTransparency(int transparency){
    	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.setTransparency(transparency);
    	}
    }


    //--------------Shape setting dialog-------------------------------------
     
     
    private ShapeSettingDialog(Frame frame,
                       Component locationComp,
                       String title,
                       List list) {
        super(frame, title, true);
	setResizable(false);
        
        m_list	=list;

        //Create and initialize the buttons.
        JButton cancelButton = new JButton(CADResource.getString("button.cancel"));
        cancelButton.setFont(GUIConst.FONT_BUTTON);
        cancelButton.addActionListener(this);
        //
        final JButton confirmButton = new JButton(CADResource.getString("button.confirm"));
        confirmButton.setFont(GUIConst.FONT_BUTTON);
        confirmButton.setActionCommand("Confirm");
        confirmButton.addActionListener(this);
        getRootPane().setDefaultButton(confirmButton);

        //main part of the dialog
	hideShapeCheck	=new JCheckBox(CADResource.getString("label.shapesetting.hideshape"));
	hideShapeCheck.setFont(GUIConst.FONT_LABEL);  
	hideShapeCheck.setPreferredSize(new Dimension(200,30));
	hideShapeCheck.setSelected(getInvisible());
	
	disableScalingCheck	=new JCheckBox(CADResource.getString("label.shapesetting.disablescaling"));
	disableScalingCheck.setFont(GUIConst.FONT_LABEL);
	disableScalingCheck.setPreferredSize(new Dimension(200,30));
	disableScalingCheck.setSelected(getDisableScaling());

	disableModifyingPropertiesCheck =new JCheckBox(CADResource.getString("label.shapesetting.disablemodifyingproperties"));
	disableModifyingPropertiesCheck.setFont(GUIConst.FONT_LABEL);
	disableModifyingPropertiesCheck.setPreferredSize(new Dimension(200,30));
	disableModifyingPropertiesCheck.setSelected(getDisableModifyingProperties());

	disableMotionCheck	=new JCheckBox(CADResource.getString("label.shapesetting.disablemotion"));
	disableMotionCheck.setFont(GUIConst.FONT_LABEL);
	disableMotionCheck.setPreferredSize(new Dimension(200,30));
	disableMotionCheck.setSelected(getDisableMotion());

	//transparency
        transparencyList 	=new JComboBox(transparencyAry);
        transparencyList.setFont(GUIConst.FONT_DIALOG);
        transparencyList.setSelectedIndex(getTransparency());
        transparencyList.setMaximumRowCount(5);
        transparencyList.setPreferredSize(new Dimension(80,32));
        transparencyList.setMaximumSize(new Dimension(80,32));
        transparencyList.setMinimumSize(new Dimension(80,32));

        JLabel  transparencyLabel	=new JLabel(CADResource.getString("label.shapesetting.transparency"));
        transparencyLabel.setFont(GUIConst.FONT_LABEL);
        transparencyLabel.setPreferredSize(new Dimension(120, 32));

        JLabel  percentLabel	=new JLabel("%");
        percentLabel.setFont(GUIConst.FONT_LABEL);
        percentLabel.setPreferredSize(new Dimension(20, 32));
	
        JPanel transparencyPanel	=new JPanel();
        transparencyPanel.setLayout(new BoxLayout(transparencyPanel,BoxLayout.X_AXIS));
        transparencyPanel.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
	transparencyPanel.add(transparencyLabel);
	transparencyPanel.add(Box.createRigidArea(new Dimension(5,0)));
	transparencyPanel.add(transparencyList);
	transparencyPanel.add(percentLabel); 
	transparencyPanel.setPreferredSize(new Dimension(200,32));

	
	//add checkboxes to container.
        JPanel  container	=new JPanel();
        container.setLayout(new BoxLayout(container,BoxLayout.Y_AXIS));
        container.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
        
        JPanel hideShapePanel   =new JPanel();
        hideShapePanel.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
        hideShapePanel.add(hideShapeCheck);
        container.add(hideShapePanel);
        container.add(Box.createRigidArea(new Dimension(0,5)));

        
        JPanel disableScalingPanel   =new JPanel();
        disableScalingPanel.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
        disableScalingPanel.add(disableScalingCheck);
        container.add(disableScalingPanel);
        container.add(Box.createRigidArea(new Dimension(0,5)));

        JPanel disableModifyingPropertiesPanel   =new JPanel();
        disableModifyingPropertiesPanel.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
        disableModifyingPropertiesPanel.add(disableModifyingPropertiesCheck);
        container.add(disableModifyingPropertiesPanel);
        container.add(Box.createRigidArea(new Dimension(0,5)));

        JPanel disableMotionPanel   =new JPanel();
        disableMotionPanel.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
        disableMotionPanel.add(disableMotionCheck);
        container.add(disableMotionPanel);
        container.add(Box.createRigidArea(new Dimension(0,5)));
        
	container.add(transparencyPanel);

        //Lay out the buttons from left to right.
        JPanel buttonPane = new JPanel();
        //buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.LINE_AXIS));
        buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS));
        buttonPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
        //buttonPane.add(Box.createHorizontalGlue());
        buttonPane.add(Box.createRigidArea(new Dimension(10, 0)));
        buttonPane.add(confirmButton);
        buttonPane.add(Box.createRigidArea(new Dimension(15, 0)));
        buttonPane.add(cancelButton);

        //Put everything together, using the content pane's BorderLayout.
        Container contentPane = getContentPane();
        contentPane.add(container, BorderLayout.CENTER);
        contentPane.add(buttonPane, BorderLayout.SOUTH);

        pack();
        setLocationRelativeTo(locationComp);
    }


    //Handle clicks on the Set and Cancel buttons.
    public void actionPerformed(ActionEvent e) {
         if ("Confirm".equals(e.getActionCommand())) {
         	setInvisible(hideShapeCheck.isSelected());
         	setDisableScaling(disableScalingCheck.isSelected());
         	setDisableModifyingProperties(disableModifyingPropertiesCheck.isSelected());
         	setDisableMotion(disableMotionCheck.isSelected());
         	setTransparency(transparencyList.getSelectedIndex());

         	m_modified	=true;
                m_dialog.setVisible(false);
        }else{
        	m_modified	=false;
                m_dialog.setVisible(false);
        }
    }


        
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91蝌蚪porny| 亚洲视频在线观看一区| 国产免费成人在线视频| 亚洲成年人影院| 成人精品视频一区二区三区尤物| 欧美肥妇毛茸茸| 亚洲欧美激情小说另类| 国产suv精品一区二区6| 日韩一区二区电影网| 亚洲一区二区三区四区的| a在线欧美一区| 久久精品人人做人人爽人人| 天堂影院一区二区| 在线国产亚洲欧美| 中文字幕一区二区三区精华液| 狠狠色综合色综合网络| 日韩欧美中文字幕制服| 午夜日韩在线电影| 欧美日韩高清一区二区不卡| ...xxx性欧美| 91天堂素人约啪| 国产精品久久久久久久久免费相片 | 色综合久久66| 中文字幕乱码亚洲精品一区| 国产一区亚洲一区| 久久综合色播五月| 极品瑜伽女神91| 久久久精品天堂| 国产高清亚洲一区| 国产亚洲1区2区3区| 国产高清久久久| 国产婷婷色一区二区三区| 狠狠色狠狠色综合系列| 久久这里只精品最新地址| 国内精品嫩模私拍在线| 国产日韩欧美不卡在线| 成人涩涩免费视频| 1区2区3区精品视频| 在线亚洲高清视频| 亚洲国产精品久久不卡毛片| 欧美精选一区二区| 青椒成人免费视频| 久久亚洲影视婷婷| 99久久精品免费观看| 亚洲自拍与偷拍| 欧美一卡二卡在线| 国产盗摄一区二区三区| 国产精品私人影院| 欧洲亚洲国产日韩| 老司机精品视频在线| 国产日韩三级在线| 91久久精品国产91性色tv| 亚洲成人激情社区| 26uuu亚洲综合色欧美| 91同城在线观看| 视频一区在线视频| 国产欧美日韩亚州综合| 91黄色在线观看| 免费成人你懂的| 中文字幕色av一区二区三区| 欧美日韩一区二区三区不卡 | 国产激情一区二区三区| 亚洲色图清纯唯美| 日韩三级在线免费观看| 成人高清视频在线| 日韩二区在线观看| 中文一区二区完整视频在线观看| 欧美亚一区二区| 国产专区综合网| 一区二区三区欧美视频| 精品电影一区二区| 91国偷自产一区二区三区成为亚洲经典 | 欧美三级资源在线| 国产一二精品视频| 亚洲观看高清完整版在线观看| 精品久久久久久久久久久院品网 | 精品一区二区国语对白| 综合电影一区二区三区 | 在线观看av不卡| 国产成人综合视频| 天堂在线亚洲视频| 亚洲视频一区二区免费在线观看| 欧美一级高清大全免费观看| 一本到一区二区三区| 国产精品1区二区.| 日本网站在线观看一区二区三区| 日韩毛片精品高清免费| 国产亚洲成av人在线观看导航 | 欧洲国内综合视频| 国产成人精品一区二| 久久超碰97中文字幕| 亚洲二区在线视频| 一区二区三区高清不卡| 国产精品久久777777| 久久久国产一区二区三区四区小说| 在线综合亚洲欧美在线视频| 在线观看免费亚洲| 91丝袜美腿高跟国产极品老师| 国产成人综合亚洲网站| 韩国女主播成人在线观看| 日本中文字幕一区二区视频| 亚洲午夜成aⅴ人片| 亚洲综合在线视频| 亚洲免费在线播放| 亚洲美女电影在线| 综合电影一区二区三区 | 狠狠色丁香婷综合久久| 免费成人你懂的| 青青青伊人色综合久久| 免费人成精品欧美精品| 日韩主播视频在线| 日韩精品电影一区亚洲| 午夜视频一区在线观看| 亚洲国产一二三| 午夜激情久久久| 免费高清在线一区| 精品中文字幕一区二区| 国内久久精品视频| 成人一区二区视频| 成人理论电影网| 91麻豆免费视频| 欧美视频一区在线| 91麻豆精品91久久久久久清纯 | 麻豆精品一二三| 极品少妇一区二区三区精品视频| 精品中文av资源站在线观看| 国产在线不卡一卡二卡三卡四卡| 国产伦精品一区二区三区免费迷 | 欧美日产在线观看| 欧美一区二区三区思思人| 欧美变态tickle挠乳网站| 久久久久久久久久久黄色| 中文字幕日韩欧美一区二区三区| 亚洲视频网在线直播| 天堂av在线一区| 国产精品一级片在线观看| 国产·精品毛片| 欧美色综合网站| 日韩欧美国产综合| 国产嫩草影院久久久久| 亚洲一区二区欧美日韩| 精品一区二区三区视频| 99热精品一区二区| 91精品国产91久久久久久一区二区| 亚洲精品在线一区二区| 亚洲免费av网站| 精品一区二区国语对白| 色综合久久久久| 精品日韩欧美一区二区| 亚洲欧美乱综合| 蜜桃视频在线一区| 一本久道久久综合中文字幕| 欧美成人vps| 亚洲尤物视频在线| 国产美女在线观看一区| 欧美偷拍一区二区| 久久久精品中文字幕麻豆发布| 一区二区三区在线观看欧美| 韩国女主播成人在线| 欧美日韩国产综合一区二区三区| 久久一二三国产| 日本中文一区二区三区| 97se亚洲国产综合在线| 久久午夜色播影院免费高清| 亚洲国产毛片aaaaa无费看| 国产精品一卡二| 91精品久久久久久久99蜜桃| 亚洲视频资源在线| 国产伦精品一区二区三区免费| 欧美日韩亚洲高清一区二区| 中文成人综合网| 国内精品视频一区二区三区八戒| 欧美日韩一区二区三区在线| 国产精品久线观看视频| 国产一区二区福利| 欧美一级生活片| 丝袜诱惑制服诱惑色一区在线观看 | 日韩欧美另类在线| 亚洲国产cao| 91丨九色丨蝌蚪丨老版| 欧美国产日本韩| 国产在线不卡一卡二卡三卡四卡| 欧美高清视频在线高清观看mv色露露十八 | 亚洲麻豆国产自偷在线| 国产超碰在线一区| 久久久久久免费| 国产一区视频导航| 久久综合色8888| 国产一区二区三区免费| 久久这里只有精品首页| 美国一区二区三区在线播放| 91精品国产一区二区三区蜜臀| 亚洲国产精品天堂| 欧美日韩在线三区| 亚洲在线一区二区三区| 欧美日韩国产中文| 天天色综合天天| 欧美一级二级三级蜜桃| 久久精品国产亚洲a| 精品久久久久久综合日本欧美|