common.gui.blame
Class BasicBlamePaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by common.gui.blame.BlamePaneUI
          extended by common.gui.blame.BasicBlamePaneUI
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, javax.swing.event.ChangeListener

public class BasicBlamePaneUI
extends BlamePaneUI
implements javax.swing.event.ChangeListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

UI for the BlamePane to be displayed left of the right scroll bar of the main text area.


Nested Class Summary
 class BasicBlamePaneUI.BlameRendererPane
           
 
Constructor Summary
BasicBlamePaneUI()
           
 
Method Summary
protected  java.awt.LayoutManager createLayoutManager()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 void installComponents()
           
 void installDefaults()
           
 void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
 void mouseClicked(java.awt.event.MouseEvent e)
          On mouse click on the BlamePane, move the cursor in the text area to the corresponding line.
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void stateChanged(javax.swing.event.ChangeEvent event)
           
 void uninstallComponents()
           
 void uninstallDefaults()
           
 void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicBlamePaneUI

public BasicBlamePaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.ComponentUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.ComponentUI

installDefaults

public void installDefaults()

installComponents

public void installComponents()

installListeners

public void installListeners()

uninstallDefaults

public void uninstallDefaults()

uninstallComponents

public void uninstallComponents()

uninstallListeners

public void uninstallListeners()

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent event)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
On mouse click on the BlamePane, move the cursor in the text area to the corresponding line. This makes line highlight (if turned on) line up nicely with the appropriate line in the BlamePane.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener