|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.painter.highlight.ClassicHighlightPainter
public class ClassicHighlightPainter
Highlight painter that paints a classic gradient. This class is part of officially supported API.
| Field Summary | |
|---|---|
static java.lang.String |
DISPLAY_NAME
The display name for the highlight painters of this class. |
protected ClassicGradientPainter |
painter
Single gradient painter instance. |
protected static java.util.Map<java.lang.String,java.awt.image.BufferedImage> |
smallImageCache
Cache for small objects. |
| Constructor Summary | |
|---|---|
ClassicHighlightPainter()
Creates new classic title painter. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDisplayName()
Returns the display name of this trait. |
static java.lang.String |
getMemoryUsage()
Returns the memory usage string. |
protected void |
internalPaint(java.awt.Graphics2D graphics,
java.awt.Component comp,
int width,
int height,
ColorScheme colorScheme1,
ColorScheme colorScheme2,
float cyclePos,
SubstanceBorderPainter borderPainter,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides)
|
void |
paintHighlight(java.awt.Graphics2D graphics,
java.awt.Component comp,
int width,
int height,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
ColorScheme colorScheme1,
ColorScheme colorScheme2,
float cyclePos)
Paints the highlight. |
static void |
reset()
Resets image maps (used when setting new theme). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DISPLAY_NAME
protected static java.util.Map<java.lang.String,java.awt.image.BufferedImage> smallImageCache
protected ClassicGradientPainter painter
| Constructor Detail |
|---|
public ClassicHighlightPainter()
| Method Detail |
|---|
public java.lang.String getDisplayName()
SubstanceTraitthis trait. This method is
part of officially supported API.
getDisplayName in interface SubstanceTraitthis trait.
public void paintHighlight(java.awt.Graphics2D graphics,
java.awt.Component comp,
int width,
int height,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides,
ColorScheme colorScheme1,
ColorScheme colorScheme2,
float cyclePos)
SubstanceHighlightPainter
paintHighlight in interface SubstanceHighlightPaintergraphics - Graphics context.comp - Component.width - Width.height - Height.borderAlpha - Border alpha factor.openSides - The sides specified in this set will not be painted. Can be
null or empty.colorScheme1 - The first color scheme.colorScheme2 - The second color scheme.cyclePos - Cycle position. Is used for rollover and selection animations.
Must be in 0..10 range.
protected void internalPaint(java.awt.Graphics2D graphics,
java.awt.Component comp,
int width,
int height,
ColorScheme colorScheme1,
ColorScheme colorScheme2,
float cyclePos,
SubstanceBorderPainter borderPainter,
float borderAlpha,
java.util.Set<SubstanceConstants.Side> openSides)
public static void reset()
SubstanceLookAndFeel.setCurrentTheme(String),
SubstanceLookAndFeel.setCurrentTheme(SubstanceTheme)public static java.lang.String getMemoryUsage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||