Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.desktop - Package : javax.swing.plaf.basic
Version documentée : Java SE 17

Classe « BasicTreeUI »

Informations générales

Héritage

java.lang.Object
    javax.swing.plaf.ComponentUI
        javax.swing.plaf.TreeUI
            javax.swing.plaf.basic.BasicTreeUI

Définition

public class BasicTreeUI extends javax.swing.plaf.TreeUI

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
protected TreeCellEditor cellEditor
protected Icon collapsedIcon
protected boolean createdCellEditor
protected boolean createdRenderer
protected TreeCellRenderer currentCellRenderer
protected int depthOffset
protected Hashtable drawingCache
protected Component editingComponent
protected TreePath editingPath
protected int editingRow
protected boolean editorHasDifferentSize
protected Icon expandedIcon
protected boolean largeModel
protected int lastSelectedRow
protected int leftChildIndent
protected NodeDimensions nodeDimensions
protected Dimension preferredMinSize
protected Dimension preferredSize
protected CellRendererPane rendererPane
protected int rightChildIndent
protected boolean stopEditingInCompleteEditing
protected int totalChildIndent
protected JTree tree
protected TreeModel treeModel
protected TreeSelectionModel treeSelectionModel
protected AbstractLayoutCache treeState
protected boolean validCachedPreferredSize

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
BasicTreeUI()

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
protected TreeCellEditor cellEditor R/W
protected TreeCellRenderer cellRenderer R/W
public Icon collapsedIcon R/W
protected boolean editable R/W
public Icon expandedIcon R/W
protected Color hashColor R/W
protected int horizontalLegBuffer R/-
protected boolean largeModel R/W
protected int leadSelectionRow R/-
public int leftChildIndent R/W
protected TreeModel model R/W
public Dimension preferredMinSize R/W
public int rightChildIndent R/W
protected boolean rootVisible R/W
protected int rowHeight R/W
protected TreeSelectionModel selectionModel R/W
protected boolean showsRootHandles R/W
protected int verticalLegBuffer R/-

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public void cancelEditing( JTree tree )
protected void checkForClickInExpandControl( TreePath path, int mouseX, int mouseY )
protected void completeEditing( boolean messageStop, boolean messageCancel, boolean messageTree )
protected void completeEditing()
protected void completeUIInstall()
protected void completeUIUninstall()
protected void configureLayoutCache()
protected CellEditorListener createCellEditorListener()
protected CellRendererPane createCellRendererPane()
protected ComponentListener createComponentListener()
protected TreeCellEditor createDefaultCellEditor()
protected TreeCellRenderer createDefaultCellRenderer()
protected FocusListener createFocusListener()
protected KeyListener createKeyListener()
protected AbstractLayoutCache createLayoutCache()
protected MouseListener createMouseListener()
protected NodeDimensions createNodeDimensions()
protected PropertyChangeListener createPropertyChangeListener()
protected PropertyChangeListener createSelectionModelPropertyChangeListener()
protected TreeExpansionListener createTreeExpansionListener()
protected TreeModelListener createTreeModelListener()
protected TreeSelectionListener createTreeSelectionListener()
public static ComponentUI createUI( JComponent x )
protected void drawCentered( Component c, Graphics graphics, Icon icon, int x, int y )
protected void drawDashedHorizontalLine( Graphics g, int y, int x1, int x2 )
protected void drawDashedVerticalLine( Graphics g, int x, int y1, int y2 )
protected void ensureRowsAreVisible( int beginRow, int endRow )
public int getBaseline( JComponent c, int width, int height )
public BaselineResizeBehavior getBaselineResizeBehavior( JComponent c )
protected TreeCellEditor getCellEditor()
protected TreeCellRenderer getCellRenderer()
public TreePath getClosestPathForLocation( JTree tree, int x, int y )
public Icon getCollapsedIcon()
protected Rectangle getDropLineRect( DropLocation loc )
public TreePath getEditingPath( JTree tree )
public Icon getExpandedIcon()
protected Color getHashColor()
protected int getHorizontalLegBuffer()
protected TreePath getLastChildPath( TreePath parent )
protected int getLeadSelectionRow()
public int getLeftChildIndent()
public Dimension getMaximumSize( JComponent c )
public Dimension getMinimumSize( JComponent c )
protected TreeModel getModel()
public Rectangle getPathBounds( JTree tree, TreePath path )
public TreePath getPathForRow( JTree tree, int row )
public Dimension getPreferredMinSize()
public Dimension getPreferredSize( JComponent c )
public Dimension getPreferredSize( JComponent c, boolean checkConsistency )
public int getRightChildIndent()
public int getRowCount( JTree tree )
public int getRowForPath( JTree tree, TreePath path )
protected int getRowHeight()
protected int getRowX( int row, int depth )
protected TreeSelectionModel getSelectionModel()
protected boolean getShowsRootHandles()
protected int getVerticalLegBuffer()
protected void handleExpandControlClick( TreePath path, int mouseX, int mouseY )
protected void installComponents()
protected void installDefaults()
protected void installKeyboardActions()
protected void installListeners()
public void installUI( JComponent c )
protected boolean isDropLine( DropLocation loc )
protected boolean isEditable()
public boolean isEditing( JTree tree )
protected boolean isLargeModel()
protected boolean isLeaf( int row )
protected boolean isLocationInExpandControl( TreePath path, int mouseX, int mouseY )
protected boolean isMultiSelectEvent( MouseEvent event )
protected boolean isRootVisible()
protected boolean isToggleEvent( MouseEvent event )
protected boolean isToggleSelectionEvent( MouseEvent event )
public void paint( Graphics g, JComponent c )
protected void paintDropLine( Graphics g )
protected void paintExpandControl( Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf )
protected void paintHorizontalLine( Graphics g, JComponent c, int y, int left, int right )
protected void paintHorizontalPartOfLeg( Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf )
protected void paintRow( Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf )
protected void paintVerticalLine( Graphics g, JComponent c, int x, int top, int bottom )
protected void paintVerticalPartOfLeg( Graphics g, Rectangle clipBounds, Insets insets, TreePath path )
protected void pathWasCollapsed( TreePath path )
protected void pathWasExpanded( TreePath path )
protected void prepareForUIInstall()
protected void prepareForUIUninstall()
protected void selectPathForEvent( TreePath path, MouseEvent event )
protected void setCellEditor( TreeCellEditor editor )
protected void setCellRenderer( TreeCellRenderer tcr )
public void setCollapsedIcon( Icon newG )
protected void setEditable( boolean newValue )
public void setExpandedIcon( Icon newG )
protected void setHashColor( Color color )
protected void setLargeModel( boolean largeModel )
public void setLeftChildIndent( int newAmount )
protected void setModel( TreeModel model )
public void setPreferredMinSize( Dimension newSize )
public void setRightChildIndent( int newAmount )
protected void setRootVisible( boolean newValue )
protected void setRowHeight( int rowHeight )
protected void setSelectionModel( TreeSelectionModel newLSM )
protected void setShowsRootHandles( boolean newValue )
protected boolean shouldPaintExpandControl( TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf )
protected boolean startEditing( TreePath path, MouseEvent event )
public void startEditingAtPath( JTree tree, TreePath path )
public boolean stopEditing( JTree tree )
protected void toggleExpandState( TreePath path )
protected void uninstallComponents()
protected void uninstallDefaults()
protected void uninstallKeyboardActions()
protected void uninstallListeners()
public void uninstallUI( JComponent c )
protected void updateCachedPreferredSize()
protected void updateCellEditor()
protected void updateDepthOffset()
protected void updateExpandedDescendants( TreePath path )
protected void updateLayoutCacheExpandedNodes()
protected void updateLeadSelectionRow()
protected void updateRenderer()
protected void updateSize()

Méthodes héritées de la classe javax.swing.plaf.TreeUI

cancelEditing, getClosestPathForLocation, getEditingPath, getPathBounds, getPathForRow, getRowCount, getRowForPath, isEditing, startEditingAtPath, stopEditing

Méthodes héritées de la classe javax.swing.plaf.ComponentUI

contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait