Class FoldIndicatorIcon

  • All Implemented Interfaces:
    javax.swing.Icon
    Direct Known Subclasses:
    ChevronFoldIcon, PlusMinusFoldIcon

    public abstract class FoldIndicatorIcon
    extends java.lang.Object
    implements javax.swing.Icon
    A base class for icons in a FoldIndicator.
    Version:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean armed  
      private boolean collapsed  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected FoldIndicatorIcon​(boolean collapsed)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isArmed()
      Whether this fold is armed.
      protected boolean isCollapsed()
      Returns whether this fold is collapsed.
      protected void setArmed​(boolean armed)
      Toggles whether this fold is armed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Icon

        getIconHeight, getIconWidth, paintIcon
    • Field Detail

      • collapsed

        private final boolean collapsed
      • armed

        private boolean armed
    • Constructor Detail

      • FoldIndicatorIcon

        protected FoldIndicatorIcon​(boolean collapsed)
        Constructor.
        Parameters:
        collapsed - Whether this icon is for a collapsed fold.
    • Method Detail

      • isArmed

        protected boolean isArmed()
        Whether this fold is armed.
        Returns:
        Whether this fold is armed.
        See Also:
        setArmed(boolean)
      • isCollapsed

        protected boolean isCollapsed()
        Returns whether this fold is collapsed.
        Returns:
        Whether this fold is collapsed.
      • setArmed

        protected void setArmed​(boolean armed)
        Toggles whether this fold is armed.
        Parameters:
        armed - Whether this fold is armed.
        See Also:
        isArmed()