com.steema.teechart.drawing
Class MiddleGradientPaintContext

java.lang.Object
  extended by com.steema.teechart.drawing.MiddleGradientPaintContext
All Implemented Interfaces:
java.awt.PaintContext

public class MiddleGradientPaintContext
extends java.lang.Object
implements java.awt.PaintContext

Title: MiddleGradientPaintContext class

Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

Author:
tom Most code taken from GradientPaintContext

Constructor Summary
MiddleGradientPaintContext(java.awt.image.ColorModel cm, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2, java.awt.geom.AffineTransform xform, Color startColor, Color endColor, Color middleColor)
           
 
Method Summary
 void dispose()
          Release the resources allocated for the operation.
 java.awt.image.ColorModel getColorModel()
          Return the ColorModel of the output.
 java.awt.image.Raster getRaster(int x, int y, int w, int h)
          Return a Raster containing the colors generated for the graphics operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiddleGradientPaintContext

public MiddleGradientPaintContext(java.awt.image.ColorModel cm,
                                  java.awt.geom.Point2D p1,
                                  java.awt.geom.Point2D p2,
                                  java.awt.geom.AffineTransform xform,
                                  Color startColor,
                                  Color endColor,
                                  Color middleColor)
Method Detail

dispose

public void dispose()
Release the resources allocated for the operation.

Specified by:
dispose in interface java.awt.PaintContext

getColorModel

public java.awt.image.ColorModel getColorModel()
Return the ColorModel of the output.

Specified by:
getColorModel in interface java.awt.PaintContext

getRaster

public java.awt.image.Raster getRaster(int x,
                                       int y,
                                       int w,
                                       int h)
Return a Raster containing the colors generated for the graphics operation.

Specified by:
getRaster in interface java.awt.PaintContext
Parameters:
x - int. Left. The area in device space for which colors are generated.
y - int. Top. See x
w - int. Width. See x
h - int. Height. See x