- All Known Implementing Classes:
- DefaultShadowGenerator
public interface ShadowGenerator
An interface that defines the API for a shadow generator.  Some plot
 classes use this to create drop shadows.
- 
Method SummaryModifier and TypeMethodDescriptionintCalculates the x-offset for drawing the shadow image relative to the source.intCalculates the y-offset for drawing the shadow image relative to the source.createDropShadow(BufferedImage source) Creates and returns an image containing the drop shadow for the specified source image.
- 
Method Details- 
createDropShadowCreates and returns an image containing the drop shadow for the specified source image.- Parameters:
- source- the source image.
- Returns:
- A new image containing the shadow.
 
- 
calculateOffsetXint calculateOffsetX()Calculates the x-offset for drawing the shadow image relative to the source.- Returns:
- The x-offset.
 
- 
calculateOffsetYint calculateOffsetY()Calculates the y-offset for drawing the shadow image relative to the source.- Returns:
- The y-offset.
 
 
-