Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VAquaRendering - Java Native Rendering for OS X
Class org.violetlib.jnr.aqua.HybridAquaUIPainter
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.jnr.aqua

Class HybridAquaUIPainter

  • Object
    • HybridAquaUIPainter
  • All Implemented Interfaces:
    AquaUIPainter
    public class HybridAquaUIPainter extends Object implements AquaUIPainter
    A hybrid painter that uses the best available implementation for each given configuration.
    • Nested Classes 
      Modifier and Type Class and Description
      Inherited member indicator ButtonState Reveal DetailHide Detail
      static class ButtonState
      States of a toggle button.
      static class ButtonState
      States of a toggle button.
      Inherited member indicator ButtonWidget Reveal DetailHide Detail
      static class ButtonWidget
      Widgets for a button.
      static class ButtonWidget
      Widgets for a button.
      Inherited member indicator ColumnSortArrowDirection Reveal DetailHide Detail
      static class ColumnSortArrowDirection
      Direction options for a column sort indicator in a table header.
      static class ColumnSortArrowDirection
      Direction options for a column sort indicator in a table header.
      Inherited member indicator ComboBoxWidget Reveal DetailHide Detail
      static class ComboBoxWidget
      Widgets for an editable combo box.
      static class ComboBoxWidget
      Widgets for an editable combo box.
      Inherited member indicator Direction Reveal DetailHide Detail
      static class Direction
      Direction options.
      static class Direction
      Direction options.
      Inherited member indicator DividerWidget Reveal DetailHide Detail
      static class DividerWidget
      Widgets for a split pane divider.
      static class DividerWidget
      Widgets for a split pane divider.
      Inherited member indicator GradientWidget Reveal DetailHide Detail
      static class GradientWidget
      Widgets for a gradient background.
      static class GradientWidget
      Widgets for a gradient background.
      Inherited member indicator HorizontalAlignment Reveal DetailHide Detail
      static class HorizontalAlignment
      Horizontal alignment options.
      static class HorizontalAlignment
      Horizontal alignment options.
      Inherited member indicator Orientation Reveal DetailHide Detail
      static class Orientation
      Orientation options.
      static class Orientation
      Orientation options.
      Inherited member indicator PopupButtonWidget Reveal DetailHide Detail
      static class PopupButtonWidget
      Widgets for a non-editable combo box.
      static class PopupButtonWidget
      Widgets for a non-editable combo box.
      Inherited member indicator Position Reveal DetailHide Detail
      static class Position
      Options for the position of a button in a segmented control.
      static class Position
      Options for the position of a button in a segmented control.
      Inherited member indicator ProgressWidget Reveal DetailHide Detail
      static class ProgressWidget
      Widgets for a progress indicator.
      static class ProgressWidget
      Widgets for a progress indicator.
      Inherited member indicator ScrollBarKnobWidget Reveal DetailHide Detail
      static class ScrollBarKnobWidget
      Widgets for a scroll bar knob.
      static class ScrollBarKnobWidget
      Widgets for a scroll bar knob.
      Inherited member indicator ScrollBarWidget Reveal DetailHide Detail
      static class ScrollBarWidget
      Widgets for a scroll bar.
      static class ScrollBarWidget
      Widgets for a scroll bar.
      Inherited member indicator SegmentedButtonWidget Reveal DetailHide Detail
      static class SegmentedButtonWidget
      Widgets for a button in a segmented control.
      static class SegmentedButtonWidget
      Widgets for a button in a segmented control.
      Inherited member indicator Size Reveal DetailHide Detail
      static class Size
      Size options.
      static class Size
      Size options.
      Inherited member indicator SliderWidget Reveal DetailHide Detail
      static class SliderWidget
      Widgets for a slider.
      static class SliderWidget
      Widgets for a slider.
      Inherited member indicator State Reveal DetailHide Detail
      static class State
      States of a component.
      static class State
      States of a component.
      Inherited member indicator TextFieldWidget Reveal DetailHide Detail
      static class TextFieldWidget
      Widgets for a text field.
      static class TextFieldWidget
      Widgets for a text field.
      Inherited member indicator TickMarkPosition Reveal DetailHide Detail
      static class TickMarkPosition
      Options for the position of slider tick marks.
      static class TickMarkPosition
      Options for the position of slider tick marks.
      Inherited member indicator TitleBarButtonWidget Reveal DetailHide Detail
      static class TitleBarButtonWidget
      Widgets for a button on a window title bar.
      static class TitleBarButtonWidget
      Widgets for a button on a window title bar.
      Inherited member indicator TitleBarWidget Reveal DetailHide Detail
      static class TitleBarWidget
      Widgets for window title bar.
      static class TitleBarWidget
      Widgets for window title bar.
      Inherited member indicator UILayoutDirection Reveal DetailHide Detail
      static class UILayoutDirection
      User interface layout direction options.
      static class UILayoutDirection
      User interface layout direction options.
      Inherited member indicator VerticalAlignment Reveal DetailHide Detail
      static class VerticalAlignment
      Vertical alignment options.
      static class VerticalAlignment
      Vertical alignment options.
    • Constructors 
      Constructor and Description
      Ordinary member indicator HybridAquaUIPainter Reveal DetailHide Detail
      HybridAquaUIPainter(AquaUIPainter viewPainter, AquaUIPainter coreUIPainter, AquaUIPainter jrsPainter)
       
      public HybridAquaUIPainter(@NotNull AquaUIPainter viewPainter, @NotNull AquaUIPainter coreUIPainter, @Nullable AquaUIPainter jrsPainter)
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator configure Reveal DetailHide Detail
      void configure(int w, int h)
      Configure the generic parameters for the next request.
      public void configure(int w, int h)
      Description copied from interface: AquaUIPainter
      Configure the generic parameters for the next request.
      Specified by:
      configure in interface AquaUIPainter
      Parameters:
      w - The width of the widget.
      h - The height of the widget.
      Ordinary member indicator copy Reveal DetailHide Detail
      HybridAquaUIPainter copy()
      Create a new instance with the same implementation.
      @NotNull public HybridAquaUIPainter copy()
      Description copied from interface: AquaUIPainter
      Create a new instance with the same implementation.
      Specified by:
      copy in interface AquaUIPainter
      Ordinary member indicator getComboBoxEditorBounds Reveal DetailHide Detail
      Rectangle2D getComboBoxEditorBounds(ComboBoxLayoutConfiguration g)
      Return the bounds of the editor area of a combo box based on the configured width and height.
      @NotNull public Rectangle2D getComboBoxEditorBounds(@NotNull ComboBoxLayoutConfiguration g)
      Description copied from interface: AquaUIPainter
      Return the bounds of the editor area of a combo box based on the configured width and height. The bounds of the editor area may differ from that predicted using the editor insets if the rendering is limited in width or height.
      Specified by:
      getComboBoxEditorBounds in interface AquaUIPainter
      Parameters:
      g - This parameter specifies the layout configuration of the combo box.
      Ordinary member indicator getComboBoxIndicatorBounds Reveal DetailHide Detail
      Rectangle2D getComboBoxIndicatorBounds(ComboBoxLayoutConfiguration g)
      Return the bounds of the indicator within the combo box based on the configured width and height.
      @NotNull public Rectangle2D getComboBoxIndicatorBounds(@NotNull ComboBoxLayoutConfiguration g)
      Description copied from interface: AquaUIPainter
      Return the bounds of the indicator within the combo box based on the configured width and height.
      Specified by:
      getComboBoxIndicatorBounds in interface AquaUIPainter
      Parameters:
      g - This parameter specifies the layout configuration of the segmented button.
      Ordinary member indicator getLayoutInfo Reveal DetailHide Detail
      AquaUILayoutInfo getLayoutInfo()
      Return a provider of layout information.
      @NotNull public AquaUILayoutInfo getLayoutInfo()
      Description copied from interface: AquaUIPainter
      Return a provider of layout information.
      Specified by:
      getLayoutInfo in interface AquaUIPainter
      Ordinary member indicator getOutline Reveal DetailHide Detail
      Shape getOutline(LayoutConfiguration g)
      Return the visible outline of a widget based on the configured width and height.
      @Nullable public Shape getOutline(@NotNull LayoutConfiguration g)
      Description copied from interface: AquaUIPainter
      Return the visible outline of a widget based on the configured width and height. The returned shape can be used to create a focus ring. The returned shape need not correspond exactly to the painted area. For example, a shadow might be painted outside this shape.
      Specified by:
      getOutline in interface AquaUIPainter
      Parameters:
      g - This configuration describes the widget.
      Returns:
      the outline.
      Ordinary member indicator getPainter Reveal DetailHide Detail
      Painter getPainter(Configuration g)
      Return a widget painter based on the specified configuration and the previously configured widget size.
      @NotNull public Painter getPainter(@NotNull Configuration g) throws UnsupportedOperationException
      Description copied from interface: AquaUIPainter
      Return a widget painter based on the specified configuration and the previously configured widget size.
      Specified by:
      getPainter in interface AquaUIPainter
      Parameters:
      g - The widget configuration.
      Returns:
      the painter.
      Throws:
      UnsupportedOperationException - if the configuration is not supported.
      Ordinary member indicator getPopupButtonContentBounds Reveal DetailHide Detail
      Rectangle2D getPopupButtonContentBounds(PopupButtonLayoutConfiguration g)
      Return the bounds of the content area of a pop up button based on the configured width and height.
      @NotNull public Rectangle2D getPopupButtonContentBounds(@NotNull PopupButtonLayoutConfiguration g)
      Description copied from interface: AquaUIPainter
      Return the bounds of the content area of a pop up button based on the configured width and height. The bounds of the content area may differ from that predicted using the content insets if the rendering is limited in width or height.
      Specified by:
      getPopupButtonContentBounds in interface AquaUIPainter
      Parameters:
      g - This parameter specifies the layout configuration of the pop up button.
      Ordinary member indicator getScrollBarThumbPosition Reveal DetailHide Detail
      float getScrollBarThumbPosition(ScrollBarThumbLayoutConfiguration g)
      Map a mouse coordinate along the scroll bar axis to a thumb position along the scroll bar track.
      public float getScrollBarThumbPosition(@NotNull ScrollBarThumbLayoutConfiguration g)
      Description copied from interface: AquaUIPainter
      Map a mouse coordinate along the scroll bar axis to a thumb position along the scroll bar track. This method relies on the previously configured widget size.
      Specified by:
      getScrollBarThumbPosition in interface AquaUIPainter
      Parameters:
      g - This parameter describes the scroll bar and the thumb position.
      Returns:
      the thumb position as a fraction of the scroll bar track, if in the range 0 to 1 (inclusive), or a value less than 0 if the coordinate is outside the track in the area corresponding to low values, or a value greater than 1 if the coordinate is outside the track in the area corresponding to high values. The scroll bar track is the portion of the widget that the thumb can occupy.
      Ordinary member indicator getSliderLabelBounds Reveal DetailHide Detail
      Rectangle2D getSliderLabelBounds(SliderLayoutConfiguration g, double thumbPosition, Dimension size)
      Return the recommended bounds for a label corresponding to a given thumb position.
      @NotNull public Rectangle2D getSliderLabelBounds(@NotNull SliderLayoutConfiguration g, double thumbPosition, @NotNull Dimension size)
      Description copied from interface: AquaUIPainter
      Return the recommended bounds for a label corresponding to a given thumb position. This method relies on the previously configured widget size.
      Specified by:
      getSliderLabelBounds in interface AquaUIPainter
      Parameters:
      g - This parameter specifies the layout configuration of the slider.
      thumbPosition - The thumb position represented by the label, expressed as a fraction of the slider range, in the range 0 to 1 (inclusive). Thumb position 0 corresponds to the lowest slider value.
      size - The intended size of the label.
      Returns:
      the recommended bounds for the label.
      Ordinary member indicator getSliderThumbBounds Reveal DetailHide Detail
      Rectangle2D getSliderThumbBounds(SliderLayoutConfiguration g, double thumbPosition)
      Return the bounds of the thumb area based on the configured width and height.
      @NotNull public Rectangle2D getSliderThumbBounds(@NotNull SliderLayoutConfiguration g, double thumbPosition)
      Description copied from interface: AquaUIPainter
      Return the bounds of the thumb area based on the configured width and height.
      Specified by:
      getSliderThumbBounds in interface AquaUIPainter
      Parameters:
      g - This parameter specifies the layout configuration of the slider.
      thumbPosition - The position where the thumb would be be painted, expressed as a fraction of the slider range, in the range 0 to 1 (inclusive). Thumb position 0 corresponds to the lowest slider value.
      Ordinary member indicator getSliderThumbPosition Reveal DetailHide Detail
      double getSliderThumbPosition(SliderLayoutConfiguration g, int x, int y)
      Map a mouse coordinate to a slider thumb position.
      public double getSliderThumbPosition(@NotNull SliderLayoutConfiguration g, int x, int y)
      Description copied from interface: AquaUIPainter
      Map a mouse coordinate to a slider thumb position. This method relies on the previously configured widget size.
      Specified by:
      getSliderThumbPosition in interface AquaUIPainter
      Parameters:
      g - This parameter specifies the layout configuration of the slider.
      x - The x coordinate relative to the configured bounds.
      y - The y coordinate relative to the configured bounds.
      Returns:
      the thumb position as a fraction of the slider range, if in the range 0 to 1 (inclusive), or a value less than 0 if the coordinate is outside the slider range in the area corresponding to low values, or a value greater than 1 if the coordinate is outside the slider range in the area corresponding to high values.
      • Methods inherited from class Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait