Class SegmentedButtonConfiguration
- Object
-
- LayoutConfiguration
-
- SegmentedButtonLayoutConfiguration
-
- SegmentedButtonConfiguration
-
- All Implemented Interfaces:
- Configuration
public class SegmentedButtonConfiguration extends SegmentedButtonLayoutConfiguration implements ConfigurationA 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 DividerState The display configuration of a divider between two segments in a segmented control.
-