Class RenderingInterpolationType.RenderingInterpolationTypeButton

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
com.xinapse.util.NStateButton<RenderingInterpolationType>
com.xinapse.image.RenderingInterpolationType.RenderingInterpolationTypeButton
All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants
Enclosing class:
RenderingInterpolationType

public static class RenderingInterpolationType.RenderingInterpolationTypeButton extends com.xinapse.util.NStateButton<RenderingInterpolationType>
A JButton for setting the RenderingInterpolationType.
See Also:
  • Constructor Details

    • RenderingInterpolationTypeButton

      public RenderingInterpolationTypeButton(com.xinapse.apps.jim.ImageDisplayFrame frame)
      Create a RenderingInterpolationTypeButton.
      Parameters:
      frame - the ImageDisplayFrame in which the button will be used.
  • Method Details

    • incState

      public RenderingInterpolationType incState()
      Increment to the next RenderingInterpolationType.
      Overrides:
      incState in class com.xinapse.util.NStateButton<RenderingInterpolationType>
      Returns:
      the button state after incrementation.
    • getRenderingInterpolationType

      public RenderingInterpolationType getRenderingInterpolationType()
      Returns the current RenderingInterpolationType that this button's current state represents.
      Returns:
      the current RenderingInterpolationType that this button's current state represents.
    • setEnabled

      public void setEnabled(boolean b)
      Overrides:
      setEnabled in class AbstractButton