net.sourceforge.jeuclid.swing
Class MathComponentUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by net.sourceforge.jeuclid.swing.MathComponentUI
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class MathComponentUI
extends ComponentUI
implements PropertyChangeListener

See http://today.java.net/pub/a/today/2007/02/22/how-to-write-custom-swing-component.html for details.

Version:
$Revision: 442 $
Author:
putrycze

Constructor Summary
MathComponentUI()
          Creates a new UI.
 
Method Summary
 Dimension getMinimumSize(JComponent c)
          
protected  void installDefaults(JMathComponent c)
          Configures the default properties from L&F.
 void installUI(JComponent c)
          
 void paint(Graphics g, JComponent c)
          
 void propertyChange(PropertyChangeEvent evt)
          
 void uninstallUI(JComponent c)
          
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathComponentUI

public MathComponentUI()
Creates a new UI.

Method Detail

paint

public void paint(Graphics g,
                  JComponent c)

Overrides:
paint in class ComponentUI

installUI

public void installUI(JComponent c)

Overrides:
installUI in class ComponentUI

installDefaults

protected void installDefaults(JMathComponent c)
Configures the default properties from L&F.

Parameters:
c - the component

uninstallUI

public void uninstallUI(JComponent c)

Overrides:
uninstallUI in class ComponentUI

propertyChange

public void propertyChange(PropertyChangeEvent evt)

Specified by:
propertyChange in interface PropertyChangeListener

getMinimumSize

public Dimension getMinimumSize(JComponent c)

Overrides:
getMinimumSize in class ComponentUI


Copyright © 2002-2008 The JEuclid project. All Rights Reserved.