public class SeriesPointer extends TeeBase
Title: SeriesPointer class
Description: Some Series have a Pointer method which returns a SeriesPointer class. Pointers are shape figures drawn on each Y point coordinate.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowChangeSize |
protected boolean |
bVisible |
protected boolean |
defaultVisible |
protected boolean |
draw3D |
protected int |
xMinus |
protected int |
xPlus |
protected int |
yMinus |
protected int |
yPlus |
chart, InternalUse
Constructor and Description |
---|
SeriesPointer(IBaseChart c,
ISeries s) |
Modifier and Type | Method and Description |
---|---|
void |
assign(SeriesPointer source) |
protected void |
calcHorizMargins(Margins margins) |
protected void |
calcVerticalMargins(Margins margins) |
void |
draw(IGraphics3D g,
boolean is3D,
int px,
int py,
int tmpHoriz,
int tmpVert,
Color colorValue,
PointerStyle aStyle)
Internal use.
|
void |
draw(int px,
int py,
Color colorValue) |
void |
draw(int px,
int py,
Color colorValue,
PointerStyle aStyle) |
void |
draw(Point p,
Color colorValue) |
void |
draw(Point p,
Color colorValue,
PointerStyle style) |
protected void |
drawLegendShape(Color color,
Rectangle rect,
boolean drawPen) |
protected void |
drawLegendShape(IGraphics3D g,
Color color,
Rectangle rect,
boolean drawPen) |
ChartBrush |
getBrush()
Brush used to fill Series Pointers.
|
Color |
getColor()
The pointer color.
|
boolean |
getDark3D()
Fills pointer sides in 3D mode with darker color.
Default value: true |
boolean |
getDraw3D()
Draws pointer in 3D mode.
Currently only rectangle points have 3D capability. |
int |
getEndZ()
For internal use.
|
Gradient |
getGradient()
Configures Gradient filling attributes.
Default value: null |
int |
getHorizSize()
Horizontal size of pointer in pixels.
Series that derive from Points series usually override the HorizSize and VertSize methods. |
boolean |
getInflateMargins()
Expands axes to fit pointers.
When false, Chart Axis scales will be preserved and points close to the Axis limits will be partially displayed. |
int |
getMiddleZ()
For internal use.
|
ChartPen |
getPen()
Pen used to draw a frame around Series Pointers.
|
ISeries |
getSeries() |
int |
getStartZ()
For internal use.
|
PointerStyle |
getStyle()
The Pointer style.
It defines the shape used to display the Series Points. The default Rectangle style can be optionally in 3D mode by setting Pointer.Draw3D to true. |
int |
getTransparency()
The Percent of semiglass effect.
Default valuie: 0 |
int |
getVertSize()
The Horizontal size of pointer in pixels.
Series that derive from PointSeries usually override the HorizontalSize and VerticalSize methods. |
boolean |
getVisible()
Shows or hides the pointer.
When using a Points series (or any Series class derived from Points series), setting Visible to false will not display anything. |
protected void |
prepareCanvas(IGraphics3D g,
Color colorValue) |
protected java.lang.Object |
readResolve() |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setColor(Color value)
Sets the pointer color.
|
void |
setDark3D(boolean value)
Fills pointer sides in 3D mode with darker color.
Default value: true |
void |
setDraw3D(boolean value)
Draws pointer in 3D mode.
Default value: true |
void |
setHorizSize(int value)
Horizontal size of pointer in pixels.
Default value: 4 |
void |
setInflateMargins(boolean value)
Expands axes to fit pointers.
Default value: true |
void |
setSeries(ISeries s) |
void |
setStyle(PointerStyle value)
Sets the Pointer style.
Default value: rectangle |
void |
setTransparency(int value)
Sets Percent of semiglass effect.
Default valuie: 0 |
void |
setVertSize(int value)
Sets Horizontal size of pointer in pixels.
Default value: 4 |
void |
setVisible(boolean value)
Shows or hides the pointer.
|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
protected boolean bVisible
protected transient boolean defaultVisible
protected boolean allowChangeSize
protected boolean draw3D
protected transient int xMinus
protected transient int xPlus
protected transient int yMinus
protected transient int yPlus
public SeriesPointer(IBaseChart c, ISeries s)
public void assign(SeriesPointer source)
protected java.lang.Object readResolve()
public boolean getDark3D()
public void setDark3D(boolean value)
value
- booleanpublic boolean getDraw3D()
public void setDraw3D(boolean value)
value
- booleanpublic boolean getVisible()
public void setVisible(boolean value)
value
- booleanpublic int getHorizSize()
public void setHorizSize(int value)
value
- intpublic boolean getInflateMargins()
public void setInflateMargins(boolean value)
value
- booleanpublic PointerStyle getStyle()
public void setStyle(PointerStyle value)
value
- PointerStylepublic ISeries getSeries()
public void setSeries(ISeries s)
public int getVertSize()
public void setVertSize(int value)
value
- intpublic int getTransparency()
public void setTransparency(int value)
Example:
bubbleSeries.getPointer().setTransparency(50); // -- 50 %
value
- intpublic Gradient getGradient()
Example:
bubbleSeries.getPointer().getGradient().setVisible(true);
public int getStartZ()
public int getMiddleZ()
public int getEndZ()
public Color getColor()
public void setColor(Color value)
value
- Colorpublic void setChart(IBaseChart c)
TeeBase
public void draw(IGraphics3D g, boolean is3D, int px, int py, int tmpHoriz, int tmpVert, Color colorValue, PointerStyle aStyle)
g
- IGraphics3Dis3D
- booleanpx
- intpy
- inttmpHoriz
- inttmpVert
- intcolorValue
- ColoraStyle
- PointerStylepublic void draw(Point p, Color colorValue, PointerStyle style)
public void draw(int px, int py, Color colorValue)
public void draw(int px, int py, Color colorValue, PointerStyle aStyle)
protected void prepareCanvas(IGraphics3D g, Color colorValue)
public ChartPen getPen()
public ChartBrush getBrush()
protected void drawLegendShape(IGraphics3D g, Color color, Rectangle rect, boolean drawPen)
protected void calcHorizMargins(Margins margins)
protected void calcVerticalMargins(Margins margins)