|
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.
|
 |
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.
|
 |
getDividerWidth   |
int getDividerWidth(AquaUIPainter.SegmentedButtonWidget bw)
|
 |
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.
@Nullable
public Shape getOutline( @NotNull LayoutConfiguration g)
throws UnsupportedOperationException
-
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.
- Throws:
UnsupportedOperationException
|
 |
getOutline   |
Shape getOutline(Rectangle2D bounds,
LayoutConfiguration g)
@Nullable
public Shape getOutline( @NotNull Rectangle2D bounds,
@NotNull LayoutConfiguration g)
throws UnsupportedOperationException
|
 |
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.
|
 |
getRenderer   |
Renderer getRenderer(Configuration g)
|
 |
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.
|
 |
getSearchFieldCancelButtonRenderer   |
Renderer getSearchFieldCancelButtonRenderer(TextFieldConfiguration g)
|
 |
getSearchFieldFindButtonRenderer   |
Renderer getSearchFieldFindButtonRenderer(TextFieldConfiguration g)
|
 |
getSideInset   |
int getSideInset(AquaUIPainter.SegmentedButtonWidget bw)
|
 |
getSliderLabelBounds   |
Rectangle2D getSliderLabelBounds(SliderLayoutConfiguration g,
double thumbPosition,
Dimension size)
Return the recommended bounds for a label corresponding to a given thumb position.
@NotNull
public final 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.
|
 |
getSliderThumbCenter   |
double getSliderThumbCenter(Rectangle2D bounds,
SliderLayoutConfiguration g,
double thumbPosition)
Return the location along the major axis of the center of the thumb for a given thumb position.
public final double getSliderThumbCenter( @NotNull Rectangle2D bounds,
@NotNull SliderLayoutConfiguration g,
double thumbPosition)
-
Description copied from class: org.violetlib.jnr.aqua.impl.AquaUIPainterAbstractBase
Return the location along the major axis of the center of the thumb for a given thumb position. This method is
appropriate only for linear sliders.
- Parameters:
bounds - The slider bounds.g - The slider layout configuration.thumbPosition - The thumb position.
- Returns:
- the X coordinate of the thumb center, if the slider is horizontal, or the Y coordinate of the thumb center,
if the slider is vertical.
|
 |
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.
|
 |
getSliderThumbRenderer   |
Renderer getSliderThumbRenderer(SliderConfiguration g)
|
 |
getTableColumnHeaderRenderer   |
Renderer getTableColumnHeaderRenderer(TableColumnHeaderConfiguration g)
|
 |
setAlignmentEnabled   |
void setAlignmentEnabled(boolean b)
public void setAlignmentEnabled(boolean b)
|