Search found 29 matches

by MattBallard
Tue Dec 18, 2007 8:31 pm
Forum: JFreeChart
Topic: SpiderWebPlot: creating darker colors
Replies: 0
Views: 1622

SpiderWebPlot: creating darker colors

When I call setSeriesPaint on a SpiderWebPlot, the colors are not dark enough. Is there a way to make the colors darker?

i tried the Color.darker() method, but it stays the same color.
by MattBallard
Wed Dec 05, 2007 3:52 pm
Forum: JFreeChart
Topic: XYBarDataset: no getter or setter for underlying dataset?
Replies: 3
Views: 2979

Thanks for your response david. We updated to version 1.0.6 and the getUnderlyingDataset() in XYBarDataset solved our problems. What is the most stable build? We have to put together justification for updating from 1.0.3 to the most stable build. Looks like our development project is going to requir...
by MattBallard
Tue Dec 04, 2007 9:09 pm
Forum: JFreeChart
Topic: XYBarDataset: no getter or setter for underlying dataset?
Replies: 3
Views: 2979

XYBarDataset: no getter or setter for underlying dataset?

I am running 1.0.3 version of JFreeChart and have extended the XYBarRenderer. I need to have access to the underlying dataset within the XYBarRenderer, is this possible? Currently there is only the XYBarDataset instance within the Renderer. I need access to the underlying dataset because I have exte...
by MattBallard
Mon Oct 22, 2007 5:52 pm
Forum: JFreeChart
Topic: Using a DateAxis with A XYBarRenderer
Replies: 0
Views: 1827

Using a DateAxis with A XYBarRenderer

Is there a way to align the tick marks in the middle of the Bars? I have a DateAxis as my DomainAxis for my XYPlot and need to align certain days with bars from my XYBarRenderer. The Bars are vertical. I am using the setTickMarkPosition method and it is not changing anything. Here is my code: /* ***...
by MattBallard
Mon Sep 10, 2007 9:07 pm
Forum: JFreeChart
Topic: Associating a BarRenderer with a LineAndShapeRender
Replies: 0
Views: 1566

Associating a BarRenderer with a LineAndShapeRender

I need to place a shape on a specific area on a bar. Is there anyway to control this?

The dataset associated with the barrenderer always has a value of 1.0. I will need to place a shape anywhere between 0.0 and 1.0 on the barrenderer.

Can anyone offer up a suggestion?
by MattBallard
Fri Sep 07, 2007 6:03 pm
Forum: JFreeChart
Topic: Unable to control coloring of Line in LineAndShapeRenderer !
Replies: 4
Views: 5950

I am having an issue with a similar problem. I just want my shapes to change color and my lines to be black. Currently I have extended the LineAndShapeRenderer to this: public class LineAndColorShapeRenderer extends LineAndShapeRenderer { /** Creates a new instance of LineAndColorShapeRenderer */ pu...
by MattBallard
Thu Aug 30, 2007 11:03 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

This is my new approach: Since my paintContext does not take into consideration bounds and affine transforms. I have decided to make my createContext call LinearGradientPaints Context. I have also made my TriPaint extend Gradient Paint. Please note I am using Apache Batik's version of LinearGradient...
by MattBallard
Thu Aug 30, 2007 7:23 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

That is what I was afraid of. That is why I was considering LinearGradientPaint as a alternative.

I wish I understood better how to apply affine-transform.

Until then, I will keep shooting in the dark.

Thanks for your comments.
by MattBallard
Thu Aug 30, 2007 6:53 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

I have verified this behavior with both 1.0.3 and 1.0.6 versions of JfreeChart
by MattBallard
Thu Aug 30, 2007 5:55 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

My specialized DiagPaint extends GradientPaint which implements Paint (see below) If you throw this inside a BarRenderer using the setPaint function it shows the bars as a gradient that is only two colors. Inside a Java JPanel it displays the gradient correctly (all three colors) Corrected Code as f...
by MattBallard
Thu Aug 30, 2007 3:42 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

i can look into this, but am unsure on what mechanism allows the GradientPaint class to fill the bars seperately.
by MattBallard
Tue Aug 28, 2007 1:07 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

should i assume that this is a bug with jfreechart? Maybe, LinearGradientPaint is a new class in Java 6, and since JFreeChart is supporting Java 1.3 upwards, we don't have any code that specifically recognises this gradient paint. Potentially we could modify the StandardGradientPaintTransformer to ...
by MattBallard
Mon Aug 27, 2007 2:37 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

should i assume that this is a bug with jfreechart?
by MattBallard
Fri Aug 24, 2007 8:09 pm
Forum: JFreeChart
Topic: Using LinearGradientPaint (java 6, Batik) with a BarRenderer
Replies: 11
Views: 9710

Using LinearGradientPaint (java 6, Batik) with a BarRenderer

I am having a drawing issues. How would I approach filling a single bar (renderer.setSeriesPaint() or renderer.setBasePaint()) with a single LinearGradientPaint? Every time I try to draw it just applies a single gradient to however many bars i am displaying. Check this link for an example. http://ww...
by MattBallard
Fri Aug 24, 2007 2:45 pm
Forum: JFreeChart
Topic: DefaultCategoryDataset on a BarRenderer (Regarding a Series)
Replies: 2
Views: 3036

I am using the Batik LinearGradientPaint class and I get the same result.

The graphic is not on each specific bar. It spans all the bars. I am confused as to why the GradientPaint (java class) acts in the manner I expect, but not the Batik or my own gradientpaint class.