home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.basic;
-
- import com.sun.java.swing.Icon;
- import com.sun.java.swing.JTree;
- import com.sun.java.swing.tree.TreeCellRenderer;
- import com.sun.java.swing.tree.TreeModel;
- import java.awt.Color;
- import java.awt.Graphics;
-
- public class BasicTreeUI$BasicTreeUIPaintInfo {
- // $FF: renamed from: g java.awt.Graphics
- public Graphics field_0;
- public TreeCellRenderer renderer;
- public int totalIndent;
- public Color hashColor;
- public int halfRowHeight;
- public int levelOffset;
- public Icon expandedIcon;
- public Icon collapsedIcon;
- public int rChildIndent;
- public int rowHeight;
- public JTree tree;
- public TreeModel treeModel;
- public int leadIndex;
-
- public BasicTreeUI$BasicTreeUIPaintInfo(BasicTreeUI var1, Graphics var2) {
- this.reset(var1, var2);
- }
-
- public void reset(BasicTreeUI var1, Graphics var2) {
- this.field_0 = var2;
- this.renderer = var1.getCellRenderer();
- this.totalIndent = var1.totalChildIndent;
- this.hashColor = var1.getHashColor();
- this.halfRowHeight = ((AbstractTreeUI)var1).getRowHeight() / 2;
- if (((AbstractTreeUI)var1).getShowsRootHandles()) {
- this.levelOffset = 1;
- } else {
- this.levelOffset = 0;
- }
-
- this.expandedIcon = var1.getExpandedIcon();
- this.collapsedIcon = var1.getCollapsedIcon();
- this.rChildIndent = var1.getRightChildIndent();
- this.rowHeight = ((AbstractTreeUI)var1).getRowHeight();
- this.tree = var1.tree;
- this.treeModel = ((AbstractTreeUI)var1).getModel();
- if (!var1.tree.hasFocus()) {
- this.leadIndex = -1;
- } else {
- this.leadIndex = var1.tree.getLeadSelectionRow();
- }
- }
- }
-