public class SeriesMarks extends TextShape
Title: SeriesMarks
Description: Series Marks characteristics.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
protected boolean |
bClip |
boolean |
checkMarkArrowColor
When True, Marks arrow pen color is changed if the point has the same
color.
|
protected ISeries |
iSeries |
protected MarksStyle |
markerStyle |
protected MarkPositions |
pPositions |
defaultText, drawText
bBevel, bBorderRound, bBrush, bImageBevel, bTransparent, defaultVisible, pPen, shadow, shapeBounds, visible
chart, InternalUse
Constructor and Description |
---|
SeriesMarks(ISeries s) |
Modifier and Type | Method and Description |
---|---|
boolean |
allSeriesVisible() |
protected boolean |
antiOverlap(int first,
int valueIndex,
SeriesMarksPosition aPos) |
protected boolean |
antiOverlap(int first,
int valueIndex,
SeriesMarksPosition aPos,
boolean belowZero) |
protected SeriesMarksPosition |
applyArrowLength(SeriesMarksPosition aPos) |
void |
assign(Shape s)
Assign all properties from a shape to another.
|
void |
clear()
Removes all mark positions and mark items.
|
int |
clicked(int x,
int y)
Determines which Mark contains the XY pixel point parameters.
|
int |
clicked(Point p)
Determines which Mark contains the p point parameters.
|
protected Point |
convertTo2D(SeriesMarksPosition aPos,
Point p) |
void |
DrawMarkWithPointer(Graphics3D g,
Rectangle rect,
int angle,
int aZ) |
double |
getAngle()
The angle from 0 to 360 to rotate Marks.
Default value: 0 |
ChartPen |
getArrow()
The Pen used to draw a line connecting Marks to Series points.
Each Series class handles Marks in a different manner, thus the Arrow coordinates are specific to each Series type. |
int |
getArrowLength()
The length in pixels for the line connecting the Mark to Series point.
|
Color |
getBackColor()
Obsolete. Use the Color method instead.
|
MarksCallout |
getCallout() |
boolean |
getClip()
Restricts Marks to Chart axes space, when true.
When true, Marks will be drawn only within inner chart boundaries, keeping Axis Labels, Titles, Legend, etc almost untouched. Default value: false |
int |
getDrawEvery()
The number of Marks to skip.
Default is 1, all Marks are displayed. |
boolean |
getFollowSeriesColor()
Gets FollowSeriesColor, Mark Back Color same as Series.
|
boolean |
getFontSeriesColor()
Gets FontSeriesColor, Font Color in Mark texts are given from its point Color.
|
ChartPen |
getFrame()
Obsolete. Use the Pen method instead.
|
MarksItems |
getItems()
Returns a collection of mark items.
|
java.lang.String[] |
getLines()
Contains the list of lines drawn on the chart by the user at run-time.
|
MarksTail |
getMarkerTail() |
boolean |
getMultiLine()
Characters in Mark texts are split into multiple lines, when true.
Default value: false |
boolean |
getOnTop()
Series Marks are always drawn on top of all other Series in the Chart, when true.
Default value: false |
MarkPositions |
getPositions()
Accesses Custom position characteristics for Series Marks.
|
ISeries |
getSeries()
Series is a read-only runtime method.
It returns the Series component that owns the TSeriesMarks subcomponent. |
MarksStyle |
getStyle()
Defines how Series Marks are static finalructed.
Each different Style value makes Marks output a different text. |
SeriesMarksSymbols |
getSymbol() |
TailParams |
getTailParams() |
int |
getZPosition()
The Position in pixels on the Z axis.
|
protected void |
internalDraw(int index,
Color aColor,
java.lang.String st,
SeriesMarksPosition aPos) |
protected TextShape |
markItem(int valueIndex) |
java.lang.String |
percentString(int valueIndex,
boolean addTotal)
Returns the String showing a "percent" value for a given point.
For example: "25%" The optional "AddTotal" parameter, when true, returns: "25% of 1234". |
protected java.lang.Object |
readResolve() |
void |
resetPositions()
Tells chart to repaint using automatically positioned marks.
Turns all Marks positions Custom to false. |
void |
setAngle(double value)
Sets angle from 0 to 360 to rotate Marks.
Default value: 0 |
void |
setArrowLength(int value)
Stes the length in pixels of the line connecting the Mark to Series
point.
Default value: 16 |
void |
setBackColor(Color value)
Obsolete. Use the Color method instead.
|
void |
setCallout(MarksCallout callout) |
void |
setChart(IBaseChart value)
Chart associated with this object.
|
void |
setClip(boolean value)
Restricts Marks to Chart axes space, when true.
Default value: false |
void |
setDrawEvery(int value)
Sets the number of Marks to skip.
Default value: 1 |
void |
setFollowSeriesColor(boolean value)
Sets FollowSeriesColor, Mark Back Color same as Series.
|
void |
setFontSeriesColor(boolean value)
Sets FontSeriesColor, Font Color in Mark texts are given from its point Color.
|
void |
setItems(MarksItems value) |
void |
setMarkerTail(MarksTail markerTail) |
void |
setMultiLine(boolean value)
Characters in Mark texts are split into multiple lines, when true.
Default value: false |
void |
setOnTop(boolean value)
Series Marks are always drawn on top of all other Series in the Chart, when true.
Default value: false |
void |
setStyle(MarksStyle value)
Defines how Series Marks are constructed.
Default value: MarksStyle.Label |
void |
setTailParams(TailParams markTailParams) |
void |
setZPosition(int value)
Sets Position in pixels on the Z axis.
|
int |
textWidth(int valueIndex)
Returns the length in pixels for the ValueIndex th mark text String.
It checks if the Mark has multiple lines of text. |
assign, drawRectRotated, drawString, drawText, getAutoSize, getFont, getLinesLength, getShadowSize, getShapeStyle, getText, getTextFormat, paint, paint, paint, setAutoSize, setDrawText, setLines, setShadowSize, setShapeStyle, setText, setTextFormat
getBevel, getBevelInner, getBevelOuter, getBevelWidth, getBorderRound, getBottom, getBrush, getColor, getGradient, getHeight, getImage, getImageBevel, getImageMode, getImageTransparent, getLeft, getPen, getRight, getShadow, getShapeBounds, getTop, getTransparency, getTransparent, getVisible, getWidth, setBevel, setBevelInner, setBevelOuter, setBevelWidth, setBorderRound, setBottom, setBrush, setColor, setDefaultVisible, setHeight, setImage, setImageMode, setImageTransparent, setLeft, setPen, setRight, setShapeBounds, setTop, setTransparency, setTransparent, setVisible, setWidth
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public boolean checkMarkArrowColor
protected transient ISeries iSeries
protected transient MarkPositions pPositions
protected boolean bClip
protected MarksStyle markerStyle
public SeriesMarks(ISeries s)
protected java.lang.Object readResolve()
readResolve
in class TextShape
public void assign(Shape s)
Shape
public MarksCallout getCallout()
public void DrawMarkWithPointer(Graphics3D g, Rectangle rect, int angle, int aZ)
public MarksItems getItems()
public void setItems(MarksItems value)
public MarkPositions getPositions()
public java.lang.String[] getLines()
public ISeries getSeries()
public MarksStyle getStyle()
public void setStyle(MarksStyle value)
value
- MarksStylepublic SeriesMarksSymbols getSymbol()
public void setChart(IBaseChart value)
Shape
public void resetPositions()
public void clear()
public int clicked(Point p)
p
- Pointpublic int clicked(int x, int y)
x
- inty
- intpublic Color getBackColor()
public void setBackColor(Color value)
value
- Colorpublic ChartPen getFrame()
public ChartPen getArrow()
public int getArrowLength()
public void setArrowLength(int value)
value
- intpublic boolean getClip()
public void setClip(boolean value)
value
- booleanpublic boolean getOnTop()
public void setOnTop(boolean value)
value
- booleanpublic boolean getMultiLine()
public void setMultiLine(boolean value)
value
- booleanpublic int getDrawEvery()
public void setDrawEvery(int value)
value
- intpublic double getAngle()
public void setAngle(double value)
value
- doublepublic int getZPosition()
public void setZPosition(int value)
value
- intpublic boolean getFollowSeriesColor()
public void setFollowSeriesColor(boolean value)
value
- booleanpublic boolean getFontSeriesColor()
public void setFontSeriesColor(boolean value)
value
- booleanpublic boolean allSeriesVisible()
protected SeriesMarksPosition applyArrowLength(SeriesMarksPosition aPos)
public java.lang.String percentString(int valueIndex, boolean addTotal)
valueIndex
- intaddTotal
- booleanpublic int textWidth(int valueIndex)
valueIndex
- intprotected Point convertTo2D(SeriesMarksPosition aPos, Point p)
protected boolean antiOverlap(int first, int valueIndex, SeriesMarksPosition aPos, boolean belowZero)
protected boolean antiOverlap(int first, int valueIndex, SeriesMarksPosition aPos)
protected TextShape markItem(int valueIndex)
protected void internalDraw(int index, Color aColor, java.lang.String st, SeriesMarksPosition aPos)
public MarksTail getMarkerTail()
public void setMarkerTail(MarksTail markerTail)
public TailParams getTailParams()
public void setTailParams(TailParams markTailParams)
public void setCallout(MarksCallout callout)