Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VAquaRendering - Release 1
Class org.violetlib.jnr.aqua.SegmentedButtonConfiguration
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.jnr.aqua

Class SegmentedButtonConfiguration

  • Object
    • LayoutConfiguration
      • SegmentedButtonLayoutConfiguration
        • SegmentedButtonConfiguration
  • All Implemented Interfaces:
    Configuration
    public class SegmentedButtonConfiguration extends SegmentedButtonLayoutConfiguration implements Configuration
    A configuration for a segmented button.

    The painting model for segmented buttons follows the Java model. The buttons are abutted with no overlap. For each divider between two buttons, the client code decides which button owns the divider and sets the drawLeadingSeparator and drawTrailingSeparator parameters appropriately. The divider is painted in the space allocated to the button that owns the divider. Because Java normally does not know which buttons are part of a segmented control, the normal policy is for the button on the left to own the divider. Code that knows about the buttons in a segmented control can get slightly better results by having the selected button own the dividers on either side, buttons to the left of the selected button own the dividers to their left, and buttons to the right of the selected button own the dividers to their right.

    We currently assume that writing direction does not affect the appearance of the buttons and dividers, so that left always means left or top and right always means right or bottom.

    • Nested Classes 
      Modifier and Type Class and Description
      Ordinary member indicator DividerState Reveal DetailHide Detail
      static class DividerState
      The display configuration of a divider between two segments in a segmented control.
      static class DividerState
      The display configuration of a divider between two segments in a segmented control.
    • Constructors 
      Constructor and Description
      Ordinary member indicator SegmentedButtonConfiguration Reveal DetailHide Detail
      SegmentedButtonConfiguration(AquaUIPainter.SegmentedButtonWidget bw, AquaUIPainter.Size size, AquaUIPainter.State state, boolean isSelected, boolean isFocused, AquaUIPainter.Direction d, AquaUIPainter.Position position, SegmentedButtonConfiguration.DividerState leftDividerState, SegmentedButtonConfiguration.DividerState rightDividerState)
       
      public SegmentedButtonConfiguration(@NotNull AquaUIPainter.SegmentedButtonWidget bw, @NotNull AquaUIPainter.Size size, @NotNull AquaUIPainter.State state, boolean isSelected, boolean isFocused, @NotNull AquaUIPainter.Direction d, @NotNull AquaUIPainter.Position position, @NotNull SegmentedButtonConfiguration.DividerState leftDividerState, @NotNull SegmentedButtonConfiguration.DividerState rightDividerState)
      Ordinary member indicator SegmentedButtonConfiguration Reveal DetailHide Detail
      SegmentedButtonConfiguration(SegmentedButtonLayoutConfiguration g, AquaUIPainter.State state, boolean isSelected, boolean isFocused, AquaUIPainter.Direction d, SegmentedButtonConfiguration.DividerState leftDividerState, SegmentedButtonConfiguration.DividerState rightDividerState)
       
      public SegmentedButtonConfiguration(@NotNull SegmentedButtonLayoutConfiguration g, @NotNull AquaUIPainter.State state, boolean isSelected, boolean isFocused, @NotNull AquaUIPainter.Direction d, @NotNull SegmentedButtonConfiguration.DividerState leftDividerState, @NotNull SegmentedButtonConfiguration.DividerState rightDividerState)
    • Methods 
      Modifier and Type Method and Description
      Overridden member indicator equals Reveal DetailHide Detail
      boolean equals(Object o)
       
      public boolean equals(@Nullable Object o)
      Ordinary member indicator getDirection Reveal DetailHide Detail
      AquaUIPainter.Direction getDirection()
       
      @NotNull public AquaUIPainter.Direction getDirection()
      Ordinary member indicator getLeftDividerState Reveal DetailHide Detail
      SegmentedButtonConfiguration.DividerState getLeftDividerState()
       
      @NotNull public SegmentedButtonConfiguration.DividerState getLeftDividerState()
      Inherited member indicator getPosition Reveal DetailHide Detail
      AquaUIPainter.Position getPosition()
       
      @NotNull public AquaUIPainter.Position getPosition()
      Ordinary member indicator getRightDividerState Reveal DetailHide Detail
      SegmentedButtonConfiguration.DividerState getRightDividerState()
       
      @NotNull public SegmentedButtonConfiguration.DividerState getRightDividerState()
      Inherited member indicator getSize Reveal DetailHide Detail
      AquaUIPainter.Size getSize()
       
      @NotNull public AquaUIPainter.Size getSize()
      Ordinary member indicator getState Reveal DetailHide Detail
      AquaUIPainter.State getState()
       
      @NotNull public AquaUIPainter.State getState()
      Inherited member indicator getWidget Reveal DetailHide Detail
      AquaUIPainter.SegmentedButtonWidget getWidget()
       
      @NotNull public AquaUIPainter.SegmentedButtonWidget getWidget()
      Overridden member indicator hashCode Reveal DetailHide Detail
      int hashCode()
       
      public int hashCode()
      Ordinary member indicator isFocused Reveal DetailHide Detail
      boolean isFocused()
       
      public boolean isFocused()
      Ordinary member indicator isSelected Reveal DetailHide Detail
      boolean isSelected()
       
      public boolean isSelected()
      Overridden member indicator toString Reveal DetailHide Detail
      String toString()
       
      @NotNull public String toString()
      • Methods inherited from class Object

        getClass, notify, notifyAll, wait, wait, wait