double maximum = Double.parseDouble( intervalNode.selectSingleNode( "maximum" ).getText() ); //$NON-NLS-1$
Range range = new Range( minimum, maximum );
Paint backgroundPaint = JFreeChartEngine.getPaint( intervalNode.selectSingleNode( "color" ) ); //$NON-NLS-1$
if ( backgroundPaint == null ) {
Element backgroundNode = (Element) intervalNode.selectSingleNode( "interval-background" ); //$NON-NLS-1$
if ( backgroundNode != null ) {
String backgroundType = backgroundNode.attributeValue( "type" ); //$NON-NLS-1$
if ( "texture".equals( backgroundType ) ) { //$NON-NLS-1$
backgroundPaint = JFreeChartEngine.getTexturePaint( backgroundNode, width, height, session );
} else if ( "gradient".equals( backgroundType ) ) { //$NON-NLS-1$