Class JSpinnerShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class JSpinnerShape extends JComponentShape
An RMShape subclass for JSpinner.
  • Constructor Details

    • JSpinnerShape

      public JSpinnerShape()
  • Method Details

    • getNumber

      public double getNumber()
      Returns the spinner value.
    • setNumber

      public void setNumber(double aValue)
      Sets the spinner value.
    • getMinimum

      public double getMinimum()
      Returns the spinner min.
    • setMinimum

      public void setMinimum(double aValue)
      Sets the spinner min.
    • getMaximum

      public double getMaximum()
      Returns the spinner max.
    • setMaximum

      public void setMaximum(double aValue)
      Sets the spinner min.
    • getStepSize

      public double getStepSize()
      Returns the spinner step size.
    • setStepSize

      public void setStepSize(double aValue)
      Sets the spinner step size.
    • getComponentClass

      public Class<? extends JComponent> getComponentClass()
      Returns the component class for this component shape.
      Overrides:
      getComponentClass in class JComponentShape
    • configureComponent

      protected void configureComponent(JBuilder aBldr, JComponent aComp)
      Configures the component.
      Overrides:
      configureComponent in class JComponentShape
    • toXMLShape

      public RXElement toXMLShape(RXArchiver anArchiver)
      XML archival.
      Overrides:
      toXMLShape in class JComponentShape
    • fromXMLShape

      public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXMLShape in class JComponentShape