SubstanceFillPainter
, SubstanceTrait
ClassicFillPainter
, GlassFillPainter
, SimplisticFillPainter
, SubduedFillPainter
public class StandardFillPainter extends Object implements SubstanceFillPainter
Constructor | Description |
---|---|
StandardFillPainter() |
Modifier and Type | Method | Description |
---|---|---|
Color |
getBottomFillColor(SubstanceColorScheme fillScheme) |
Computes the color of the bottom portion of the fill.
|
Color |
getBottomShineColor(SubstanceColorScheme fillScheme) |
Computes the color of the bottom portion of the shine.
|
String |
getDisplayName() |
Returns the display name of
this trait. |
Color |
getMidFillColorBottom(SubstanceColorScheme fillScheme) |
Computes the color of the middle portion of the fill from the bottom.
|
Color |
getMidFillColorTop(SubstanceColorScheme fillScheme) |
Computes the color of the middle portion of the fill from the top.
|
Color |
getTopFillColor(SubstanceColorScheme fillScheme) |
Computes the color of the top portion of the fill.
|
Color |
getTopShineColor(SubstanceColorScheme fillScheme) |
Computes the color of the top portion of the shine.
|
void |
paintContourBackground(Graphics g,
Component comp,
int width,
int height,
Shape contour,
boolean isFocused,
SubstanceColorScheme fillScheme,
boolean hasShine) |
Fills the contour that matches the specified parameters.
|
public String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.getDisplayName
in interface SubstanceTrait
this
trait.public void paintContourBackground(Graphics g, Component comp, int width, int height, Shape contour, boolean isFocused, SubstanceColorScheme fillScheme, boolean hasShine)
SubstanceFillPainter
paintContourBackground
in interface SubstanceFillPainter
g
- Graphics context.comp
- Component to paint.width
- Width of a UI component.height
- Height of a UI component.contour
- Contour of a UI component.isFocused
- Indication whether component owns the focus.fillScheme
- The fill color scheme.hasShine
- Indication whether the returned image should have a 3D shine
spot in its top half.public Color getTopFillColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.public Color getMidFillColorTop(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.public Color getMidFillColorBottom(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.public Color getBottomFillColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.public Color getTopShineColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.public Color getBottomShineColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.