org.jvnet.substance.border
Class ClassicInnerBorderPainter

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

public class ClassicInnerBorderPainter
extends InnerDelegateBorderPainter

Implementation of border painter that uses the ClassicBorderPainter 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
ClassicInnerBorderPainter()
          Creates a new inner border painter based on a ClassicBorderPainter.
ClassicInnerBorderPainter(float shiftCoef, SubstanceConstants.ColorShiftKind shiftKind)
          Creates a new inner border painter based on a ClassicBorderPainter.
 
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

ClassicInnerBorderPainter

public ClassicInnerBorderPainter()
Creates a new inner border painter based on a ClassicBorderPainter.


ClassicInnerBorderPainter

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

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.