亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产婷婷色一区二区三区| 蜜桃av噜噜一区二区三区小说| 免费成人在线视频观看| 91麻豆文化传媒在线观看| 久久精品夜色噜噜亚洲aⅴ| 亚洲国产日韩综合久久精品| 95精品视频在线| 亚洲欧美日韩国产手机在线| 久久成人久久鬼色| 欧美xxx久久| 精品在线播放午夜| 久久久久久电影| 成人性色生活片| 亚洲视频电影在线| 欧美伊人精品成人久久综合97 | 久久久精品免费免费| 国产成人免费视频| 国产精品免费看片| 欧美无乱码久久久免费午夜一区| 一区二区三区欧美激情| 在线播放国产精品二区一二区四区| 亚洲一二三区视频在线观看| 欧美一区二区精品在线| 精品一区二区成人精品| 久久久精品一品道一区| 色伊人久久综合中文字幕| 亚洲高清一区二区三区| 欧美一区二区三区播放老司机| 国内精品自线一区二区三区视频| 久久久久久久久久美女| 色哟哟日韩精品| 国产麻豆精品在线观看| 亚洲成av人影院在线观看网| 欧美va亚洲va香蕉在线| 色欧美片视频在线观看| 国产又黄又大久久| 亚洲国产精品久久不卡毛片| 欧美激情在线看| 欧美电影免费观看高清完整版在线 | 欧美xxxxx裸体时装秀| 99v久久综合狠狠综合久久| 精品在线播放免费| 亚洲成人av资源| 一区二区三区国产豹纹内裤在线| 亚洲视频每日更新| 国产日韩欧美不卡在线| k8久久久一区二区三区| 亚洲人精品午夜| 久久免费电影网| 久久久综合激的五月天| 国产成人av网站| 国产精品久久久久久户外露出| 7777精品伊人久久久大香线蕉经典版下载 | 天堂在线一区二区| 亚洲美女屁股眼交| 亚洲愉拍自拍另类高清精品| 日韩一卡二卡三卡四卡| 在线精品视频免费观看| 色综合久久综合网97色综合| 91网站在线观看视频| 色拍拍在线精品视频8848| 色婷婷亚洲一区二区三区| 成人av午夜影院| 在线观看亚洲精品视频| 欧美性感一类影片在线播放| 欧美日韩亚洲不卡| 51久久夜色精品国产麻豆| 欧美人xxxx| 中文欧美字幕免费| 亚洲欧美另类久久久精品| 亚洲主播在线观看| 石原莉奈在线亚洲三区| 日韩av一区二区三区| 激情综合亚洲精品| 99国产精品久久| 制服视频三区第一页精品| 久久女同性恋中文字幕| 亚洲日韩欧美一区二区在线| 日韩成人av影视| 成人综合在线视频| 51精品视频一区二区三区| 日本一二三四高清不卡| 亚洲福利一区二区| 黄色精品一二区| 91高清视频免费看| 欧美经典一区二区| 蜜桃久久精品一区二区| 在线观看亚洲a| 1000部国产精品成人观看| 六月婷婷色综合| 欧美一级欧美三级在线观看| 亚洲欧洲日韩综合一区二区| 久久综合综合久久综合| 欧美三级电影网| 亚洲午夜视频在线| 一本一道波多野结衣一区二区| 日韩精品一区二区三区视频在线观看 | 久久精品无码一区二区三区| 青娱乐精品在线视频| 欧美视频一区二区| 亚洲中国最大av网站| 99精品欧美一区二区三区综合在线| 久久伊人中文字幕| 国内欧美视频一区二区| 久久在线免费观看| 国产乱人伦精品一区二区在线观看| 日韩欧美在线1卡| 日韩精品一级中文字幕精品视频免费观看 | 白白色亚洲国产精品| 日韩一区在线播放| 欧美日韩激情在线| 免费人成在线不卡| 精品国产一区二区三区不卡| 麻豆91在线看| 国产欧美日韩在线| 99久久99久久精品国产片果冻| 亚洲人成网站在线| 欧美三区在线观看| 久久精品国产亚洲一区二区三区| 久久综合九色综合久久久精品综合 | 午夜私人影院久久久久| 99国产精品久久久久久久久久久| 欧美日韩中文字幕精品| 国产精品久久久久久妇女6080 | 午夜精品影院在线观看| 色中色一区二区| 美女爽到高潮91| 国产精品女人毛片| 欧美精品日韩综合在线| 国产一区 二区| 亚洲大片在线观看| 欧美高清在线一区| 欧美精品日韩一区| 一本大道久久a久久精品综合| 国产精品婷婷午夜在线观看| 欧美日韩三级视频| caoporn国产精品| 99久久婷婷国产精品综合| 中文在线一区二区| 7777精品伊人久久久大香线蕉超级流畅 | 免费精品视频最新在线| 一区在线中文字幕| 久久久久久久久久久久久女国产乱| 欧洲一区二区三区免费视频| 蜜臀久久99精品久久久久宅男 | 五月天亚洲精品| 综合欧美一区二区三区| 久久久国产精品麻豆| 精品国产乱码久久久久久老虎| 欧美日韩国产三级| 欧美日韩免费电影| 欧美日本国产一区| 911精品产国品一二三产区| 不卡的av电影在线观看| 成人网男人的天堂| 成人性生交大片免费看中文网站| 精品中文av资源站在线观看| 精品写真视频在线观看| 久草中文综合在线| 粉嫩一区二区三区性色av| 懂色av一区二区三区免费观看| 成人久久视频在线观看| 成人av第一页| 精品视频一区二区不卡| 成人动漫中文字幕| 在线日韩av片| 日韩午夜精品电影| 国产亚洲精品精华液| 国产精品免费丝袜| 亚洲成人一区在线| 精品一区二区三区不卡| 成人免费高清在线观看| 99久久99久久免费精品蜜臀| 欧美日韩一区久久| 久久久蜜桃精品| 一区二区三区日韩精品| 人禽交欧美网站| 成人不卡免费av| 精品一区二区三区在线观看| 国产精品99久久久久久久vr| 欧洲国产伦久久久久久久| 精品国产百合女同互慰| 亚洲综合一区二区精品导航| 国产一区三区三区| 欧美午夜精品一区二区蜜桃| 一区二区视频在线| 精品午夜久久福利影院| 欧美日韩国产综合视频在线观看| 26uuu国产一区二区三区| 性久久久久久久久| 日本精品视频一区二区| 国产精品伦一区| 国产精品自拍av| 久久影院午夜片一区| 久久精品99国产精品| 制服丝袜中文字幕亚洲| 亚洲成人动漫av| 欧美一区二区精美| 久久综合综合久久综合| 国产日韩成人精品|