Class MathComponentUI

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener

    public class MathComponentUI
    extends javax.swing.plaf.ComponentUI
    implements java.beans.PropertyChangeListener
    See http://today.java.net/pub/a/today/2007/02/22/how-to-write-custom-swing- component.html for details.
    Version:
    $Revision: cae99f384592 $
    • Constructor Summary

      Constructors 
      Constructor Description
      MathComponentUI()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Dimension getMaximumSize​(javax.swing.JComponent c)
      java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
      java.util.List<JEuclidView.NodeRect> getNodesAt​(float x, float y)
      Get vector of JEuclidView.NodeRect at a particular mouse position.
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
      protected void installDefaults​(JMathComponent c)
      Configures the default properties from L&F.
      void installUI​(javax.swing.JComponent c)
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)
      void propertyChange​(java.beans.PropertyChangeEvent evt)
      void uninstallUI​(javax.swing.JComponent c)
      void update​(java.awt.Graphics g, javax.swing.JComponent c)
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MathComponentUI

        public MathComponentUI()
        Default constructor.
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.ComponentUI
      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI
      • installUI

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

        protected void installDefaults​(JMathComponent c)
        Configures the default properties from L&F.
        Parameters:
        c - the component
      • uninstallUI

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

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.ComponentUI
      • getMaximumSize

        public java.awt.Dimension getMaximumSize​(javax.swing.JComponent c)
        Overrides:
        getMaximumSize in class javax.swing.plaf.ComponentUI
      • getMinimumSize

        public java.awt.Dimension getMinimumSize​(javax.swing.JComponent c)
        Overrides:
        getMinimumSize in class javax.swing.plaf.ComponentUI
      • getNodesAt

        public java.util.List<JEuclidView.NodeRect> getNodesAt​(float x,
                                                               float y)
        Get vector of JEuclidView.NodeRect at a particular mouse position.
        Parameters:
        x - x-coord
        y - y-coord
        Returns:
        list of nodes with rendering information