Class JSliderShape

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

public class JSliderShape extends JComponentShape
An RMShape subclass for JSlider.
  • Constructor Details

    • JSliderShape

      public JSliderShape()
  • Method Details

    • getMinimum

      public double getMinimum()
      Returns the minimum.
    • setMinimum

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

      public double getMaximum()
      Returns the maximum.
    • setMaximum

      public void setMaximum(double aValue)
      Sets the maximum.
    • getValue

      public double getValue()
      Returns the value.
    • setValue

      public void setValue(double aValue)
      Sets the value.
    • getPaintLabels

      public boolean getPaintLabels()
      Returns whether paints labels.
    • setPaintLabels

      public void setPaintLabels(boolean aValue)
      Sets whether paints labels.
    • getPaintTicks

      public boolean getPaintTicks()
      Returns whether paints ticks.
    • setPaintTicks

      public void setPaintTicks(boolean aValue)
      Sets whether paints ticks.
    • getPaintTrack

      public boolean getPaintTrack()
      Returns whether paints track.
    • setPaintTrack

      public void setPaintTrack(boolean aValue)
      Sets whether paints track.
    • getSnapToTicks

      public boolean getSnapToTicks()
      Returns whether snaps to ticks.
    • setSnapToTicks

      public void setSnapToTicks(boolean aValue)
      Sets whether snaps to ticks.
    • getMinorTickSpacing

      public int getMinorTickSpacing()
      Returns the minor tick spacing.
    • setMinorTickSpacing

      public void setMinorTickSpacing(int aValue)
      Sets the minor tick spacing.
    • getMajorTickSpacing

      public int getMajorTickSpacing()
      Returns the major tick spacing.
    • setMajorTickSpacing

      public void setMajorTickSpacing(int aValue)
      Sets the major tick spacing.
    • getOrientation

      public int getOrientation()
      Returns the orientation of the JSeparator.
    • setOrientation

      public void setOrientation(int aValue)
      Resets the orientation of the separator component and resizes the shape.
    • 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