*
The moose likes Other Open Source Projects and the fly likes cewolf shadow and label Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "cewolf shadow and label" Watch "cewolf shadow and label" New topic
Author

cewolf shadow and label

Carmen Lagana'
Greenhorn

Joined: May 08, 2013
Posts: 4
Hello.
I have 3 questions for you. I have attached a file that is the img of my chart. I would delete the grey shadow in the pie, change the style of title "Numenro movimenti" and change the style of label "SGRAVIO".
Is it possible?
thank you very much for your attention.




[Thumbnail for Immagine.png]

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
The style of the title and the legend can be altered using a TitleEnhancer and LegendEnhancer chart postprocessor, repectively. Both postprocessors are shown in action in the example web app.

I don't think it's currently possible to hide the shadow of the chart. JFreeChart (the graphics library used by cewolf) can do that, though - I'll look into what's involved in making that setting available to cewolf.


Ping & DNS - my free Android networking tools app
Carmen Lagana'
Greenhorn

Joined: May 08, 2013
Posts: 4
Ulf Dittmer wrote:The style of the title and the legend can be altered using a TitleEnhancer and LegendEnhancer chart postprocessor, repectively. Both postprocessors are shown in action in the example web app.

I don't think it's currently possible to hide the shadow of the chart. JFreeChart (the graphics library used by cewolf) can do that, though - I'll look into what's involved in making that setting available to cewolf.

Thank you very much!!!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
I have released a new version of cewolf (1.2.3) with the following change:

A new boolean attribute "showShadow" for the PieEnhancer chart postprocessor makes it possible to turn off the drop shadow in pie charts. (It was always on until now, and is still shown by default for backwards compatibility). If you don't use pie charts, or are happy with how they look, then you don't need to upgrade.

The example web app is at https://sourceforge.net/projects/cewolf/files/example%20web-app/cewolf-1.2.3/
Carmen Lagana'
Greenhorn

Joined: May 08, 2013
Posts: 4
Ulf Dittmer wrote:I have released a new version of cewolf (1.2.3) with the following change:

A new boolean attribute "showShadow" for the PieEnhancer chart postprocessor makes it possible to turn off the drop shadow in pie charts. (It was always on until now, and is still shown by default for backwards compatibility). If you don't use pie charts, or are happy with how they look, then you don't need to upgrade.

The example web app is at https://sourceforge.net/projects/cewolf/files/example%20web-app/cewolf-1.2.3/


Thank you very much for your release!!!

For the label, instead, I don't find the solution. I didn't refer to the north-positioned legend but to the label in the chart (the ones in the img that I have attached now)

Thank you for your attention


[Immagine.png]

Carmen Lagana'
Greenhorn

Joined: May 08, 2013
Posts: 4
Excuse me, but I have another question (it's not my fault ).
Can we put in the sectionLabel the value of the section instead of the legend?
For example, I have 2 apples and 3 bananas, I want to write apples and banana in the legend and 2 and3 in the sectionLabel, is it possible?
Thank you very very much
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
For the label, instead, I don't find the solution. I didn't refer to the north-positioned legend but to the label in the chart (the ones in the img that I have attached now)

You could write a postprocessor (possibly building upon the PieEnhancer class) that calls PiePlot.setLabelFont to do this.

Can we put in the sectionLabel the value of the section instead of the legend? For example, I have 2 apples and 3 bananas, I want to write apples and banana in the legend and 2 and3 in the sectionLabel, is it possible?

You would need to create a PieSectionLabelGenerator, and then put it to use (again, in a postprocessor) via PiePlot.setLabelGenerator.
 
wood burning stoves
 
subject: cewolf shadow and label
 
Similar Threads
What are the most important issues facing the US today?
Embedded TabSheets in Vaadin
CSS in JSF
Internet Explorer 6 select box has flashing space at the bottom.
accessing shadowed final values in method local inner class