/** * Returns the default icon, for the current laf, that is used to represent leaf nodes. */ public Icon getDefaultLeafIcon() { return UIDefaultsLookup.getIcon("Tree.leafIcon"); }
/** * Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded. */ public Icon getDefaultClosedIcon() { return UIDefaultsLookup.getIcon("Tree.closedIcon"); }
/** * Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded. */ public Icon getDefaultOpenIcon() { return UIDefaultsLookup.getIcon("Tree.openIcon"); }
public ImageIcon getCollapsiblePaneUpIcon() { return (ImageIcon) UIDefaultsLookup.getIcon("CollapsiblePane.upIcon"); }
public ImageIcon getCollapsiblePaneDownIcon() { return (ImageIcon) UIDefaultsLookup.getIcon("CollapsiblePane.downIcon"); }
public ImageIcon getCollapsiblePaneTitleButtonBackground() { return (ImageIcon) UIDefaultsLookup.getIcon("CollapsiblePane.titleButtonBackground"); }
/** * Get the open/expand icon. By default, it gets icon from UIDefault, "Tree.openIcon". * * @return the open/expand icon. */ public Icon getOpenIcon() { if (_openIcon == null) { if (_defaultOpenIcon == null) { _defaultOpenIcon = UIDefaultsLookup.getIcon("Tree.openIcon"); } return _defaultOpenIcon; } return _openIcon; }
public ImageIcon getCollapsiblePaneTitleButtonBackgroundEmphasized() { return (ImageIcon) UIDefaultsLookup.getIcon("CollapsiblePane.titleButtonBackground.emphasized"); }
/** * Get the closed icon. By default, it gets icon from UIDefault, "Tree.closedIcon". * * @return the closed icon. */ public Icon getClosedIcon() { if (_closedIcon == null) { if (_defaultClosedIcon == null) { _defaultClosedIcon = UIDefaultsLookup.getIcon("Tree.closedIcon"); } return _defaultClosedIcon; } return _closedIcon; }
/** * The constructor. */ public DialogPageTreeCellRenderer() { super(); _defaultTextSelectionColor = UIDefaultsLookup.getColor("Tree.selectionForeground"); _defaultTextNonSelectionColor = UIDefaultsLookup.getColor("Tree.textForeground"); _defaultBkSelectionColor = UIDefaultsLookup.getColor("Tree.selectionBackground"); _defaultBkNonSelectionColor = UIDefaultsLookup.getColor("Tree.textBackground"); _defaultBorderSelectionColor = UIDefaultsLookup.getColor("Tree.selectionBorderColor"); _defaultOpenIcon = UIDefaultsLookup.getIcon("Tree.openIcon"); _defaultClosedIcon = UIDefaultsLookup.getIcon("Tree.closedIcon"); setOpaque(false); }
protected Container createBannerArea() { PaintPanel bannerPanel = new PaintPanel() { @Override public Dimension getPreferredSize() { Dimension preferredSize = super.getPreferredSize(); if (preferredSize.width < _detailsPreferredWidth) { preferredSize.width = _detailsPreferredWidth; } return preferredSize; } }; customizeBannerArea(bannerPanel); bannerPanel.setLayout(new BorderLayout(10, 10)); addIcon(bannerPanel); updateTitleComponent(bannerPanel); bannerPanel.add(new JLabel(UIDefaultsLookup.getIcon("OptionPane.bannerIcon")), BorderLayout.AFTER_LINE_ENDS); return bannerPanel; }
case HSPLIT_CURSOR: { if (bestSize.width != 0 && maxColor > 3) { ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.hsplit"); if (icon == null) return Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR); ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.vsplit"); if (icon == null) return Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR); ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.drag"); if (icon == null) return Cursor.getDefaultCursor(); ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.dragStop"); if (icon == null) return Cursor.getDefaultCursor(); ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.dragText"); if (icon == null) return Cursor.getDefaultCursor(); ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.dragTextStop"); if (icon == null) return Cursor.getDefaultCursor(); ImageIcon icon = (ImageIcon) UIDefaultsLookup.getIcon("Cursor.north"); if (icon == null) return Cursor.getDefaultCursor();
private void updateUIDefaults() { setLeafIcon(UIDefaultsLookup.getIcon("Tree.leafIcon")); setClosedIcon(UIDefaultsLookup.getIcon("Tree.closedIcon")); setOpenIcon(UIDefaultsLookup.getIcon("Tree.openIcon")); setTextSelectionColor(UIDefaultsLookup.getColor("Tree.selectionForeground")); setTextNonSelectionColor(UIDefaultsLookup.getColor("Tree.textForeground")); setBackgroundSelectionColor(UIDefaultsLookup.getColor("Tree.selectionBackground")); setBackgroundNonSelectionColor(UIDefaultsLookup.getColor("Tree.textBackground")); setBorderSelectionColor(UIDefaultsLookup.getColor("Tree.selectionBorderColor")); Object value = UIDefaultsLookup.get("Tree.drawsFocusBorderAroundIcon"); drawsFocusBorderAroundIcon = (value != null && (Boolean) value); value = UIDefaultsLookup.get("Tree.drawDashedFocusIndicator"); drawDashedFocusIndicator = (value != null && (Boolean) value); }