// Get the Style object which contains padding information
// for this specific paint.
private Style _getPaddingStyle(PaintContext context)
{
// First, get the StyleProvider from the context
ImageContext imageContext = context.getImageContext();
StyleContext styleContext = imageContext.getStyleContext();
StyleProvider provider = styleContext.getStyleProvider();
if (provider != null)
{
// Get the StyleMap
StyleMap map = provider.getStyleMap(styleContext);