jdk/src/java.desktop/share/classes/javax/swing/tree/VariableHeightLayoutCache.java
changeset 29894 3e16b51732f5
parent 25859 3317bb8137f4
child 33253 78e735319356
equal deleted inserted replaced
29893:fb1610d0d75a 29894:3e16b51732f5
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    86      * A stack of stacks.
    86      * A stack of stacks.
    87      */
    87      */
    88     private Stack<Stack<TreePath>> tempStacks;
    88     private Stack<Stack<TreePath>> tempStacks;
    89 
    89 
    90 
    90 
       
    91     /**
       
    92      * Constructs a {@code VariableHeightLayoutCache}.
       
    93      */
    91     public VariableHeightLayoutCache() {
    94     public VariableHeightLayoutCache() {
    92         super();
    95         super();
    93         tempStacks = new Stack<Stack<TreePath>>();
    96         tempStacks = new Stack<Stack<TreePath>>();
    94         visibleNodes = new Vector<Object>();
    97         visibleNodes = new Vector<Object>();
    95         boundsBuffer = new Rectangle();
    98         boundsBuffer = new Rectangle();