|
Modifier and Type |
Method and Description |
 |
configure   |
void configure(int w,
int h)
Configure the generic parameters for the next request.
public void configure(int w,
int h)
-
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.
|
 |
copy   |
Create a new instance with the same implementation.
-
Create a new instance with the same implementation.
- Specified by:
copy in interface AquaUIPainter
|
 |
getComboBoxEditorBounds   |
Rectangle2D getComboBoxEditorBounds(ComboBoxLayoutConfiguration g)
Return the bounds of the editor area of a combo box based on the configured width and height.
-
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.
|
 |
getComboBoxIndicatorBounds   |
Rectangle2D getComboBoxIndicatorBounds(ComboBoxLayoutConfiguration g)
Return the bounds of the indicator within the combo box based on the configured width and height.
-
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.
|
 |
getLayoutInfo   |
Return a provider of layout information.
|
 |
getOutline   |
Shape getOutline(LayoutConfiguration g)
Return the visible outline of a widget based on the configured width and height.
-
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.
|
 |
getPainter   |
Painter getPainter(Configuration g)
Return a widget painter based on the specified configuration and the previously configured widget size.
-
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.
|
 |
getPopupButtonContentBounds   |
Rectangle2D getPopupButtonContentBounds(PopupButtonLayoutConfiguration g)
Return the bounds of the content area of a pop up button based on the configured width and height.
-
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.
|
 |
getScrollBarThumbPosition   |
float getScrollBarThumbPosition(ScrollBarThumbLayoutConfiguration g)
Map a mouse coordinate along the scroll bar axis to a thumb position along the scroll bar track.
-
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.
|
 |
getSliderLabelBounds   |
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)
-
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.
|
 |
getSliderThumbBounds   |
Rectangle2D getSliderThumbBounds(SliderLayoutConfiguration g,
double thumbPosition)
Return the bounds of the thumb area based on the configured width and height.
-
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.
|
 |
getSliderThumbPosition   |
double getSliderThumbPosition(SliderLayoutConfiguration g,
int x,
int y)
Map a mouse coordinate to a slider thumb position.
-
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.
|