| org.jvnet.substance.border.SubstanceBorderPainter
All known Subclasses: org.jvnet.substance.border.NullBorderPainter, org.jvnet.substance.border.StandardBorderPainter, org.jvnet.substance.border.InnerDelegateBorderPainter,
SubstanceBorderPainter | public interface SubstanceBorderPainter extends SubstanceTrait(Code) | | Border painter interface for Substance look and feel. This class is
part of officially supported API.
Starting from version 4.0, the borders of some controls (buttons, check
boxes, tabs, scroll bars etc) are painted by border painters. Up until
version 4.0 this has been done by gradient painters (
SubstanceGradientPainter )
instead. Note that a custom gradient painter may continue painting the
borders, but these will be overriden by the current border painter. To allow
easier migration, use
NullBorderPainter .
author: Kirill Grouchnikov since: version 4.0 |
Method Summary | |
public void | paintBorder(Graphics g, Component c, int width, int height, Shape contour, Shape innerContour, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean useCyclePosAsInterpolation) Paints the control border.
Parameters: g - Graphics. Parameters: c - Component. Parameters: width - Width of a UI component. Parameters: height - Height of a UI component. Parameters: contour - Contour of a UI component. Parameters: innerContour - Inner contour of a UI component. |
paintBorder | public void paintBorder(Graphics g, Component c, int width, int height, Shape contour, Shape innerContour, ColorScheme colorScheme1, ColorScheme colorScheme2, float cyclePos, boolean useCyclePosAsInterpolation)(Code) | | Paints the control border.
Parameters: g - Graphics. Parameters: c - Component. Parameters: width - Width of a UI component. Parameters: height - Height of a UI component. Parameters: contour - Contour of a UI component. Parameters: innerContour - Inner contour of a UI component. May be ignored if thespecific implementation paints only the outside border. Parameters: colorScheme1 - The first color scheme. Parameters: colorScheme2 - The second color scheme. Parameters: cyclePos - Cycle position. Is used for rollover and pulsation effects.Must be in 0..10 range. Parameters: useCyclePosAsInterpolation - Indicates the algorithm to use for computing various colors.If true , the cyclePos is usedto interpolate colors between different color components ofboth color schemes. If false , thecyclePos is used to interpolate colors betweendifferent color components of the first color scheme. |
|
|