TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.igc.brushes.internal
Class FullGradientBrush

java.lang.Object
  extended by org.eclipse.tptp.platform.report.igc.brushes.internal.FullGradientBrush
All Implemented Interfaces:
IBrush

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class FullGradientBrush
extends java.lang.Object
implements IBrush

Linear, Circular, Conic (and more!) gradient defined by two points and a IGradientColor. For simple horizontal/vertical gradient using two color take a look at GradientBrush.

See Also:
IGradientColor, GradientColor, GradientBrush

Field Summary
protected  int sx1_
          Deprecated.  
protected  int sx2_
          Deprecated.  
protected  int sy1_
          Deprecated.  
protected  int sy2_
          Deprecated.  
static int T_CIRCULAR
          Deprecated. Gradient is circular, first point define the center, second one define the radius
static int T_CONIC
          Deprecated. Gradient is conic (infinite), first point define the center, second start angle, repeat property haven't any effect on conic gradient (but raise fall yes).
static int T_CONIC2
          Deprecated. Same gradient as T_CONIC but only inside circle defined by both points.
static int T_ELECTROMAGNETIC
          Deprecated. The two points define origin of two electromagnetic field.
static int T_ELLIPTIC
          Deprecated. The two points define focals of an ellipse.
static int T_LINEAR
          Deprecated. Gradient is linear along the line defined by the two points
static int T_RECTANGULAR
          Deprecated. The two points define a rectangle in which the gradient is rectangular to, repeat is concentric
static int T_RECTANGULAR2
          Deprecated. Same as T_RECTANGULAR but repeat mode define rectangles side by side.
 
Constructor Summary
FullGradientBrush(FullGradientBrush b)
          Deprecated.  
FullGradientBrush(IGradientGenerator _gradient, int _type)
          Deprecated. Create a gradient using given gradient and type, points must be defined before used.
FullGradientBrush(int _c1, int _c2, IGradientGenerator _gradient, boolean _vertical)
          Deprecated. Create an horizontal/vertical gradient. if vertical _cX are y coordinates.
FullGradientBrush(int _x1, int _y1, int _x2, int _y2, IGradientGenerator _gradient)
          Deprecated. Create a gradient using type T_LINEAR
FullGradientBrush(int _x1, int _y1, int _x2, int _y2, IGradientGenerator _gradient, int _type)
          Deprecated. Create a gradient
 
Method Summary
 void brushBegin(IGC gc, IGCDirect gd)
          Deprecated. Start the filling of a shape.
 void brushEnd()
          Deprecated. End a filling of a shape or line drawing.
 IBrush copyBrush()
          Deprecated.  
 int getBrushColor(int x, int y, int curr_clr)
          Deprecated. Brush's RGBA color choice for pixel at location x,y, this pixel have currently the RGBA color curr_rgba.
 IGradientGenerator getGradientColor()
          Deprecated.  
 IPoint getPoint1()
          Deprecated. returns the coordinates of the first points defined the brush
 int getPoint1X()
          Deprecated. returns the X coordinate of the first points defined the brush
 int getPoint1Y()
          Deprecated. returns the Y coordinate of the second points defined the brush
 IPoint getPoint2()
          Deprecated. returns the coordinates of the first points defined the brush
 int getPoint2X()
          Deprecated. returns the X coordinate of the first points defined the brush
 int getPoint2Y()
          Deprecated. returns the Y coordinate of the second points defined the brush
 int getType()
          Deprecated.  
 boolean isRaiseFall()
          Deprecated.  
 boolean isRepeated()
          Deprecated.  
 IGradientGenerator setGradientColor(IGradientGenerator _gradient)
          Deprecated. Change gradient color used by this brush.
 void setPoint1(int _x1, int _y1)
          Deprecated. Change first points defined the brush
 void setPoint2(int _x2, int _y2)
          Deprecated. Change first points defined the brush
 void setPoints(int _x1, int _y1, int _x2, int _y2)
          Deprecated. Change both points defining the brush
 void setRaiseFall(boolean b)
          Deprecated. Change raise-fall porperty
 void setRepeated(boolean b)
          Deprecated. change repeat property
 void setType(int type)
          Deprecated. change gradient mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

T_LINEAR

public static final int T_LINEAR
Deprecated. 
Gradient is linear along the line defined by the two points

See Also:
Constant Field Values

T_CIRCULAR

public static final int T_CIRCULAR
Deprecated. 
Gradient is circular, first point define the center, second one define the radius

See Also:
Constant Field Values

T_CONIC

public static final int T_CONIC
Deprecated. 
Gradient is conic (infinite), first point define the center, second start angle, repeat property haven't any effect on conic gradient (but raise fall yes).

See Also:
Constant Field Values

T_CONIC2

public static final int T_CONIC2
Deprecated. 
Same gradient as T_CONIC but only inside circle defined by both points. repeat property can ve used.

See Also:
Constant Field Values

T_ELLIPTIC

public static final int T_ELLIPTIC
Deprecated. 
The two points define focals of an ellipse.

See Also:
Constant Field Values

T_ELECTROMAGNETIC

public static final int T_ELECTROMAGNETIC
Deprecated. 
The two points define origin of two electromagnetic field.

See Also:
Constant Field Values

T_RECTANGULAR

public static final int T_RECTANGULAR
Deprecated. 
The two points define a rectangle in which the gradient is rectangular to, repeat is concentric

See Also:
Constant Field Values

T_RECTANGULAR2

public static final int T_RECTANGULAR2
Deprecated. 
Same as T_RECTANGULAR but repeat mode define rectangles side by side.

See Also:
Constant Field Values

sx1_

protected int sx1_
Deprecated. 

sy1_

protected int sy1_
Deprecated. 

sx2_

protected int sx2_
Deprecated. 

sy2_

protected int sy2_
Deprecated. 
Constructor Detail

FullGradientBrush

public FullGradientBrush(int _x1,
                         int _y1,
                         int _x2,
                         int _y2,
                         IGradientGenerator _gradient)
Deprecated. 
Create a gradient using type T_LINEAR


FullGradientBrush

public FullGradientBrush(int _x1,
                         int _y1,
                         int _x2,
                         int _y2,
                         IGradientGenerator _gradient,
                         int _type)
Deprecated. 
Create a gradient


FullGradientBrush

public FullGradientBrush(int _c1,
                         int _c2,
                         IGradientGenerator _gradient,
                         boolean _vertical)
Deprecated. 
Create an horizontal/vertical gradient. if vertical _cX are y coordinates.


FullGradientBrush

public FullGradientBrush(IGradientGenerator _gradient,
                         int _type)
Deprecated. 
Create a gradient using given gradient and type, points must be defined before used.

See Also:
setPoints()

FullGradientBrush

public FullGradientBrush(FullGradientBrush b)
Deprecated. 
Method Detail

copyBrush

public IBrush copyBrush()
Deprecated. 
Specified by:
copyBrush in interface IBrush
Returns:
a full copy of this brush

setPoints

public void setPoints(int _x1,
                      int _y1,
                      int _x2,
                      int _y2)
Deprecated. 
Change both points defining the brush


setPoint1

public void setPoint1(int _x1,
                      int _y1)
Deprecated. 
Change first points defined the brush


setPoint2

public void setPoint2(int _x2,
                      int _y2)
Deprecated. 
Change first points defined the brush


getPoint1X

public int getPoint1X()
Deprecated. 
returns the X coordinate of the first points defined the brush


getPoint2X

public int getPoint2X()
Deprecated. 
returns the X coordinate of the first points defined the brush


getPoint1Y

public int getPoint1Y()
Deprecated. 
returns the Y coordinate of the second points defined the brush


getPoint2Y

public int getPoint2Y()
Deprecated. 
returns the Y coordinate of the second points defined the brush


getPoint1

public IPoint getPoint1()
Deprecated. 
returns the coordinates of the first points defined the brush


getPoint2

public IPoint getPoint2()
Deprecated. 
returns the coordinates of the first points defined the brush


getGradientColor

public IGradientGenerator getGradientColor()
Deprecated. 
Returns:
gradient color used by this brush

setGradientColor

public IGradientGenerator setGradientColor(IGradientGenerator _gradient)
Deprecated. 
Change gradient color used by this brush.

Returns:
previous used gradient.

isRepeated

public boolean isRepeated()
Deprecated. 
Returns:
true if gradient is repeated (along line, or concentric circles

setRepeated

public void setRepeated(boolean b)
Deprecated. 
change repeat property


isRaiseFall

public boolean isRaiseFall()
Deprecated. 
Returns:
true if gradient is raise/fall, or false for only-raising gradient

setRaiseFall

public void setRaiseFall(boolean b)
Deprecated. 
Change raise-fall porperty


getType

public int getType()
Deprecated. 
Returns:
current gradient mode

setType

public void setType(int type)
Deprecated. 
change gradient mode


getBrushColor

public int getBrushColor(int x,
                         int y,
                         int curr_clr)
Deprecated. 
Description copied from interface: IBrush
Brush's RGBA color choice for pixel at location x,y, this pixel have currently the RGBA color curr_rgba.

brushStart might be called before.

Specified by:
getBrushColor in interface IBrush
Parameters:
x - x coordinate of point in device coordinate.
y - y coordinate of point in device coordinate.
curr_clr - current color of point (x,y) in render.
Returns:
color the brush choose for (x,y) point, or curr_rgba for no changement.

brushBegin

public void brushBegin(IGC gc,
                       IGCDirect gd)
Deprecated. 
Description copied from interface: IBrush
Start the filling of a shape. Must be called before getBrushColor(). This is time for brush to convert it parameters expressed in pixel coordinates to device coordinates as caller of getBrushColor() give only device coordinates.

Specified by:
brushBegin in interface IBrush
Parameters:
gc - IGC which request the brush filling.
gd - IGCDirect the brush can use to convert data to device coordinates.

brushEnd

public void brushEnd()
Deprecated. 
Description copied from interface: IBrush
End a filling of a shape or line drawing. Called only if brushBegin have been. This is time to restore pixel coordinate parameter of brush.

Specified by:
brushEnd in interface IBrush

TPTP 4.5.0 Platform Project
Internal API Specification