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-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Tool.ToolListener
bBrush, clickTolerance, listenerList, pPen
chart, 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, getPen
addMouseMotionListener, addToolListener, dispose, fireActiveChanged, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, removeToolListener, setActive, setChart, toString
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public ColorBand()
public ColorBand(IBaseChart c)
public Cursor mouseEvent(FrameworkMouseEvent e, Cursor c)
mouseEvent
in class Tool
public void setAxis(Axis value)
ToolAxis
public java.lang.String getDescription()
getDescription
in class Tool
public java.lang.String getSummary()
getSummary
in class Tool
public 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 Tool
public void dragFinished(ChangeEvent e)
DragListener
dragFinished
in interface DragListener
public void dragMoving(ChangeEvent e)
DragListener
dragMoving
in interface DragListener