|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pushingpixels.substance.api.painter.fill.StandardFillPainter
public class StandardFillPainter
Gradient painter that returns images with subtle 3D gradient appearance. This class is part of officially supported API.
Constructor Summary | |
---|---|
StandardFillPainter()
|
Method Summary | |
---|---|
java.awt.Color |
getBottomFillColor(SubstanceColorScheme fillScheme)
Computes the color of the bottom portion of the fill. |
java.awt.Color |
getBottomShineColor(SubstanceColorScheme fillScheme)
Computes the color of the bottom portion of the shine. |
java.lang.String |
getDisplayName()
Returns the display name of this trait. |
java.awt.Color |
getMidFillColorBottom(SubstanceColorScheme fillScheme)
Computes the color of the middle portion of the fill from the bottom. |
java.awt.Color |
getMidFillColorTop(SubstanceColorScheme fillScheme)
Computes the color of the middle portion of the fill from the top. |
java.awt.Color |
getTopFillColor(SubstanceColorScheme fillScheme)
Computes the color of the top portion of the fill. |
java.awt.Color |
getTopShineColor(SubstanceColorScheme fillScheme)
Computes the color of the top portion of the shine. |
void |
paintContourBackground(java.awt.Graphics g,
java.awt.Component comp,
int width,
int height,
java.awt.Shape contour,
boolean isFocused,
SubstanceColorScheme fillScheme,
boolean hasShine)
Fills the contour that matches the specified parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardFillPainter()
Method Detail |
---|
public java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.
getDisplayName
in interface SubstanceTrait
this
trait.public void paintContourBackground(java.awt.Graphics g, java.awt.Component comp, int width, int height, java.awt.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 java.awt.Color getTopFillColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.
public java.awt.Color getMidFillColorTop(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.
public java.awt.Color getMidFillColorBottom(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.
public java.awt.Color getBottomFillColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.
public java.awt.Color getTopShineColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.
public java.awt.Color getBottomShineColor(SubstanceColorScheme fillScheme)
fillScheme
- The fill scheme.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |