org.jvnet.substance.border
Class GlassInnerBorderPainter

java.lang.Object
  extended by org.jvnet.substance.border.InnerDelegateBorderPainter
      extended by org.jvnet.substance.border.GlassInnerBorderPainter
All Implemented Interfaces:
SubstanceBorderPainter, SubstanceTrait

public class GlassInnerBorderPainter
extends InnerDelegateBorderPainter

Implementation of border painter that uses the GlassBorderPainter gradients and paints the inner contour of the border in addition to the outer contour.

Author:
Kirill Grouchnikov

Field Summary
 
Fields inherited from class org.jvnet.substance.border.InnerDelegateBorderPainter
delegate, painterName, shiftCoef, shiftKind, shiftMap
 
Constructor Summary
GlassInnerBorderPainter()
          Creates a new inner border painter based on a GlassBorderPainter.
GlassInnerBorderPainter(float shiftCoef, SubstanceConstants.ColorShiftKind shiftKind)
          Creates a new inner border painter based on a GlassBorderPainter.
 
Method Summary
 java.lang.String getDisplayName()
          Returns the display name of this trait.
 
Methods inherited from class org.jvnet.substance.border.InnerDelegateBorderPainter
getDelegate, paintBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlassInnerBorderPainter

public GlassInnerBorderPainter()
Creates a new inner border painter based on a GlassBorderPainter.


GlassInnerBorderPainter

public GlassInnerBorderPainter(float shiftCoef,
                               SubstanceConstants.ColorShiftKind shiftKind)
Creates a new inner border painter based on a GlassBorderPainter.

Parameters:
shiftCoef - Shift coefficient. Must be in 0.0-1.0 range.
shiftKind - Shift kind.
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: SubstanceTrait
Returns the display name of this trait. This method is part of officially supported API.

Specified by:
getDisplayName in interface SubstanceBorderPainter
Specified by:
getDisplayName in interface SubstanceTrait
Overrides:
getDisplayName in class InnerDelegateBorderPainter
Returns:
The display name of this trait.