public class Gradient extends TeeBase implements java.lang.Cloneable
Title: Gradient class
Description: Used to configure a gradient filling.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected boolean |
visible |
chart, InternalUse
Constructor and Description |
---|
Gradient() |
Gradient(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
void |
assign(Gradient value)
Copies the Gradient parameter properties into the Canvas.Gradient object.
|
java.lang.Object |
clone() |
Color |
correctColor(Color value) |
void |
draw(IGraphics3D g,
int left,
int top,
int right,
int bottom)
Obsolete.
|
void |
draw(IGraphics3D g,
Point[] p)
Obsolete.
|
void |
draw(IGraphics3D g,
Rectangle rect)
Obsolete.
|
double |
getAngle()
Enables fine-tuning of displayed Colors.
|
Point[] |
getCustomTargetPolygon() |
Rectangle |
getCustomTargetRectangle() |
GradientDirection |
getDirection()
The direction the gradient fill to be applied.
Default value: GradientDirection.Vertical |
Color |
getEndColor()
One of the three Colors used to create the gradient fill.
The gradient fill is composed of the three colors: StartColor, MidColor and EndColor. |
Color |
getMiddleColor()
One of the three Colors used to create the gradient fill.
The gradient fill is composed of the three colors: StartColor, MidColor and EndColor. |
int |
getRadialTransition() |
int |
getRadialX() |
int |
getRadialY() |
Color |
getStartColor()
One of the three Colors used to create the gradient fill.
It is one of the three colors used to create the gradient fill. |
int |
getTransparency()
Amount of transparency in percentage.
Default value: 0 |
boolean |
getUseMiddle()
Determines whether MiddleColor is used when creating the gradient fill,
or not.
Default value: false |
boolean |
getVisible()
Determines whether the gradient fill appears on screen.
Default value: false |
void |
setAngle(double value)
Enables fine-tuning of displayed Colors.
|
void |
setCustomTargetPolygon(Point[] value) |
void |
setCustomTargetRectangle(Rectangle r) |
void |
setDirection(GradientDirection value)
Specifies the direction the gradient fill to be applied.
Default value: GradientDirection.Vertical |
void |
setEndColor(Color value)
Specifies the end Color used to create the gradient fill.
Default value: WHITE |
void |
setMiddleColor(Color value)
Specifies the middle Color used to create the gradient fill.
Default value: GRAY |
void |
setRadialTransition(int value)
lengthens/softens the radial transition
|
void |
setRadialX(int value) |
void |
setRadialY(int value) |
void |
setStartColor(Color value)
Specifies the start Color used to create the gradient fill.
Default value: GOLD |
void |
setTransparency(int value)
Specifies the amount of transparency as a percentage.
Default value: 0 |
void |
setUseMiddle(boolean value)
A MiddleColor is used when creating the gradient fill when true.
Default value: false |
void |
setVisible(boolean value)
Determines whether the gradient fill appears on screen.
Default value: false |
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public Gradient(IBaseChart c)
public Gradient()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void assign(Gradient value)
value
- Gradientpublic int getTransparency()
public void setTransparency(int value)
value
- intpublic double getAngle()
public void setAngle(double value)
value
- doublepublic GradientDirection getDirection()
public void setDirection(GradientDirection value)
value
- GradientDirectionpublic Color getStartColor()
public void setStartColor(Color value)
value
- Colorpublic boolean getUseMiddle()
public void setUseMiddle(boolean value)
value
- booleanpublic Color getMiddleColor()
public void setMiddleColor(Color value)
value
- Colorpublic Color getEndColor()
public void setEndColor(Color value)
value
- Colorpublic boolean getVisible()
public void setVisible(boolean value)
value
- booleanpublic int getRadialX()
public void setRadialX(int value)
value
- intpublic int getRadialY()
public void setRadialY(int value)
value
- intpublic int getRadialTransition()
public void setRadialTransition(int value)
public Point[] getCustomTargetPolygon()
public void setCustomTargetPolygon(Point[] value)
public void draw(IGraphics3D g, int left, int top, int right, int bottom)
g
- IGraphics3Dleft
- inttop
- intright
- intbottom
- intpublic void draw(IGraphics3D g, Point[] p)
g
- IGraphics3Dp
- Point[]public void draw(IGraphics3D g, Rectangle rect)
g
- IGraphics3Drect
- Rectanglepublic Rectangle getCustomTargetRectangle()
public void setCustomTargetRectangle(Rectangle r)