Search found 21 matches
- Tue May 09, 2017 1:17 pm
- Forum: JFreeChart
- Topic: XYBlockRender : impossible to override getItemPaint()
- Replies: 3
- Views: 3529
Re: XYBlockRender : impossible to override getItemPaint()
Thanks to both of you ! The solution of John seems to be the best, then.
- Mon May 08, 2017 10:22 am
- Forum: JFreeChart
- Topic: XYBlockRender : impossible to override getItemPaint()
- Replies: 3
- Views: 3529
XYBlockRender : impossible to override getItemPaint()
Hello, By look it at your FAQ, it is said that it is possible to change the chart color by overriding the "getItemPaint" method. I am trying to do that for creating a custom XYBlockRenderer ; however, overriding the method does nothing. So, thanks to github, I looked at the code of XYBlockRenderer ,...
- Thu Feb 23, 2017 2:23 pm
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
Indeed I did miss it. It makes no difference, since those parameters are only used if the entity shape is not specified. But I'll update the code anyway since it looks more sensible to have the transX and transY in there. Thanks for the feedback. By the way David, I am loading data from a 17Mo file...
- Tue Feb 21, 2017 3:21 pm
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
Done Don't you forget the entities ? EntityCollection entities = state.getEntityCollection(); if (entities != null) { //addEntity(entities, block, dataset, series, item, 0.0, 0.0); // ORIGINAL addEntity(entities, block, dataset, series, item, transX, transY); // DME }
- Thu Feb 16, 2017 10:00 am
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
Hello David, I can confirm that the fix is OK for XYShapeRenderer, but not for XYBlockRenderer, which I am using right now and I need it... My code for testing is the same as before. EDIT : I fixed that directly in your code (XYBlockRenderer.java), it was the same issue as for XYShapeRenderer : @Ove...
- Tue Feb 14, 2017 10:58 am
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
The next release will include the fixes. There hasn't been a release for a long time since there is some effort involved and I've had other priorities...but I'm working on a release at the moment. In the meantime, yes downloading the sources and building the jar yourself is the only way to get that...
- Tue Feb 14, 2017 9:14 am
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
There is a bug fix in the XYShapeRenderer class made after the 1.0.19 release: https://sourceforge.net/p/jfreechart/code/3312/ Note that the source code is maintained at GitHub now, not in the the SVN repo at SourceForge. Ok, so I have to download on Github then building the sources ? Why are you n...
- Thu Feb 09, 2017 1:18 pm
- Forum: JFreeChart
- Topic: [Axis X and Axis Y] setting 1 unit = 1 dot
- Replies: 6
- Views: 5014
Re: [Axis X and Axis Y] setting 1 unit = 1 dot
Sorry for that, I confused Dot and Block.paradoxoff wrote:I was suggesting XYBlockRenderer, not XYDotRenderer.
However, the unit of Axis Y is half the unit of Axis X (http://imgur.com/a/9OS9O).
So,how to set the unit of Axis Y the same as X (to have a square, as I asked)?
- Thu Feb 09, 2017 1:05 pm
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
I copy-pasted the code and ran it. Results are the same as for NaggingDaivy: trace lines do not appear with an XYShapeRenderer, but with an XYLineAndShapeRenderer. I have no idea why this is happening. It is also working with XYDotRenderer, but I can't use it because I need a LookUpPaintScale. :/ E...
- Thu Feb 09, 2017 11:34 am
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
So the "visibility" of the "axes" was never the problem, but only the fact that they do not "cross"? Your error description doesn't make much sense to me. Let me rephrase it: The trace lines for the crosshair do not cross in the center of the symbol. if that description is true, then you should use...
- Thu Feb 09, 2017 10:35 am
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
I see the crosshairs immediately, but they are easier to see if I zoom out both axes using either the mouse wheel or the context menu: http://i.imgur.com/lDMEFK2.png Yes, but when I click on a dot, the axes are not crossing. That is my problem : I want the axes to cross when clicking on a dot, like...
- Wed Feb 08, 2017 3:03 pm
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
What ? That is not the case when I run it... I dont understand...david.gilbert wrote:When I run the code, the crosshairs are shown after you click on the chart with the mouse.
- Wed Feb 08, 2017 3:02 pm
- Forum: JFreeChart
- Topic: [Axis X and Axis Y] setting 1 unit = 1 dot
- Replies: 6
- Views: 5014
Re: [Axis X and Axis Y] setting 1 unit = 1 dot
The problem is that I need a LookupPaintScale and I can't use it with a DotRenderer :/
- Tue Feb 07, 2017 3:37 pm
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
Re: [XYShapeRenderer/LookupPaintScale]Crosshair not locking
It's usually better if you post some code that is self-contained so others can compile and run it directly. I don't know a reason why this wouldn't work with XYShapeRenderer. I modified XYShapeRendererDemo1.java to show crosshairs and they work for me. There is a bug that I was just looking at, but...
- Tue Feb 07, 2017 11:09 am
- Forum: JFreeChart
- Topic: [XYShapeRenderer/LookupPaintScale]Crosshair not locking data
- Replies: 21
- Views: 16061
[XYShapeRenderer/LookupPaintScale]Crosshair not locking data
Hello again and sorry for multiple posts but I can't manage to solve the problems. I am using an XYShapeRenderer with a LookUpPaintScale and I want to lock the crosshair on the data that I use. Howerver, it doesn't work, however it works with XYShapeAndLineRenderer... Here is my code : private void ...