|
||||||||||
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.styles.Series
com.steema.teechart.styles.Shape
public class Shape
Title: Shape class
Description: Shape Series.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series |
---|
Series.MarkTextResolver |
Field Summary |
---|
Fields inherited from class com.steema.teechart.styles.Series |
---|
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
Shape()
|
|
Shape(IBaseChart c)
|
Method Summary | |
---|---|
protected void |
addSampleValues(int numValues)
|
void |
calcZOrder()
|
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series. |
void |
createSubGallery(Gallery addSubChart)
|
protected void |
drawLegendShape(IGraphics3D g,
int valueIndex,
Rectangle rect)
|
void |
drawValue(int valueIndex)
Called internally. |
ChartBrush |
getBrush()
Defines the brush used to fill shape background. |
java.lang.String |
getDescription()
Gets descriptive text. |
ChartFont |
getFont()
Determines the font attributes used to output ShapeSeries. |
TextShape |
getFormat()
|
Gradient |
getGradient()
Gets Gradient fill characteristics for the ShapeSeries Shape. |
ShapeTextHorizAlign |
getHorizAlignment()
Horizontally aligns the text. |
ChartPen |
getPen()
Defines pen to draw Series Shape. |
ShapeStyle |
getStyle()
Defines how a TChartShape component appears on a Chart. |
java.lang.String[] |
getText()
Displays customized Strings inside Shapes. |
java.lang.String |
getText(int index)
|
boolean |
getTransparent()
Allows Shape Brush attributes to fill the interior of the Shape. |
ShapeTextVertAlign |
getVertAlignment()
Sets the vertical alignment of Text within a TChartShape Series shape. |
double |
getX0()
Coordinate used to define the englobing ShapeSeries rectangle. |
double |
getX1()
Coordinate used to define the englobing ShapeSeries rectangle. |
ShapeXYStyle |
getXYStyle()
Can be set to:- Axis, AxisOrigin or Pixels. |
double |
getY0()
Coordinate used to define the englobing ShapeSeries rectangle. |
double |
getY1()
Coordinate used to define the englobing ShapeSeries rectangle. |
boolean |
isValidSourceOf(Series s)
Returns false if the Value parameter is the same as Self. |
protected boolean |
moreSameZOrder()
Returns true if there are more series that share the same Z order. |
void |
prepareForGallery(boolean isEnabled)
|
void |
setChart(IBaseChart c)
Chart associated with this object. |
void |
setHorizAlignment(ShapeTextHorizAlign value)
Horizontally aligns the text. |
void |
setStyle(ShapeStyle value)
Defines how a TChartShape component appears on a Chart. |
void |
setSubGallery(int index)
Creates and prepares the index'th Series style to show at sub-gallery dialog. |
void |
setText(java.lang.String[] value)
|
void |
setTransparent(boolean value)
Allows Shape Brush attributes to fill the interior of the Shape. |
void |
setVertAlignment(ShapeTextVertAlign value)
Sets the vertical alignment of Text within a TChartShape Series shape. |
void |
setX0(double value)
Coordinate used to define the englobing ShapeSeries rectangle. |
void |
setX1(double value)
Coordinate used to define the englobing ShapeSeries rectangle. |
void |
setXYStyle(ShapeXYStyle value)
Can be set to:- Axis, AxisOrigin or Pixels. |
void |
setY0(double value)
Coordinate used to define the englobing ShapeSeries rectangle. |
void |
setY1(double value)
Coordinate used to define the englobing ShapeSeries rectangle. |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.steema.teechart.styles.ISeries |
---|
getChart, invalidate |
Constructor Detail |
---|
public Shape()
public Shape(IBaseChart c)
Method Detail |
---|
public void setChart(IBaseChart c)
TeeBase
setChart
in interface ISeries
setChart
in class Series
c
- IBaseChartprotected void drawLegendShape(IGraphics3D g, int valueIndex, Rectangle rect)
drawLegendShape
in class Series
public java.lang.String getText(int index)
public double getX0()
public void setX0(double value)
value
- doublepublic double getX1()
public void setX1(double value)
value
- doublepublic double getY0()
public void setY0(double value)
value
- doublepublic double getY1()
public void setY1(double value)
value
- doublepublic ShapeStyle getStyle()
public void setStyle(ShapeStyle value)
value
- ShapeStylepublic TextShape getFormat()
public ShapeTextVertAlign getVertAlignment()
public void setVertAlignment(ShapeTextVertAlign value)
value
- ShapeTextVertAlignpublic ShapeTextHorizAlign getHorizAlignment()
public void setHorizAlignment(ShapeTextHorizAlign value)
value
- ShapeTextHorizAlignpublic void drawValue(int valueIndex)
drawValue
in interface ISeries
drawValue
in class Series
valueIndex
- intprotected void addSampleValues(int numValues)
addSampleValues
in class Series
public int clicked(int x, int y)
clicked
in interface ISeries
clicked
in class Series
x
- inty
- int
public ChartFont getFont()
public ChartBrush getBrush()
Example:
//shape1 shape[0] = new Shape(myChart.getChart()); tmpShape = shape[0]; tmpShape.getMarks().setVisible(false); tmpShape.setColor(Color.WHITE); tmpShape.getBrush().setColor(Color.WHITE); tmpShape.getBrush().setImageMode(ImageMode.TILE); tmpShape.getBrush().loadImage(ChartSamplePanel.class.getResource(URL_IMAGE1)); tmpShape.setStyle(ShapeStyle.CIRCLE); tmpShape.getPen().setColor(Color.RED); tmpShape.getPen().setWidth(2); tmpShape.setX1(50); tmpShape.setY1(50);
getBrush
in class Series
public ChartPen getPen()
public Gradient getGradient()
public java.lang.String[] getText()
public void setText(java.lang.String[] value)
public boolean getTransparent()
public void setTransparent(boolean value)
value
- booleanpublic void prepareForGallery(boolean isEnabled)
prepareForGallery
in class Series
public void calcZOrder()
calcZOrder
in class Series
protected boolean moreSameZOrder()
Series
moreSameZOrder
in class Series
public ShapeXYStyle getXYStyle()
public void setXYStyle(ShapeXYStyle value)
value
- ShapeXYStylepublic boolean isValidSourceOf(Series s)
isValidSourceOf
in class Series
s
- Series
public void createSubGallery(Gallery addSubChart)
createSubGallery
in class Series
public void setSubGallery(int index)
Series
setSubGallery
in interface ISeries
setSubGallery
in class Series
index
- intpublic java.lang.String getDescription()
getDescription
in class Series
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |