Class JScrollPaneShape

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

public class JScrollPaneShape extends JComponentShape
A JComponentShape subclass to represent a JScrollPane.
  • Constructor Details

    • JScrollPaneShape

      public JScrollPaneShape()
  • Method Details

    • getHorizontalScrollBarPolicy

      public int getHorizontalScrollBarPolicy()
      Returns the horizontal scrollbar policy.
    • setHorizontalScrollBarPolicy

      public void setHorizontalScrollBarPolicy(int aValue)
      Sets the horizontal scrollbar policy.
    • getVerticalScrollBarPolicy

      public int getVerticalScrollBarPolicy()
      Returns the vertical scrollbar policy.
    • setVerticalScrollBarPolicy

      public void setVerticalScrollBarPolicy(int aValue)
      Sets the vertical scrollbar policy.
    • getViewportViewShape

      public JComponentShape getViewportViewShape()
      Returns the shape that is scrolling.
    • 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
    • createComponentDeep

      public void createComponentDeep(JBuilder aBldr, JComponent aComp)
      Returns the component deep.
      Overrides:
      createComponentDeep in class JComponentShape
    • setWidth

      public void setWidth(double aWidth)
      Override default implementation to deal with viewport view shape.
      Overrides:
      setWidth in class RMParentShape
    • setHeight

      public void setHeight(double aHeight)
      Override default implementation to deal with viewport view shape.
      Overrides:
      setHeight in class RMParentShape
    • getBoundsMarkedDeep

      public RMRect getBoundsMarkedDeep()
      Override to account for fact that scroll pane clips viewport shape.
      Overrides:
      getBoundsMarkedDeep in class RMShape
    • superSelectable

      public boolean superSelectable()
      Overrides default implementation to indicate shape is super selectable.
      Overrides:
      superSelectable in class RMShape
    • childrenSuperSelectImmediately

      public boolean childrenSuperSelectImmediately()
      Overrides default implementation to indicate children should super select immediately.
      Overrides:
      childrenSuperSelectImmediately in class RMShape
    • toXMLShape

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

      public void toXMLChildren(RXArchiver anArchiver, RXElement anElement)
      XML archival deep.
      Overrides:
      toXMLChildren in class JComponentShape
    • fromXMLShape

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