Class SegmentedBar.SegmentView

All Implemented Interfaces:
Styleable, EventTarget
Enclosing class:
SegmentedBar<T extends SegmentedBar.Segment>

public class SegmentedBar.SegmentView extends StackPane
The view class used by the default segment view factory. The view is a simple StackPane that contains a label. The default style class is "segment-view".
See Also:
  • Constructor Details

    • SegmentView

      public SegmentView(T segment)
      Constructs a new segment view.
      Parameters:
      segment - the segment for which the view will be created.
  • Method Details

    • layoutChildren

      protected void layoutChildren()
      The layout method has been overridden to ensure that the label used for displaying the text of a segment will be made invisible when there is not enough space to show the entire text.
      Overrides:
      layoutChildren in class StackPane