Package com.positive.charts.title

Examples of com.positive.charts.title.LegendTitle


  public Chart(final Plot plot, final boolean createLegend) {
    this.plot = plot;
    plot.addChangeListener(this);
    // create a legend, if requested...
    if (createLegend) {
      final LegendTitle legend = new LegendTitle(this.plot);
      // legend.setMargin(new RectangleInsets(0, 0, 0, 0));
      // legend.setPadding(5, 1, 1,1);
      final LineBorder frame = new LineBorder();
      legend.setFrame(frame);
      legend.setBackgroundPaint(StaticColorChecker.dublicateColor(SWT.COLOR_WHITE));// Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
      legend.setPosition(RectangleEdge.BOTTOM);
      this.subtitles.add(legend);
      legend.addChangeListener(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.positive.charts.title.LegendTitle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.