Package net.sourceforge.jeuclid.swing
Class MathComponentUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- net.sourceforge.jeuclid.swing.MathComponentUI
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener,java.util.EventListener
public class MathComponentUI extends javax.swing.plaf.ComponentUI implements java.beans.PropertyChangeListenerSee 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.DimensiongetMaximumSize(javax.swing.JComponent c)java.awt.DimensiongetMinimumSize(javax.swing.JComponent c)java.util.List<JEuclidView.NodeRect>getNodesAt(float x, float y)Get vector ofJEuclidView.NodeRectat a particular mouse position.java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)protected voidinstallDefaults(JMathComponent c)Configures the default properties from L&F.voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)voidpropertyChange(java.beans.PropertyChangeEvent evt)voiduninstallUI(javax.swing.JComponent c)voidupdate(java.awt.Graphics g, javax.swing.JComponent c)
-
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.ComponentUI
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.ComponentUI
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.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:
uninstallUIin classjavax.swing.plaf.ComponentUI
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.ComponentUI
-
getMaximumSize
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
- Overrides:
getMaximumSizein classjavax.swing.plaf.ComponentUI
-
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSizein classjavax.swing.plaf.ComponentUI
-
getNodesAt
public java.util.List<JEuclidView.NodeRect> getNodesAt(float x, float y)
Get vector ofJEuclidView.NodeRectat a particular mouse position.- Parameters:
x- x-coordy- y-coord- Returns:
- list of nodes with rendering information
-
-