The sample code in: /Docs/JavaDoc/com/steema/teechart/Shape.html seems incorrect. Most of those methods are not found in the Shape class.
For example, these don't exist!!!!
getMarks
getFont
setStyle
setText
setX0
setX1
setY0
setY1
Documentation incorrect
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Happy,
All those properties exist and work fine for me here using latest TeeChart for Java release (Build 1.0.1.830) with the code below. Which exact TeeChart version are you using?
All those properties exist and work fine for me here using latest TeeChart for Java release (Build 1.0.1.830) with the code below. Which exact TeeChart version are you using?
Code: Select all
com.steema.teechart.styles.Shape shape1 = new com.steema.teechart.styles.Shape(tChart.getChart());
shape1.setX0(0);
shape1.setY0(0);
shape1.setX1(100);
shape1.setY1(100);
shape1.getMarks().setVisible(true);
shape1.setStyle(ShapeStyle.DIAMOND);
shape1.setText(new String[] {"This is my shape"});
shape1.getFont().setSize(20);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
how do I tell?
I *think* its the latest, how do I tell exactly?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Happy,
You can either read it in Release.txt included with TeeChart's installation or add the line below to your code.
You can either read it in Release.txt included with TeeChart's installation or add the line below to your code.
Code: Select all
com.steema.teechart.editors.AboutDialog.showDialog();
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hello,
Please check the Shape Class in your referenced TeeChart.Swing.Jar. To test you could set up a new project and reference the jar or open the TeeChart demo 'features' project adding TeeChart.Swing.Jar as a reference library.
Under the path 'com.steema.teechart.styles.Shape' in your IDE navigator you should see the methods described in the previous post:
Regards,
Marc Meumann
Please check the Shape Class in your referenced TeeChart.Swing.Jar. To test you could set up a new project and reference the jar or open the TeeChart demo 'features' project adding TeeChart.Swing.Jar as a reference library.
Under the path 'com.steema.teechart.styles.Shape' in your IDE navigator you should see the methods described in the previous post:
- setX0(double arg0)
setY0(double arg0)
setX1(double arg0)
setY1(double arg0)
getMarks()
setStyle(ShapeStyle arg0)
setText(String[] arg0)
getFont()
Regards,
Marc Meumann
Steema Support