|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pushingpixels.substance.internal.painter.SeparatorPainterUtils
public class SeparatorPainterUtils
Contains utility methods related to painting separators. This class is for internal use only.
Constructor Summary | |
---|---|
SeparatorPainterUtils()
|
Method Summary | |
---|---|
static java.awt.Color |
getSeparatorDarkColor(SubstanceColorScheme scheme)
|
static java.awt.Color |
getSeparatorLightColor(SubstanceColorScheme scheme)
|
static java.awt.Color |
getSeparatorShadowColor(SubstanceColorScheme scheme)
|
static void |
paintHorizontalLines(java.awt.Graphics g,
java.awt.Component c,
SubstanceColorScheme scheme,
int x,
java.util.Collection<java.lang.Integer> y,
int width,
float fadeStartFraction,
boolean isLtr)
Paints horizontal separator lines. |
static void |
paintSeparator(java.awt.Component c,
java.awt.Graphics graphics,
int width,
int height,
int orientation)
Paints a separator. |
static void |
paintSeparator(java.awt.Component c,
java.awt.Graphics graphics,
int width,
int height,
int orientation,
boolean hasShadow,
int maxGradLength)
Paints a separator. |
static void |
paintSeparator(java.awt.Component c,
java.awt.Graphics g,
int width,
int height,
int orientation,
boolean hasShadow,
int maxGradLengthStart,
int maxGradLengthEnd,
boolean toEnforceAlphaColors)
Paints a separator. |
static void |
paintSeparator(java.awt.Component c,
java.awt.Graphics g,
SubstanceColorScheme scheme,
int width,
int height,
int orientation,
boolean hasShadow,
int maxGradLengthStart,
int maxGradLengthEnd,
boolean toEnforceAlphaColors)
Paints a separator. |
static void |
paintVerticalLines(java.awt.Graphics g,
java.awt.Component c,
SubstanceColorScheme scheme,
int y,
java.util.Collection<java.lang.Integer> x,
int height,
float fadeStartFraction)
Paints vertical separator lines. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SeparatorPainterUtils()
Method Detail |
---|
public static void paintSeparator(java.awt.Component c, java.awt.Graphics graphics, int width, int height, int orientation)
c
- Component.graphics
- Graphics context.width
- Separator width.height
- Separator height.orientation
- Separator orientation.public static void paintSeparator(java.awt.Component c, java.awt.Graphics graphics, int width, int height, int orientation, boolean hasShadow, int maxGradLength)
c
- Component.graphics
- Graphics context.width
- Separator width.height
- Separator height.orientation
- Separator orientation.hasShadow
- If true
, the separator painting will have shadow.maxGradLength
- Specifies the maximum pixel length of "ramp" portions of the
separator. The ramp portions are located on separator ends and
allow providing a faded appearance on those ends.public static void paintSeparator(java.awt.Component c, java.awt.Graphics g, int width, int height, int orientation, boolean hasShadow, int maxGradLengthStart, int maxGradLengthEnd, boolean toEnforceAlphaColors)
c
- Component.g
- Graphics context.width
- Separator width.height
- Separator height.orientation
- Separator orientation.hasShadow
- If true
, the separator painting will have shadow.maxGradLengthStart
- Specifies the maximum pixel length of the starting "ramp"
portion of the separator. The starting ramp portion is located
on top / left separator end and allows providing a faded
appearance on that end.maxGradLengthEnd
- Specifies the maximum pixel length of the ending "ramp"
portion of the separator. The ending ramp portion is located
on bottom / right separator end and allows providing a faded
appearance on that end.toEnforceAlphaColors
- If true
, the fade sequences will always use alpha
colors. This may affect the performance.public static void paintSeparator(java.awt.Component c, java.awt.Graphics g, SubstanceColorScheme scheme, int width, int height, int orientation, boolean hasShadow, int maxGradLengthStart, int maxGradLengthEnd, boolean toEnforceAlphaColors)
c
- Component.g
- Graphics context.scheme
- Color scheme.width
- Separator width.height
- Separator height.orientation
- Separator orientation.hasShadow
- If true
, the separator painting will have shadow.maxGradLengthStart
- Specifies the maximum pixel length of the starting "ramp"
portion of the separator. The starting ramp portion is located
on top / left separator end and allows providing a faded
appearance on that end.maxGradLengthEnd
- Specifies the maximum pixel length of the ending "ramp"
portion of the separator. The ending ramp portion is located
on bottom / right separator end and allows providing a faded
appearance on that end.toEnforceAlphaColors
- If true
, the fade sequences will always use alpha
colors. This may affect the performance.public static java.awt.Color getSeparatorShadowColor(SubstanceColorScheme scheme)
public static java.awt.Color getSeparatorDarkColor(SubstanceColorScheme scheme)
public static java.awt.Color getSeparatorLightColor(SubstanceColorScheme scheme)
public static void paintVerticalLines(java.awt.Graphics g, java.awt.Component c, SubstanceColorScheme scheme, int y, java.util.Collection<java.lang.Integer> x, int height, float fadeStartFraction)
g
- Graphics context.c
- Component.scheme
- Color scheme for painting the vertical separator lines.y
- The top Y coordinate of the lines.x
- The X coordinates of the lines.height
- The height of the lines.fadeStartFraction
- The start fraction of the fade out sequence.public static void paintHorizontalLines(java.awt.Graphics g, java.awt.Component c, SubstanceColorScheme scheme, int x, java.util.Collection<java.lang.Integer> y, int width, float fadeStartFraction, boolean isLtr)
g
- Graphics context.c
- Component.scheme
- Color scheme for painting the horizontal separator lines.x
- The left X coordinate of the lines.y
- The Y coordinates of the lines.width
- The width of the lines.fadeStartFraction
- The start fraction of the fade out sequence.isLtr
- If true
, the lines are left-to-right and the fade
out is on the right side. Otherwise, the fade out is on the
left side.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |