Jump to content
Changes to the Jaspersoft community edition download ×

akhanh

Members
  • Posts

    31
  • Joined

  • Last visited

akhanh's Achievements

Contributor

Contributor (5/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. For an administrator: i dont know why: if i post something one time, it create two posts. in my last posts it create four times, but i press the submit button only one time...
  2. Hi, that works very fine. For all a summary: 1. create: package tests; import net.sf.jasperreports.engine.JRAbstractChartCustomizer; import net.sf.jasperreports.engine.JRChart; import net.sf.jasperreports.engine.JRChartCustomizer; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.data.Range; public class customizer extends JRAbstractChartCustomizer{ public void customize(JFreeChart jfreechart, JRChart arg1) { // Get the plot CategoryPlot plot = jfreechart.getCategoryPlot(); plot.getRangeAxis().setRange(10, 100); } } 2.: set it (see last post) in the chart the customizer class. In my example you must write tests.customize tests is the package name. Thats all and you get a y-axis range from 10 to 100. With the methods of plot (see above) you can change different values of the chart Ali Baba
  3. Hi, that works very fine. For all a summary: 1. create: package tests; import net.sf.jasperreports.engine.JRAbstractChartCustomizer; import net.sf.jasperreports.engine.JRChart; import net.sf.jasperreports.engine.JRChartCustomizer; import org.jfree.chart.JFreeChart; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.plot.CategoryPlot; import org.jfree.data.Range; public class customizer extends JRAbstractChartCustomizer{ public void customize(JFreeChart jfreechart, JRChart arg1) { // Get the plot CategoryPlot plot = jfreechart.getCategoryPlot(); plot.getRangeAxis().setRange(10, 100); } } 2.: set it (see last post) in the chart the customizer class. In my example you must write tests.customize tests is the package name. Thats all and you get a y-axis range from 10 to 100. With the methods of plot (see above) you can change different values of the chart Ali Baba
  4. HI, this could work, but my problem is to set the customizer class. I have a custumizer extends JRAbstractChartCustomizer and i try to use it with JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass("customizer"); but i get Exception in thread "main" net.sf.jasperreports.engine.JRRuntimeException: Could not create chart customizer instance. i dont know i set the customizer class...
  5. Hi, my problem is to find the interface to get a jfreechart from JR. Do you know how i get it?
  6. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  7. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  8. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  9. Hi, i tried to change the range y-axis of a bar-chart. i create a 'class customizer implements JRChartCustomizer' a i tried to use it with ' // getchart JRDesignChart i = (JRDesignChart) (jdesgn.getSummary().getElements()[0]); i.setCustomizerClass(new customizer().toString()); ' but it do not work. What i should write in i.setCustomizerClass(new customizer().toString()); Thanks Ali Baba
  10. Hi StackTrayce, your way is possible, but i will avoid to use awt classes. I will try to use only jasper reports api functionality, but i didnt found any class/method. Can anybody help? Thanks HA
  11. Hi all, (sorry that i posted the same in ireport forum). I need the pixel size of a String value. Can anybody help? Thanks HA
  12. Hi all, how can i get the pixel size of a Stringvalue? Thanks all HA
  13. Hi all, i have a Subreport. This includes in the columnheader the tableheader. In the detail band i have the table content. Now i write JasperDesign.setsplitallowed(true); If it works, i get sometimes in the bottom of the page ONLY the tableheader and in the next page i get again the tableheader with the content. It is possible to avoid this. If the tableheader is print in e.g. page 1 i will print minimum 1 line content... Thanks HA
  14. Thank you very much. You saved me a lot of time... HA
  15. Hi, i load the report with JasperDesign jdesgn = JRXmlLoader.load("C:/Programme/JasperSoft/reports/graphTest.jrxml"); and will change the height of the detail band or an Image JRBaseImage, but i have no setheight(...) method. Have you an idea? Thanks HA
×
×
  • Create New...