|
||||||||||
| 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 class ChartBrush
Title: ChartBrush class
Description: Common Chart Brush (pattern) used to fill polygons and rectangles.
Copyright (c) 2005-2006 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
| Field Summary | |
|---|---|
protected Color |
color
|
protected Color |
defaultColor
|
protected boolean |
defaultVisible
|
protected int |
internalTransparency
|
protected boolean |
visible
|
| Fields inherited from class com.steema.teechart.TeeBase |
|---|
chart |
| 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 c,
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()
|
java.awt.TexturePaint |
getHatchTexture()
|
java.awt.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. |
java.awt.TexturePaint |
getTexture(Rectangle rect)
|
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.lang.String fileName)
Loads a bitmap into a ChartBrush element from the specified path. |
void |
loadImage(java.net.URL location)
Loads a bitmap into a ChartBrush element from the specified URL. |
void |
reset()
|
void |
setChart(IBaseChart c)
Chart associated with this object. |
void |
setColor(Color value)
Specifies the color used to fill a zone. |
void |
setColor(java.awt.Color value)
|
void |
setDefaultColor(Color 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(java.awt.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, 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 transient int internalTransparency
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 java.awt.TexturePaint getHatchTexture()
public java.awt.TexturePaint getTexture(Rectangle rect)
public void assign(ChartBrush b)
public void setDefaultColor(Color value)
public void setChart(IBaseChart c)
TeeBase
setChart in class TeeBasec - 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 TeeBasepublic 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 - Color
protected void applyDark(Color c,
int quantity)
public void applyDark(int quantity)
public Color getColor()
public void setColor(Color value)
value - Colorpublic void setColor(java.awt.Color value)
public boolean getVisible()
public void setVisible(boolean value)
value - booleanpublic HatchStyle getStyle()
public void setStyle(HatchStyle value)
value - HatchStylepublic java.awt.Image getImage()
public void setImage(java.awt.Image value)
value - Imagepublic void loadImage(java.lang.String fileName)
fileName - Stringpublic void loadImage(java.net.URL location)
location - URLpublic void clearImage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||