public class ColorBand extends ToolAxis implements DragListener
Title: ColorBand class
Description: Color band tool, use it to display a coloured rectangle (band) at the specified axis and position.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Tool.ToolListenerbBrush, clickTolerance, listenerList, pPenchart, InternalUse| Constructor and Description |
|---|
ColorBand() |
ColorBand(IBaseChart c) |
| Modifier and Type | Method and Description |
|---|---|
void |
chartEvent(ChartDrawEvent e) |
boolean |
clicked(int x,
int y) |
void |
dragFinished(ChangeEvent e)
Invoked when a drag is finished.
|
void |
dragMoving(ChangeEvent e)
Invoked when a drag is going on.
|
ChartBrush |
getBrush()
Element Brush characteristics.
|
Color |
getColor()
SThe Band Color.
|
java.lang.String |
getDescription()
Gets descriptive text.
|
boolean |
getDrawBehind()
Draws the Colorband behind the series values when true.
Default value: true |
double |
getEnd()
The End Axis value of colorband.
|
ColorLine |
getEndLine()
Contains formatting properties for the automatic line used to drag the end value of the ColorBand tool at runtime.
|
ChartPen |
getEndLinePen() |
Gradient |
getGradient()
Sets Band colour gradient.
|
boolean |
getResizeEnd()
Gets or sets if the ColorBand tool allows mouse dragging of the edge corresponding to the end value.
|
boolean |
getResizeStart() |
double |
getStart()
The Start Axis value of colorband.
|
ColorLine |
getStartLine()
Contains formatting properties for the automatic line used to drag the start value of the ColorBand tool at runtime.
|
ChartPen |
getStartLinePen() |
java.lang.String |
getSummary()
Gets detailed descriptive text.
|
int |
getTransparency()
The Transparency of ColorBand as percentage.
Default value: 0 |
Cursor |
mouseEvent(FrameworkMouseEvent e,
Cursor c) |
void |
setAxis(Axis value)
Sets the axis to which a Tool will belong.
Default value: null |
void |
setColor(Color value)
Sets Band Color.
|
void |
setDrawBehind(boolean value)
Draws the Colorband behind the series values when true.
Default value: true |
void |
setEnd(double value)
Sets End Axis value of colorband.
|
void |
setResizeEnd(boolean value) |
void |
setResizeStart(boolean value) |
void |
setStart(double value)
Sets Start Axis value of colorband.
|
void |
setTransparency(int value)
Sets the Transparency of ColorBand as percentage.
Default value: 0 |
checkDrawHidden, getAxis, getPenaddMouseMotionListener, addToolListener, dispose, fireActiveChanged, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, removeToolListener, setActive, setChart, toStringgetChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringPropertypublic ColorBand()
public ColorBand(IBaseChart c)
public Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent in class Toolpublic void setAxis(Axis value)
ToolAxispublic java.lang.String getDescription()
getDescription in class Toolpublic java.lang.String getSummary()
getSummary in class Toolpublic boolean getDrawBehind()
public void setDrawBehind(boolean value)
value - booleanpublic double getStart()
public void setStart(double value)
value - doublepublic double getEnd()
public void setEnd(double value)
value - doublepublic int getTransparency()
public void setTransparency(int value)
value - intpublic Gradient getGradient()
public Color getColor()
public void setColor(Color value)
value - Colorpublic ChartBrush getBrush()
public ColorLine getStartLine()
public ColorLine getEndLine()
public boolean getResizeEnd()
public void setResizeEnd(boolean value)
public boolean getResizeStart()
public void setResizeStart(boolean value)
public ChartPen getStartLinePen()
public ChartPen getEndLinePen()
public boolean clicked(int x,
int y)
public void chartEvent(ChartDrawEvent e)
chartEvent in class Toolpublic void dragFinished(ChangeEvent e)
DragListenerdragFinished in interface DragListenerpublic void dragMoving(ChangeEvent e)
DragListenerdragMoving in interface DragListener