Known Direct Subclasses
  
 | 
Class Overview
Basic L&F for a minimized window on a desktop.
 
Summary
| Nested Classes | 
  
    
      | 
        
         
         
        
        class | 
      BasicDesktopIconUI.MouseInputHandler | 
      Listens for mouse movements and acts on them.  | 
    
    
    
| 
  [Expand]
   Inherited Methods  | 
   
From class
  javax.swing.plaf.ComponentUI
 | 
   
From class
  java.lang.Object
  
   
  
    
    
	 
    
        | 
            
            
            
            
            
            Object
         | 
        
        clone()
        
         Creates and returns a copy of this object. 
  
   |  
	 
    
        | 
            
            
            
            
            
            boolean
         | 
        
        equals(Object obj)
        
         Indicates whether some other object is "equal to" this one. 
  
   |  
	 
    
        | 
            
            
            
            
            
            void
         | 
        
        finalize()
        
         Called by the garbage collector on an object when garbage collection
 determines that there are no more references to the object. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            Class<?>
         | 
        
        getClass()
        
         Returns the runtime class of this Object. 
  
   |  
	 
    
        | 
            
            
            
            
            
            int
         | 
        
        hashCode()
        
         Returns a hash code value for the object. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        notify()
        
         Wakes up a single thread that is waiting on this object's
 monitor. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        notifyAll()
        
         Wakes up all threads that are waiting on this object's monitor. 
  
   |  
	 
    
        | 
            
            
            
            
            
            String
         | 
        
        toString()
        
         Returns a string representation of the object. 
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        wait()
        
        Causes the current thread to wait until another thread invokes the
  notify() method or the
  notifyAll() method for this object.  
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        wait(long timeout, int nanos)
        
        Causes the current thread to wait until another thread invokes the
  notify() method or the
  notifyAll() method for this object, or
 some other thread interrupts the current thread, or a certain
 amount of real time has elapsed.  
  
   |  
	 
    
        | 
            
            
            final
            
            
            void
         | 
        
        wait(long timeout)
        
        Causes the current thread to wait until either another thread invokes the
  notify() method or the
  notifyAll() method for this object, or a
 specified amount of time has elapsed.  
  
   |  
 
   
 
 | 
Fields
 
    
      
        
        
  
      
    
      
  The title pane component used in the desktop icon.
 
    
     
 
Public Constructors
 
    
      
        public 
         
         
         
         
        
      
      BasicDesktopIconUI
      ()
    
      
    
 
Public Methods
 
    
      
    
      
  Desktop icons can not be resized.  Therefore, we should always
 return the minimum size of the desktop icon.
 
  
      Parameters
      
        
          | c
           | the component whose maximum size is being queried;
          this argument is often ignored,
          but might be used if the UI object is stateless
          and shared by multiple components | 
        
      
   
  
      Returns
      - a 
Dimension object or null 
   
  
     
 
 
    
      
    
      
  Returns the specified component's minimum size appropriate for
 the look and feel.  If null is returned, the minimum
 size will be calculated by the component's layout manager instead
 (this is the preferred approach for any component with a specific
 layout manager installed).  The default implementation of this
 method invokes getPreferredSize and returns that value.
 
  
      Parameters
      
        
          | c
           | the component whose minimum size is being queried;
          this argument is often ignored,
          but might be used if the UI object is stateless
          and shared by multiple components | 
        
      
   
  
      Returns
      - a 
Dimension object or null 
   
     
 
 
    
      
    
      
  Returns the specified component's preferred size appropriate for
 the look and feel.  If null is returned, the preferred
 size will be calculated by the component's layout manager instead
 (this is the preferred approach for any component with a specific
 layout manager installed).  The default implementation of this
 method returns null.
 
  
      Parameters
      
        
          | c
           | the component whose preferred size is being queried;
          this argument is often ignored,
          but might be used if the UI object is stateless
          and shared by multiple components | 
        
      
   
     
 
 
    
      
        public 
         
         
         
         
        void
      
      installUI
      (JComponent c)
    
      
    
      
  Configures the specified component appropriate for the look and feel.
 This method is invoked when the ComponentUI instance is being installed
 as the UI delegate on the specified component.  This method should
 completely configure the component for the look and feel,
 including the following:
 
 - Install any default property values for color, fonts, borders,
     icons, opacity, etc. on the component.  Whenever possible,
     property values initialized by the client program should not
     be overridden.
 
 - Install a 
LayoutManager on the component if necessary.
  - Create/add any required sub-components to the component.
 
 - Create/install event listeners on the component.
 
 - Create/install a 
PropertyChangeListener on the component in order
     to detect and respond to component property changes appropriately.
  - Install keyboard UI (mnemonics, traversal, etc.) on the component.
 
 - Initialize any appropriate instance data.
 
 
 
  
      Parameters
      
        
          | c
           | the component where this UI delegate is being installed | 
        
      
   
     
 
 
    
      
        public 
         
         
         
         
        void
      
      uninstallUI
      (JComponent c)
    
      
    
      
  Reverses configuration which was done on the specified component during
 installUI.  This method is invoked when this
 UIComponent instance is being removed as the UI delegate
 for the specified component.  This method should undo the
 configuration performed in installUI, being careful to
 leave the JComponent instance in a clean state (no
 extraneous listeners, look-and-feel-specific property objects, etc.).
 This should include the following:
 
 - Remove any UI-set borders from the component.
 
 - Remove any UI-set layout managers on the component.
 
 - Remove any UI-added sub-components from the component.
 
 - Remove any UI-added event/property listeners from the component.
 
 - Remove any UI-installed keyboard UI from the component.
 
 - Nullify any allocated instance data objects to allow for GC.
 
 
 
  
      Parameters
      
        
          | c
           | the component from which this UI delegate is being removed;
          this argument is often ignored,
          but might be used if the UI object is stateless
          and shared by multiple components | 
        
      
   
     
 
Protected Methods
 
    
      
        protected 
         
         
         
         
        void
      
      installComponents
      ()
    
      
    
 
 
    
      
        protected 
         
         
         
         
        void
      
      installDefaults
      ()
    
      
    
 
 
    
      
        protected 
         
         
         
         
        void
      
      installListeners
      ()
    
      
    
 
 
    
      
        protected 
         
         
         
         
        void
      
      uninstallComponents
      ()
    
      
    
 
 
    
      
        protected 
         
         
         
         
        void
      
      uninstallDefaults
      ()
    
      
    
 
 
    
      
        protected 
         
         
         
         
        void
      
      uninstallListeners
      ()