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

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

?? basictreeui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * @(#)BasicTreeUI.java	1.197 07/11/12 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import javax.swing.*;import javax.swing.event.*;import java.awt.*;import java.awt.event.*;import java.awt.datatransfer.*;import java.awt.dnd.*;import java.beans.*;import java.io.*;import java.util.Enumeration;import java.util.Hashtable;import java.util.TooManyListenersException;import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import javax.swing.plaf.ActionMapUIResource;import javax.swing.plaf.ComponentUI;import javax.swing.plaf.UIResource;import javax.swing.plaf.TreeUI;import javax.swing.tree.*;import javax.swing.text.Position;import javax.swing.plaf.basic.DragRecognitionSupport.BeforeDrag;import sun.swing.SwingUtilities2;import sun.swing.DefaultLookup;import sun.swing.UIAction;/** * The basic L&F for a hierarchical data structure. * <p> * * @version 1.197 11/12/07 * @author Scott Violet * @author Shannon Hickey (drag and drop) */public class BasicTreeUI extends TreeUI{    private static final StringBuilder BASELINE_COMPONENT_KEY =        new StringBuilder("Tree.baselineComponent");    // Old actions forward to an instance of this.    static private final Actions SHARED_ACTION = new Actions();    transient protected Icon        collapsedIcon;    transient protected Icon        expandedIcon;    /**      * Color used to draw hash marks.  If <code>null</code> no hash marks      * will be drawn.      */    private Color hashColor;    /** Distance between left margin and where vertical dashes will be      * drawn. */    protected int               leftChildIndent;    /** Distance to add to leftChildIndent to determine where cell      * contents will be drawn. */    protected int               rightChildIndent;    /** Total distance that will be indented.  The sum of leftChildIndent      * and rightChildIndent. */    protected int               totalChildIndent;    /** Minimum preferred size. */    protected Dimension         preferredMinSize;    /** Index of the row that was last selected. */    protected int               lastSelectedRow;    /** Component that we're going to be drawing into. */    protected JTree             tree;    /** Renderer that is being used to do the actual cell drawing. */    transient protected TreeCellRenderer   currentCellRenderer;    /** Set to true if the renderer that is currently in the tree was     * created by this instance. */    protected boolean           createdRenderer;    /** Editor for the tree. */    transient protected TreeCellEditor     cellEditor;    /** Set to true if editor that is currently in the tree was     * created by this instance. */    protected boolean           createdCellEditor;    /** Set to false when editing and shouldSelectCell() returns true meaning      * the node should be selected before editing, used in completeEditing. */    protected boolean           stopEditingInCompleteEditing;    /** Used to paint the TreeCellRenderer. */    protected CellRendererPane  rendererPane;    /** Size needed to completely display all the nodes. */    protected Dimension         preferredSize;    /** Is the preferredSize valid? */    protected boolean           validCachedPreferredSize;    /** Object responsible for handling sizing and expanded issues. */    // WARNING: Be careful with the bounds held by treeState. They are    // always in terms of left-to-right. They get mapped to right-to-left    // by the various methods of this class.    protected AbstractLayoutCache  treeState;    /** Used for minimizing the drawing of vertical lines. */    protected Hashtable<TreePath,Boolean> drawingCache;    /** True if doing optimizations for a largeModel. Subclasses that     * don't support this may wish to override createLayoutCache to not     * return a FixedHeightLayoutCache instance. */    protected boolean           largeModel;    /** Reponsible for telling the TreeState the size needed for a node. */    protected AbstractLayoutCache.NodeDimensions     nodeDimensions;    /** Used to determine what to display. */    protected TreeModel         treeModel;    /** Model maintaing the selection. */    protected TreeSelectionModel treeSelectionModel;    /** How much the depth should be offset to properly calculate     * x locations. This is based on whether or not the root is visible,     * and if the root handles are visible. */    protected int               depthOffset;    // Following 4 ivars are only valid when editing.    /** When editing, this will be the Component that is doing the actual      * editing. */    protected Component         editingComponent;    /** Path that is being edited. */    protected TreePath          editingPath;    /** Row that is being edited. Should only be referenced if     * editingComponent is not null. */    protected int               editingRow;    /** Set to true if the editor has a different size than the renderer. */    protected boolean           editorHasDifferentSize;    /** Row correspondin to lead path. */    private int                 leadRow;    /** If true, the property change event for LEAD_SELECTION_PATH_PROPERTY,     * or ANCHOR_SELECTION_PATH_PROPERTY will not generate a repaint. */    private boolean             ignoreLAChange;    /** Indicates the orientation. */    private boolean             leftToRight;    // Cached listeners    private PropertyChangeListener propertyChangeListener;    private PropertyChangeListener selectionModelPropertyChangeListener;    private MouseListener mouseListener;    private FocusListener focusListener;    private KeyListener keyListener;    /** Used for large models, listens for moved/resized events and     * updates the validCachedPreferredSize bit accordingly. */    private ComponentListener   componentListener;    /** Listens for CellEditor events. */    private CellEditorListener  cellEditorListener;    /** Updates the display when the selection changes. */    private TreeSelectionListener treeSelectionListener;    /** Is responsible for updating the display based on model events. */    private TreeModelListener treeModelListener;    /** Updates the treestate as the nodes expand. */    private TreeExpansionListener treeExpansionListener;    /** UI property indicating whether to paint lines */    private boolean paintLines = true;    /** UI property for painting dashed lines */    private boolean lineTypeDashed;    /**     * The time factor to treate the series of typed alphanumeric key     * as prefix for first letter navigation.     */    private long timeFactor = 1000L;    private Handler handler;    /**     * A temporary variable for communication between startEditingOnRelease     * and startEditing.     */    private MouseEvent releaseEvent;    public static ComponentUI createUI(JComponent x) {	return new BasicTreeUI();    }    static void loadActionMap(LazyActionMap map) {	map.put(new Actions(Actions.SELECT_PREVIOUS));        map.put(new Actions(Actions.SELECT_PREVIOUS_CHANGE_LEAD));	map.put(new Actions(Actions.SELECT_PREVIOUS_EXTEND_SELECTION));	map.put(new Actions(Actions.SELECT_NEXT));	map.put(new Actions(Actions.SELECT_NEXT_CHANGE_LEAD));	map.put(new Actions(Actions.SELECT_NEXT_EXTEND_SELECTION));	map.put(new Actions(Actions.SELECT_CHILD));	map.put(new Actions(Actions.SELECT_CHILD_CHANGE_LEAD));	map.put(new Actions(Actions.SELECT_PARENT));	map.put(new Actions(Actions.SELECT_PARENT_CHANGE_LEAD));	map.put(new Actions(Actions.SCROLL_UP_CHANGE_SELECTION));	map.put(new Actions(Actions.SCROLL_UP_CHANGE_LEAD));	map.put(new Actions(Actions.SCROLL_UP_EXTEND_SELECTION));	map.put(new Actions(Actions.SCROLL_DOWN_CHANGE_SELECTION));	map.put(new Actions(Actions.SCROLL_DOWN_EXTEND_SELECTION));	map.put(new Actions(Actions.SCROLL_DOWN_CHANGE_LEAD));	map.put(new Actions(Actions.SELECT_FIRST));	map.put(new Actions(Actions.SELECT_FIRST_CHANGE_LEAD));	map.put(new Actions(Actions.SELECT_FIRST_EXTEND_SELECTION));	map.put(new Actions(Actions.SELECT_LAST));	map.put(new Actions(Actions.SELECT_LAST_CHANGE_LEAD));	map.put(new Actions(Actions.SELECT_LAST_EXTEND_SELECTION));	map.put(new Actions(Actions.TOGGLE));	map.put(new Actions(Actions.CANCEL_EDITING));	map.put(new Actions(Actions.START_EDITING));	map.put(new Actions(Actions.SELECT_ALL));	map.put(new Actions(Actions.CLEAR_SELECTION));	map.put(new Actions(Actions.SCROLL_LEFT));	map.put(new Actions(Actions.SCROLL_RIGHT));	map.put(new Actions(Actions.SCROLL_LEFT_EXTEND_SELECTION));	map.put(new Actions(Actions.SCROLL_RIGHT_EXTEND_SELECTION));	map.put(new Actions(Actions.SCROLL_RIGHT_CHANGE_LEAD));	map.put(new Actions(Actions.SCROLL_LEFT_CHANGE_LEAD));        map.put(new Actions(Actions.EXPAND));        map.put(new Actions(Actions.COLLAPSE));        map.put(new Actions(Actions.MOVE_SELECTION_TO_PARENT));        map.put(new Actions(Actions.ADD_TO_SELECTION));        map.put(new Actions(Actions.TOGGLE_AND_ANCHOR));        map.put(new Actions(Actions.EXTEND_TO));        map.put(new Actions(Actions.MOVE_SELECTION_TO));        map.put(TransferHandler.getCutAction());        map.put(TransferHandler.getCopyAction());        map.put(TransferHandler.getPasteAction());    }    public BasicTreeUI() {	super();    }    protected Color getHashColor() {        return hashColor;    }    protected void setHashColor(Color color) {        hashColor = color;    }    public void setLeftChildIndent(int newAmount) {	leftChildIndent = newAmount;	totalChildIndent = leftChildIndent + rightChildIndent;	if(treeState != null)	    treeState.invalidateSizes();	updateSize();    }    public int getLeftChildIndent() {	return leftChildIndent;    }    public void setRightChildIndent(int newAmount) {	rightChildIndent = newAmount;	totalChildIndent = leftChildIndent + rightChildIndent;	if(treeState != null)	    treeState.invalidateSizes();	updateSize();    }    public int getRightChildIndent() {	return rightChildIndent;    }    public void setExpandedIcon(Icon newG) {	expandedIcon = newG;    }    public Icon getExpandedIcon() {	return expandedIcon;    }    public void setCollapsedIcon(Icon newG) {	collapsedIcon = newG;    }    public Icon getCollapsedIcon() {	return collapsedIcon;    }    //    // Methods for configuring the behavior of the tree. None of them    // push the value to the JTree instance. You should really only    // call these methods on the JTree.    //    /**     * Updates the componentListener, if necessary.     */    protected void setLargeModel(boolean largeModel) {	if(getRowHeight() < 1)	    largeModel = false;	if(this.largeModel != largeModel) {	    completeEditing();	    this.largeModel = largeModel;	    treeState = createLayoutCache();	    configureLayoutCache();	    updateLayoutCacheExpandedNodes();	    updateSize();	}    }    protected boolean isLargeModel() {	return largeModel;    }    /**     * Sets the row height, this is forwarded to the treeState.     */    protected void setRowHeight(int rowHeight) {	completeEditing();	if(treeState != null) {	    setLargeModel(tree.isLargeModel());	    treeState.setRowHeight(rowHeight);	    updateSize();	}    }    protected int getRowHeight() {	return (tree == null) ? -1 : tree.getRowHeight();    }    /**     * Sets the TreeCellRenderer to <code>tcr</code>. This invokes     * <code>updateRenderer</code>.     */    protected void setCellRenderer(TreeCellRenderer tcr) {	completeEditing();	updateRenderer();	if(treeState != null) {	    treeState.invalidateSizes();	    updateSize();	}    }    /**     * Return currentCellRenderer, which will either be the trees     * renderer, or defaultCellRenderer, which ever wasn't null.     */    protected TreeCellRenderer getCellRenderer() {	return currentCellRenderer;    }    /**     * Sets the TreeModel.     */    protected void setModel(TreeModel model) {	completeEditing();	if(treeModel != null && treeModelListener != null)	    treeModel.removeTreeModelListener(treeModelListener);	treeModel = model;	if(treeModel != null) {	    if(treeModelListener != null)		treeModel.addTreeModelListener(treeModelListener);	}	if(treeState != null) {	    treeState.setModel(model);	    updateLayoutCacheExpandedNodes();	    updateSize();	}    }    protected TreeModel getModel() {	return treeModel;    }    /**     * Sets the root to being visible.     */    protected void setRootVisible(boolean newValue) {	completeEditing();	updateDepthOffset();	if(treeState != null) {	    treeState.setRootVisible(newValue);	    treeState.invalidateSizes();	    updateSize();	}    }    protected boolean isRootVisible() {	return (tree != null) ? tree.isRootVisible() : false;    }    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美videos大乳护士334| xf在线a精品一区二区视频网站| 久久国产精品免费| 国产黄色精品网站| 国产精品亚洲一区二区三区在线 | 日韩一区二区在线看| 奇米精品一区二区三区在线观看 | 韩国精品主播一区二区在线观看| 久久麻豆一区二区| av一区二区三区黑人| 91高清视频在线| 国产精品一级黄| 亚洲午夜免费视频| 欧美韩日一区二区三区| 欧美少妇bbb| 久久在线观看免费| 精品国产乱码久久久久久久 | 成人性生交大片免费看在线播放| 午夜久久福利影院| 韩国一区二区视频| 91丨porny丨户外露出| 欧美色综合天天久久综合精品| 高清不卡一区二区在线| 日本乱码高清不卡字幕| 久久久久久久久久久久电影 | 丝袜美腿一区二区三区| 国产激情精品久久久第一区二区| 欧美年轻男男videosbes| 欧美激情一区不卡| 麻豆极品一区二区三区| 欧美日韩精品欧美日韩精品一综合| 久久精品亚洲麻豆av一区二区| 亚洲一级片在线观看| 日韩欧美一区二区免费| 国产精品二区一区二区aⅴ污介绍| 成人三级伦理片| 亚洲午夜久久久久久久久久久 | 一区二区三区精品视频在线| 国产一区二区看久久| xnxx国产精品| 国产九九视频一区二区三区| 精品免费国产二区三区| 免费人成黄页网站在线一区二区| 91精品国产91综合久久蜜臀| 日日噜噜夜夜狠狠视频欧美人| 欧美日本在线视频| 日韩黄色免费网站| 久久综合99re88久久爱| 国产精品综合网| 亚洲男女一区二区三区| 欧美日韩一区不卡| 日本vs亚洲vs韩国一区三区 | 麻豆精品一区二区三区| 日韩欧美一区在线观看| 国产成人啪免费观看软件| 欧美国产亚洲另类动漫| 91欧美一区二区| 免费成人av在线| 中文字幕亚洲在| 欧美zozo另类异族| 色婷婷综合久久久久中文一区二区 | 欧美一卡二卡三卡| av一本久道久久综合久久鬼色| 亚洲国产日韩a在线播放| 欧美成人一区二区三区片免费| 91麻豆精东视频| 国产一区二区三区av电影| 午夜亚洲国产au精品一区二区| 中文字幕电影一区| 国产午夜精品一区二区三区嫩草 | 全国精品久久少妇| 亚洲图片欧美色图| 亚洲最色的网站| 中文字幕一区在线观看| 国产欧美一区二区精品婷婷| 欧美日韩国产成人在线免费| 日本高清免费不卡视频| 不卡的av在线播放| av在线不卡免费看| 国产盗摄一区二区| 久久精品国产一区二区| 麻豆免费看一区二区三区| 日韩成人av影视| 日韩国产在线观看一区| 日韩精品成人一区二区在线| 天涯成人国产亚洲精品一区av| 亚洲一区二区欧美日韩| 亚洲电影一级片| 久久99精品国产麻豆不卡| 国产裸体歌舞团一区二区| 国产综合久久久久影院| 粉嫩嫩av羞羞动漫久久久| 成人黄页毛片网站| 欧美三级电影在线观看| 欧美日韩精品是欧美日韩精品| 88在线观看91蜜桃国自产| 欧美一区日韩一区| 国产午夜精品一区二区三区嫩草| 国产精品福利av| 亚洲一二三四久久| 寂寞少妇一区二区三区| 99精品欧美一区二区蜜桃免费| 欧美三区免费完整视频在线观看| 日韩一区二区不卡| 中文字幕在线一区二区三区| 亚洲影院理伦片| 粉嫩绯色av一区二区在线观看| 在线视频一区二区免费| 国产欧美精品国产国产专区| 亚洲精品大片www| 国产真实乱子伦精品视频| 99re成人精品视频| 精品国产网站在线观看| 一区二区三区欧美| 成人av电影在线观看| 久久一二三国产| 久久精品免费观看| 91精品在线一区二区| 亚洲欧美日韩国产另类专区 | 日韩一区二区精品在线观看| 国产精品免费久久久久| 国产综合久久久久影院| 欧美一区二区美女| 亚洲h动漫在线| 在线亚洲精品福利网址导航| 亚洲美女屁股眼交3| 色婷婷久久久久swag精品| 国产精品免费看片| 91在线小视频| 亚洲天堂av老司机| 在线观看av一区| 天天色 色综合| 久久久午夜精品理论片中文字幕| 欧美96一区二区免费视频| 日韩亚洲电影在线| 国产尤物一区二区| 国产精品网曝门| 欧美性色欧美a在线播放| 偷拍与自拍一区| 久久品道一品道久久精品| 国产精品99久| 国产精品成人在线观看 | 一区二区不卡在线视频 午夜欧美不卡在| 狠狠色狠狠色合久久伊人| 国产精品三级久久久久三级| 色综合久久九月婷婷色综合| 午夜精品久久久久久久蜜桃app| 91精品国产日韩91久久久久久| 狠狠色2019综合网| **欧美大码日韩| 日韩一区二区在线看| www.成人网.com| 精品一区二区三区久久久| 亚洲欧洲综合另类| 久久人人超碰精品| 在线不卡免费av| 色呦呦一区二区三区| 国产成人福利片| 免费看日韩精品| 亚洲mv在线观看| 樱桃视频在线观看一区| 国产夜色精品一区二区av| 正在播放一区二区| 欧美三级乱人伦电影| 色婷婷亚洲精品| 91丨九色丨黑人外教| av在线不卡电影| 成人av网站免费观看| 高清久久久久久| 国产成+人+日韩+欧美+亚洲| 久久 天天综合| 久久99精品久久久久婷婷| 亚洲成人在线免费| 亚洲午夜精品一区二区三区他趣| 亚洲欧美日韩小说| 亚洲国产aⅴ成人精品无吗| 亚洲精品伦理在线| 香蕉成人啪国产精品视频综合网| 亚洲综合久久久| 日韩专区中文字幕一区二区| 婷婷开心久久网| 国内一区二区在线| 国内精品免费**视频| 成人黄页在线观看| 欧美在线观看视频一区二区| 欧美久久久影院| 久久夜色精品国产欧美乱极品| 久久久久国产免费免费| 久久久一区二区三区| 亚洲欧洲制服丝袜| 美女免费视频一区| 99re热视频精品| 久久免费电影网| 午夜免费久久看| 国产成人午夜电影网| 欧美日韩一级二级三级| 久久久综合激的五月天| 亚洲在线观看免费视频| 国产精品一区在线| 91精品国产综合久久久久久久 |