< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java

Print this page




  23  * questions.
  24  */
  25 package javax.swing.plaf.basic;
  26 
  27 import java.awt.Dimension;
  28 import java.awt.Graphics;
  29 import java.awt.Color;
  30 
  31 import javax.swing.*;
  32 import javax.swing.plaf.UIResource;
  33 
  34 /**
  35  * JButton object that draws a scaled Arrow in one of the cardinal directions.
  36  * <p>
  37  * <strong>Warning:</strong>
  38  * Serialized objects of this class will not be compatible with
  39  * future Swing releases. The current serialization support is
  40  * appropriate for short term storage or RMI between applications running
  41  * the same version of Swing.  As of 1.4, support for long term storage
  42  * of all JavaBeans&trade;
  43  * has been added to the <code>java.beans</code> package.
  44  * Please see {@link java.beans.XMLEncoder}.
  45  *
  46  * @author David Kloba
  47  */
  48 @SuppressWarnings("serial") // Same-version serialization only
  49 public class BasicArrowButton extends JButton implements SwingConstants
  50 {
  51         /**
  52          * The direction of the arrow. One of
  53          * {@code SwingConstants.NORTH}, {@code SwingConstants.SOUTH},
  54          * {@code SwingConstants.EAST} or {@code SwingConstants.WEST}.
  55          */
  56         protected int direction;
  57 
  58         private Color shadow;
  59         private Color darkShadow;
  60         private Color highlight;
  61 
  62         /**
  63          * Creates a {@code BasicArrowButton} whose arrow




  23  * questions.
  24  */
  25 package javax.swing.plaf.basic;
  26 
  27 import java.awt.Dimension;
  28 import java.awt.Graphics;
  29 import java.awt.Color;
  30 
  31 import javax.swing.*;
  32 import javax.swing.plaf.UIResource;
  33 
  34 /**
  35  * JButton object that draws a scaled Arrow in one of the cardinal directions.
  36  * <p>
  37  * <strong>Warning:</strong>
  38  * Serialized objects of this class will not be compatible with
  39  * future Swing releases. The current serialization support is
  40  * appropriate for short term storage or RMI between applications running
  41  * the same version of Swing.  As of 1.4, support for long term storage
  42  * of all JavaBeans&trade;
  43  * has been added to the {@code java.beans} package.
  44  * Please see {@link java.beans.XMLEncoder}.
  45  *
  46  * @author David Kloba
  47  */
  48 @SuppressWarnings("serial") // Same-version serialization only
  49 public class BasicArrowButton extends JButton implements SwingConstants
  50 {
  51         /**
  52          * The direction of the arrow. One of
  53          * {@code SwingConstants.NORTH}, {@code SwingConstants.SOUTH},
  54          * {@code SwingConstants.EAST} or {@code SwingConstants.WEST}.
  55          */
  56         protected int direction;
  57 
  58         private Color shadow;
  59         private Color darkShadow;
  60         private Color highlight;
  61 
  62         /**
  63          * Creates a {@code BasicArrowButton} whose arrow


< prev index next >