|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.border.StandardBorderPainter
public class StandardBorderPainter
The default border painter. This class is part of officially supported API.
Constructor Summary | |
---|---|
StandardBorderPainter()
|
Method Summary | |
---|---|
java.awt.Color |
getBottomBorderColor(ColorScheme interpolationScheme1,
ColorScheme interpolationScheme2,
double cycleCoef,
boolean useCyclePosAsInterpolation)
Computes the color of the bottom portion of the border. |
java.lang.String |
getDisplayName()
Returns the display name of this trait. |
java.awt.Color |
getMidBorderColor(ColorScheme interpolationScheme1,
ColorScheme interpolationScheme2,
double cycleCoef,
boolean useCyclePosAsInterpolation)
Computes the color of the middle portion of the border. |
java.awt.Color |
getTopBorderColor(ColorScheme interpolationScheme1,
ColorScheme interpolationScheme2,
double cycleCoef,
boolean useCyclePosAsInterpolation)
Computes the color of the top portion of the border. |
void |
paintBorder(java.awt.Graphics g,
java.awt.Component c,
int width,
int height,
java.awt.Shape contour,
java.awt.Shape innerContour,
ColorScheme colorScheme1,
ColorScheme colorScheme2,
float cyclePos,
boolean useCyclePosAsInterpolation)
Paints the control border. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardBorderPainter()
Method Detail |
---|
public java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is
part of officially supported API.
getDisplayName
in interface SubstanceBorderPainter
getDisplayName
in interface SubstanceTrait
this
trait.public void paintBorder(java.awt.Graphics g, java.awt.Component c, int width, int height, java.awt.Shape contour, java.awt.Shape innerContour, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean useCyclePosAsInterpolation)
SubstanceBorderPainter
paintBorder
in interface SubstanceBorderPainter
g
- Graphics.c
- Component.width
- Width of a UI component.height
- Height of a UI component.contour
- Contour of a UI component.innerContour
- Inner contour of a UI component. May be ignored if the
specific implementation paints only the outside border.colorScheme1
- The first color scheme.colorScheme2
- The second color scheme.cyclePos
- Cycle position. Is used for rollover and pulsation effects.
Must be in 0..10 range.useCyclePosAsInterpolation
- Indicates the algorithm to use for computing various colors.
If true
, the cyclePos
is used
to interpolate colors between different color components of
both color schemes. If false
, the
cyclePos
is used to interpolate colors between
different color components of the first color scheme.public java.awt.Color getTopBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)
interpolationScheme1
- The first interpolation scheme.interpolationScheme2
- The second interpolation scheme.cycleCoef
- Cycle coefficient.useCyclePosAsInterpolation
- Indicates whether the cycle coefficient should be used as the
interpolation parameter.
public java.awt.Color getMidBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)
interpolationScheme1
- The first interpolation scheme.interpolationScheme2
- The second interpolation scheme.cycleCoef
- Cycle coefficient.useCyclePosAsInterpolation
- Indicates whether the cycle coefficient should be used as the
interpolation parameter.
public java.awt.Color getBottomBorderColor(ColorScheme interpolationScheme1, ColorScheme interpolationScheme2, double cycleCoef, boolean useCyclePosAsInterpolation)
interpolationScheme1
- The first interpolation scheme.interpolationScheme2
- The second interpolation scheme.cycleCoef
- Cycle coefficient.useCyclePosAsInterpolation
- Indicates whether the cycle coefficient should be used as the
interpolation parameter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |