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

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

?? basictreeui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * @(#)BasicTreeUI.java	1.178 06/04/18 * * Copyright 2005 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 com.sun.java.swing.SwingUtilities2;import static com.sun.java.swing.SwingUtilities2.DRAG_FIX;import sun.swing.DefaultLookup;import sun.swing.UIAction;/** * The basic L&F for a hierarchical data structure. * <p> * * @version 1.178 04/18/06 * @author Scott Violet * @author Shannon Hickey (improved drag recognition) */public class BasicTreeUI extends TreeUI{    // Old actions forward to an instance of this.    static private final Actions SHARED_ACTION = new Actions();    static private final Insets EMPTY_INSETS = new Insets(0, 0, 0, 0);    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. */    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;    /** Last width the tree was at when painted. This is used when     * !leftToRigth to notice the bounds have changed so that we can instruct     * the TreeState to relayout. */    private int                 lastWidth;    // 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;    }    /**     * Determines whether the node handles are to be displayed.     */    protected void setShowsRootHandles(boolean newValue) {	completeEditing();	updateDepthOffset();	if(treeState != null) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
最新日韩av在线| 国产福利一区二区三区视频在线| 日本美女一区二区| 成人18视频日本| 日韩一区二区精品在线观看| 亚洲欧美激情小说另类| 国产成人aaa| 精品国产一区二区三区不卡| 亚洲国产成人91porn| a4yy欧美一区二区三区| 精品国产乱码久久久久久蜜臀| 一二三区精品视频| 91在线视频网址| 国产日韩精品一区二区三区在线| 老司机一区二区| 欧美日韩免费不卡视频一区二区三区| 国产精品激情偷乱一区二区∴| 狠狠色丁香久久婷婷综| 欧美成人精品3d动漫h| 亚洲成人你懂的| 欧美色图12p| 亚洲第一二三四区| 欧美午夜精品一区| 一区av在线播放| 色综合视频在线观看| 中文字幕在线一区免费| 国产一区高清在线| 26uuu另类欧美| 国产一区欧美日韩| 国产日韩综合av| 风流少妇一区二区| 亚洲国产精品成人综合色在线婷婷| 国产美女视频91| 国产精品色眯眯| 91丝袜美腿高跟国产极品老师 | 精品一区在线看| 日韩一区二区在线看片| 日韩精品五月天| 欧美电影免费观看高清完整版在线| 美女精品一区二区| 26uuu成人网一区二区三区| 国产在线麻豆精品观看| 中日韩av电影| 91高清视频免费看| 日本成人在线视频网站| 精品国产乱码久久久久久夜甘婷婷 | 国产精品影视在线观看| 国产欧美一区二区三区鸳鸯浴 | 91影视在线播放| 亚洲欧美成aⅴ人在线观看| 在线观看日韩国产| 另类小说综合欧美亚洲| 久久精品夜色噜噜亚洲a∨| 处破女av一区二区| 亚洲精品国产a| 日韩久久久久久| 成人免费视频视频| 午夜精品久久久久久久久久 | 国产在线精品一区二区 | 国产日韩欧美麻豆| 99精品桃花视频在线观看| 一区二区三区欧美日韩| 日韩欧美的一区| 东方欧美亚洲色图在线| 亚洲高清免费观看高清完整版在线观看 | 久久久久九九视频| 色综合天天综合网天天狠天天| 日韩综合小视频| 欧美国产日韩亚洲一区| 欧美日韩美女一区二区| 国产成人综合精品三级| 亚洲成人高清在线| 国产日产欧美一区二区三区| 欧美日韩美女一区二区| 成人一区二区三区| 日韩在线卡一卡二| 亚洲欧美另类图片小说| 日韩女优制服丝袜电影| 日本久久电影网| 国产91综合网| 蜜臀av性久久久久av蜜臀妖精 | 麻豆成人免费电影| 亚洲三级电影全部在线观看高清| 日韩欧美不卡一区| 欧美日韩色综合| 91丨porny丨国产| 久久精品国产久精国产| 一区二区三区在线观看视频| www久久久久| 欧美一区二区三区色| 91丨九色丨蝌蚪丨老版| 成人做爰69片免费看网站| 蜜桃一区二区三区在线观看| 亚洲一区二区三区精品在线| 中文乱码免费一区二区 | 91精品国产一区二区| 色哟哟国产精品| 99国产一区二区三精品乱码| 国产高清无密码一区二区三区| 蜜桃av一区二区| 免费国产亚洲视频| 亚洲福利国产精品| 中文字幕一区不卡| 亚洲国产精品v| 国产日韩成人精品| 国产日本欧洲亚洲| 久久奇米777| 日韩午夜在线观看视频| 欧美久久久久免费| 欧美情侣在线播放| 欧美一区二区三区在线视频| 欧美少妇bbb| 欧美老女人在线| 欧美一区二视频| 日韩午夜三级在线| 精品黑人一区二区三区久久| 精品免费国产一区二区三区四区| 91精品在线观看入口| 在线播放亚洲一区| 日韩三级电影网址| 久久亚洲二区三区| 欧美激情一区不卡| 国产精品丝袜黑色高跟| 中文字幕中文乱码欧美一区二区| 国产精品女主播av| 亚洲免费观看高清完整版在线观看| 日韩毛片视频在线看| 亚洲自拍偷拍图区| 午夜视频在线观看一区| 免费日韩伦理电影| 精品在线视频一区| 国产69精品一区二区亚洲孕妇| 成人精品一区二区三区四区| 一本到高清视频免费精品| 欧美日韩精品欧美日韩精品 | 免费成人深夜小野草| 麻豆91精品视频| 成人性生交大片免费| 91免费观看在线| 91精品蜜臀在线一区尤物| 日韩精品一区二区在线观看| 精品入口麻豆88视频| 国产精品电影一区二区| 亚洲国产美国国产综合一区二区| 天堂影院一区二区| 国产999精品久久| 欧美最猛性xxxxx直播| 4438x成人网最大色成网站| 亚洲精品在线三区| 亚洲日穴在线视频| 精品一区二区成人精品| 暴力调教一区二区三区| 欧美日韩一区成人| 国产日韩高清在线| 视频一区二区三区入口| 成人手机电影网| 日韩欧美美女一区二区三区| 综合在线观看色| 美女网站一区二区| 色菇凉天天综合网| 国产欧美一区二区三区在线看蜜臀 | 欧美极品xxx| 亚洲va欧美va人人爽| 丁香五精品蜜臀久久久久99网站 | eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 麻豆免费看一区二区三区| av在线综合网| 精品日韩一区二区三区免费视频| 亚洲婷婷综合色高清在线| 蜜桃91丨九色丨蝌蚪91桃色| 91福利在线导航| 国产精品久久久久影视| 精品中文字幕一区二区| 欧美日韩电影一区| 亚洲欧美日韩精品久久久久| 国产黄色91视频| 精品久久国产老人久久综合| 亚洲香肠在线观看| 99久久亚洲一区二区三区青草| 精品国产91乱码一区二区三区 | 国产精品主播直播| 日韩欧美色电影| 日韩va欧美va亚洲va久久| 日本精品视频一区二区三区| 国产日本一区二区| 国产伦精品一区二区三区免费 | 中文字幕日韩欧美一区二区三区| 精品一区二区精品| 日韩一卡二卡三卡国产欧美| 亚洲线精品一区二区三区| 91亚洲国产成人精品一区二三| 日本一区二区三区免费乱视频| 国产在线视频一区二区三区| 精品久久久久久久久久久久久久久| 日韩成人免费看| 91精品国模一区二区三区| 午夜精品久久久久久久蜜桃app| 欧美性色综合网| 亚洲sss视频在线视频| 欧美手机在线视频|