|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.drawing.ChartBrush
public final class ChartBrush
Title: ChartBrush class
Description: Common Chart Brush (pattern) used to fill polygons and rectangles.
Copyright (c) 2005-2012 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary | |
---|---|
protected Color |
color
|
protected Color |
defaultColor
|
protected boolean |
defaultVisible
|
protected boolean |
visible
|
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
ChartBrush(IBaseChart c)
|
|
ChartBrush(IBaseChart c,
boolean startVisible)
|
|
ChartBrush(IBaseChart c,
Color aColor)
|
|
ChartBrush(IBaseChart c,
Color aColor,
boolean startVisible)
|
Method Summary | |
---|---|
protected void |
applyDark(Color aColor,
int quantity)
|
void |
applyDark(int quantity)
|
void |
assign(ChartBrush b)
|
void |
clearImage()
Clears the ChartBrush element from all associated bitmap images. |
Color |
getColor()
Determines the color used to fill a zone. |
Color |
getForegroundColor()
Color to fill inner portions of Brush, when Solid is false. |
Gradient |
getGradient()
Fill Gradient. |
boolean |
getGradientVisible()
|
Image |
getImage()
Image to use for fill. |
ImageMode |
getImageMode()
Drawing Brush Image Style. |
Rectangle |
getImageRect()
|
boolean |
getImageTransparent()
The Brush image will be Transparent when true. |
boolean |
getSolid()
Fills using Color only. |
HatchStyle |
getStyle()
Determines the style in which the zone is filled or patterned using both Color and ForegroundColor. |
int |
getTransparency()
The Transparency level from 0 to 100%. |
boolean |
getVisible()
Determines if the brush will draw lines or not. |
boolean |
getWrapTile()
Drawing Brush Image Style. |
void |
invalidate()
Use invalidate when the entire canvas needs to be repainted. |
void |
loadImage(java.io.InputStream stream)
Loads a bitmap into a ChartBrush element from the specified stream. |
void |
loadImage(java.lang.String fileName)
Loads a bitmap into a ChartBrush element from the specified path. |
void |
reset()
|
void |
setChart(IBaseChart c)
Chart associated with this object. |
void |
setColor(Color value)
Specifies the color used to fill a zone. |
void |
setDefaultColor(Color value)
|
void |
setDefaultVisible(boolean value)
|
void |
setForegroundColor(Color value)
Specifies the Color to fill inner portions of Brush, when Solid is false. |
void |
setGradient(Gradient value)
Sets the Gradient fill. |
void |
setImage(Image value)
Image to use for fill. |
void |
setImageMode(ImageMode value)
Drawing Brush Image Style. |
void |
setImageTransparent(boolean value)
Sets the Brush image to Transparent. |
void |
setSolid(boolean value)
Fills using Color only. |
void |
setStyle(HatchStyle value)
Determines the style in which the zone is filled or patterned using both Color and ForegroundColor. |
void |
setTransparency(int value)
Sets Transparency level from 0 to 100%. |
void |
setVisible(boolean value)
Determines if the brush will draw lines or not. |
void |
setWrapTile(boolean value)
Drawing Brush Image Style. |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean visible
protected Color color
protected transient Color defaultColor
protected transient boolean defaultVisible
Constructor Detail |
---|
public ChartBrush(IBaseChart c, boolean startVisible)
public ChartBrush(IBaseChart c)
public ChartBrush(IBaseChart c, Color aColor)
public ChartBrush(IBaseChart c, Color aColor, boolean startVisible)
Method Detail |
---|
public void reset()
public void assign(ChartBrush b)
public void setDefaultColor(Color value)
public void setChart(IBaseChart c)
TeeBase
setChart
in class TeeBase
c
- IBaseChartpublic int getTransparency()
public void setTransparency(int value)
value
- intpublic boolean getSolid()
public void setSolid(boolean value)
value
- booleanpublic boolean getImageTransparent()
public void setImageTransparent(boolean value)
value
- booleanpublic boolean getGradientVisible()
public Gradient getGradient()
public void setGradient(Gradient value)
value
- Gradientpublic void invalidate()
invalidate
in class TeeBase
public ImageMode getImageMode()
public void setImageMode(ImageMode value)
value
- ImageModepublic Rectangle getImageRect()
public boolean getWrapTile()
public void setWrapTile(boolean value)
value
- booleanpublic Color getForegroundColor()
public void setForegroundColor(Color value)
value
- Colorprotected void applyDark(Color aColor, int quantity)
public void applyDark(int quantity)
public Color getColor()
public void setColor(Color value)
value
- Colorpublic boolean getVisible()
public void setVisible(boolean value)
value
- booleanpublic void setDefaultVisible(boolean value)
public HatchStyle getStyle()
public void setStyle(HatchStyle value)
value
- HatchStylepublic Image getImage()
public void setImage(Image value)
value
- Imagepublic void loadImage(java.lang.String fileName)
fileName
- Stringpublic void loadImage(java.io.InputStream stream)
stream
- InputStreampublic void clearImage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |