public class Shadow extends TeeBase
Title: Shadow class
Description: Properties to draw a shadow.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected ChartBrush |
brush |
protected Color |
defaultColor |
protected int |
defaultSize |
protected boolean |
defaultVisible |
protected boolean |
smooth |
boolean |
visible |
chart, InternalUse
Constructor and Description |
---|
Shadow(IBaseChart c)
Shadow Constructor.
|
Shadow(IBaseChart c,
int size)
Shadow constructor, defines Shadow size.
|
Shadow(IBaseChart c,
int size,
Color color)
Shadow constructor, defines initial size and color
|
Modifier and Type | Method and Description |
---|---|
void |
assign(Shadow value)
Assigns characteristics of Shadow 'value'.
Copies all properties from Source Shadow to Self. |
void |
draw(IGraphics3D g,
double aWidth,
double aHeight,
Point[] points) |
void |
draw(IGraphics3D g,
int x1,
int y1,
int x2,
int y2)
Draws a shadow around the ellipse described by the top left and bottom right parameters.
|
void |
draw(IGraphics3D g,
int x1,
int y1,
int x2,
int y2,
int z)
Draws a shadow around the ellipse described by the top left and bottom right parameters
at depth z.
|
void |
draw(IGraphics3D g,
Rectangle rect)
Draws a shadow around the Rect rectangle parameter, using the ACanvas
canvas.
Uses the Height, Width and Transparency properties to draw the shadow. |
void |
draw(IGraphics3D g,
Rectangle rect,
int angle,
int z,
boolean is3D)
Draws a shadow around the Rect rectangle parameter.
Uses the Height, Width and Transparency properties to draw the shadow. |
ChartBrush |
getBrush()
Defines the Brush characteristics to fill the shadow.
|
Color |
getColor()
Defines the shadow Color.
|
int |
getHeight()
The vertical displacement of the shadow in pixels.
|
int |
getHorizSize()
Obsolete. Please use Width property.
|
Dimension |
getSize()
Size in pixels of shadow.
Returns the biggest of the HorizSize and VertSize properties. |
boolean |
getSmooth()
Internal use.
|
int |
getSmoothBlur()
Reserved for future use.
|
int |
getTransparency()
The Transparency level from 0 to 100% of shadow.
Transparency is a value between 0 and 100 which sets the transparency percentage with respect to foreground versus background for the shadow. |
int |
getVertSize()
Obsolete. Please use Height property.
|
boolean |
getVisible()
Determines whether the shadow will appear on screen.
|
int |
getWidth()
The horizontal shadow size in pixels.
|
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setColor(Color value)
Defines the shadow Color.
|
void |
setDefaultSize(int value) |
void |
setDefaultVisible(boolean value) |
void |
setHeight(int value)
Sets the vertical displacement of the shadow in pixels.
|
void |
setHorizSize(int value)
Obsolete. Please use Width property.
|
void |
setSize(Dimension value)
Size in pixels of shadow.
|
void |
setSize(int value)
Sets both horizontal and vertical shadow size to same value.
|
void |
setSmooth(boolean value)
Internal use.
|
void |
setSmoothBlur(int value)
Reserved for future use.
|
void |
setTransparency(int value)
Sets Transparency level from 0 to 100% of shadow.
|
void |
setVertSize(int value)
Obsolete. Please use Height property.
|
void |
setVisible(boolean value)
Determines whether the shadow will appear on screen.
|
void |
setWidth(int value)
Sets the horizontal shadow size in pixels.
|
protected boolean |
shouldSerializeHeight() |
protected boolean |
shouldSerializeVisible() |
protected boolean |
shouldSerializeWidth() |
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
protected ChartBrush brush
protected boolean smooth
public boolean visible
protected transient boolean defaultVisible
protected transient int defaultSize
protected transient Color defaultColor
public Shadow(IBaseChart c)
c
- IBaseChartpublic Shadow(IBaseChart c, int size)
c
- IBaseChartsize
- intpublic Shadow(IBaseChart c, int size, Color color)
c
- IBaseChartsize
- intcolor
- Colorpublic void assign(Shadow value)
value
- Shadowpublic Color getColor()
public void setColor(Color value)
value
- Colorpublic void setDefaultSize(int value)
public void setDefaultVisible(boolean value)
protected boolean shouldSerializeHeight()
public int getTransparency()
public void setTransparency(int value)
value
- intpublic int getHeight()
public void setHeight(int value)
Example:
pieSeries = new com.steema.teechart.styles.Pie(myChart.getChart()); pieSeries.getMarks().setVisible(true); pieSeries.getShadow().setVisible(true); pieSeries.getShadow().setWidth(30); pieSeries.getShadow().setHeight(50); pieSeries.getShadow().setColor(Color.SILVER); pieSeries.fillSampleValues(9);
value
- intpublic int getHorizSize()
public void setHorizSize(int value)
value
- intpublic int getVertSize()
public void setVertSize(int value)
value
- intprotected boolean shouldSerializeWidth()
public int getWidth()
public void setWidth(int value)
Example:
pieSeries = new com.steema.teechart.styles.Pie(myChart.getChart()); pieSeries.getMarks().setVisible(true); pieSeries.getShadow().setVisible(true); pieSeries.getShadow().setWidth(30); pieSeries.getShadow().setHeight(50); pieSeries.getShadow().setColor(Color.SILVER); pieSeries.fillSampleValues(9);
value
- intpublic ChartBrush getBrush()
public Dimension getSize()
public void setSize(int value)
value
- intpublic void setSize(Dimension value)
value
- Dimensionprotected boolean shouldSerializeVisible()
public boolean getVisible()
public void setVisible(boolean value)
value
- booleanpublic void draw(IGraphics3D g, Rectangle rect)
g
- IGraphics3Drect
- Rectanglepublic void draw(IGraphics3D g, Rectangle rect, int angle, int z, boolean is3D)
g
- IGraphics3Drect
- Rectangleangle
- intz
- intis3D
- booleanpublic void draw(IGraphics3D g, double aWidth, double aHeight, Point[] points)
public void draw(IGraphics3D g, int x1, int y1, int x2, int y2)
public void draw(IGraphics3D g, int x1, int y1, int x2, int y2, int z)
public void setChart(IBaseChart c)
TeeBase
public boolean getSmooth()
public void setSmooth(boolean value)
value
- public int getSmoothBlur()
public void setSmoothBlur(int value)
value
-