de.uni_paderborn.fujaba.fsa.swing
Class ArrowGrabUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.PanelUI
          extended byde.uni_paderborn.fujaba.fsa.swing.BendUI
              extended byde.uni_paderborn.fujaba.fsa.swing.GrabUI
                  extended byde.uni_paderborn.fujaba.fsa.swing.ArrowGrabUI

public class ArrowGrabUI
extends GrabUI

UI that displays an Arrow on the grab

Version:
$Revision: 1.16 $
Author:
$Author: lowende $

Nested Class Summary
 class ArrowGrabUI.BendLayoutManager
          No comment provided by developer, please add a comment to improve documentation.
 class ArrowGrabUI.PropertyChangeHandler
          This listener watches for bound properties that have changed in the JComboBox.
 
Constructor Summary
ArrowGrabUI()
           
 
Method Summary
protected  java.awt.Point calculatePoint(javax.swing.JComponent c)
          No comment provided by developer, please add a comment to improve documentation.
protected  void configureArrow()
          Configures the editor by setting its font and adding listeners.
protected  JArrowHead createArrow(JArrowHead arrowHead)
          No comment provided by developer, please add a comment to improve documentation.
protected  java.awt.LayoutManager createLayoutManager()
          No comment provided by developer, please add a comment to improve documentation.
protected  java.beans.PropertyChangeListener createPropertyChangeListener()
          No comment provided by developer, please add a comment to improve documentation.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          No comment provided by developer, please add a comment to improve documentation.
 JArrowHead getArrow()
          Get the arrow attribute of the ArrowGrabUI object
 JBend getBend()
          Get the bend attribute of the ArrowGrabUI object
protected  java.awt.Insets getInsets()
          Gets the insets from the JComboBox.
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
          Get the maximumSize attribute of the ArrowGrabUI object
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
          Get the minimumSize attribute of the ArrowGrabUI object
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
          Get the preferredSize attribute of the ArrowGrabUI object
protected  void installComponents()
          The editor and arrow button are added to the JComboBox here.
protected  void installDefaults()
          Installs the default colors, default font, default renderer, and default editor into the JComboBox.
protected  void installListeners()
          No comment provided by developer, please add a comment to improve documentation.
 void installUI(javax.swing.JComponent c)
          No comment provided by developer, please add a comment to improve documentation.
 boolean isFocusTraversable(JBend c)
          Determines if the JBend is focus traversable.
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          No comment provided by developer, please add a comment to improve documentation.
protected  java.awt.Rectangle rectangleForCurrentValue()
          Returns the area that is reserved for drawing the currently selected item.
 boolean setArrow(JArrowHead arrow)
          Sets the arrow attribute of the ArrowGrabUI object
 boolean setBend(JBend bend)
          Sets the bend attribute of the ArrowGrabUI object
protected  void uninstallComponents()
          The editor and/or arrow button are removed from the JComboBox here.
protected  void uninstallDefaults()
          No comment provided by developer, please add a comment to improve documentation.
protected  void uninstallListeners()
          No comment provided by developer, please add a comment to improve documentation.
 void uninstallUI(javax.swing.JComponent c)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.GrabUI
getAlignmentOffset, getPadOffset, getTouchLength, getTouchOffset
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.BendUI
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowGrabUI

public ArrowGrabUI()
Method Detail

getBend

public JBend getBend()
Get the bend attribute of the ArrowGrabUI object

Returns:
The bend value

setBend

public boolean setBend(JBend bend)
Sets the bend attribute of the ArrowGrabUI object

Parameters:
bend - The new bend value
Returns:
No description provided

getArrow

public JArrowHead getArrow()
Get the arrow attribute of the ArrowGrabUI object

Returns:
The arrow value

setArrow

public boolean setArrow(JArrowHead arrow)
Sets the arrow attribute of the ArrowGrabUI object

Parameters:
arrow - The new arrow value
Returns:
No description provided

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
c - No description provided
Returns:
No description provided

installUI

public void installUI(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
c - No description provided

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
c - No description provided

installDefaults

protected void installDefaults()
Installs the default colors, default font, default renderer, and default editor into the JComboBox.


installListeners

protected void installListeners()
No comment provided by developer, please add a comment to improve documentation.


uninstallDefaults

protected void uninstallDefaults()
No comment provided by developer, please add a comment to improve documentation.


uninstallListeners

protected void uninstallListeners()
No comment provided by developer, please add a comment to improve documentation.


createPropertyChangeListener

protected java.beans.PropertyChangeListener createPropertyChangeListener()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

createArrow

protected JArrowHead createArrow(JArrowHead arrowHead)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
arrowHead - No description provided
Returns:
No description provided

installComponents

protected void installComponents()
The editor and arrow button are added to the JComboBox here.


uninstallComponents

protected void uninstallComponents()
The editor and/or arrow button are removed from the JComboBox here. This method calls removeAll() on the JComboBox just to make sure that everything gets removed.


configureArrow

protected void configureArrow()
Configures the editor by setting its font and adding listeners.


isFocusTraversable

public boolean isFocusTraversable(JBend c)
Determines if the JBend is focus traversable. If the JComboBox is editable this returns false, otherwise it returns true.

Parameters:
c - No description provided
Returns:
The focusTraversable value

calculatePoint

protected java.awt.Point calculatePoint(javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation.

Overrides:
calculatePoint in class GrabUI
Parameters:
c - No description provided
Returns:
No description provided

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
paint in class BendUI
Parameters:
g - No description provided
c - No description provided

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Get the preferredSize attribute of the ArrowGrabUI object

Specified by:
getPreferredSize in class BendUI
Parameters:
c - No description provided
Returns:
The preferredSize value

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Get the minimumSize attribute of the ArrowGrabUI object

Parameters:
c - No description provided
Returns:
The minimumSize value

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
Get the maximumSize attribute of the ArrowGrabUI object

Parameters:
c - No description provided
Returns:
The maximumSize value

rectangleForCurrentValue

protected java.awt.Rectangle rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item.

Returns:
No description provided

getInsets

protected java.awt.Insets getInsets()
Gets the insets from the JComboBox.

Returns:
The insets value