Tabnine Logo
CombinedRangeXYPlot.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
org.jfree.chart.plot.CombinedRangeXYPlot

Best Java code snippets using org.jfree.chart.plot.CombinedRangeXYPlot.add (Showing top 4 results out of 315)

origin: kiegroup/optaplanner

private JFreeChart createChart(CheapTimeSolution solution) {
  TangoColorFactory tangoColorFactory = new TangoColorFactory();
  NumberAxis rangeAxis = new NumberAxis("Period");
  rangeAxis.setRange(-0.5, solution.getGlobalPeriodRangeTo() + 0.5);
  XYPlot taskAssignmentPlot = createTaskAssignmentPlot(tangoColorFactory, solution);
  XYPlot periodCostPlot = createPeriodCostPlot(tangoColorFactory, solution);
  XYPlot capacityPlot = createAvailableCapacityPlot(tangoColorFactory, solution);
  CombinedRangeXYPlot combinedPlot = new CombinedRangeXYPlot(rangeAxis);
  combinedPlot.add(taskAssignmentPlot, 5);
  combinedPlot.add(periodCostPlot, 1);
  combinedPlot.add(capacityPlot, 1);
  combinedPlot.setOrientation(PlotOrientation.HORIZONTAL);
  return new JFreeChart("Cheap Power Time Scheduling", JFreeChart.DEFAULT_TITLE_FONT,
      combinedPlot, true);
}
origin: jfree/jfreechart

/**
 * Adds a subplot, with a default 'weight' of 1.
 * <br><br>
 * You must ensure that the subplot has a non-null domain axis.  The range
 * axis for the subplot will be set to {@code null}.
 *
 * @param subplot  the subplot.
 */
public void add(XYPlot subplot) {
  add(subplot, 1);
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Adds a subplot, with a default 'weight' of 1.
 * <br><br>
 * You must ensure that the subplot has a non-null domain axis.  The range
 * axis for the subplot will be set to <code>null</code>.
 *
 * @param subplot  the subplot.
 */
public void add(XYPlot subplot) {
  add(subplot, 1);
}
origin: org.optaplanner/optaplanner-examples

private JFreeChart createChart(CheapTimeSolution solution) {
  TangoColorFactory tangoColorFactory = new TangoColorFactory();
  NumberAxis rangeAxis = new NumberAxis("Period");
  rangeAxis.setRange(-0.5, solution.getGlobalPeriodRangeTo() + 0.5);
  XYPlot taskAssignmentPlot = createTaskAssignmentPlot(tangoColorFactory, solution);
  XYPlot periodCostPlot = createPeriodCostPlot(tangoColorFactory, solution);
  XYPlot capacityPlot = createAvailableCapacityPlot(tangoColorFactory, solution);
  CombinedRangeXYPlot combinedPlot = new CombinedRangeXYPlot(rangeAxis);
  combinedPlot.add(taskAssignmentPlot, 5);
  combinedPlot.add(periodCostPlot, 1);
  combinedPlot.add(capacityPlot, 1);
  combinedPlot.setOrientation(PlotOrientation.HORIZONTAL);
  return new JFreeChart("Cheap Power Time Scheduling", JFreeChart.DEFAULT_TITLE_FONT,
      combinedPlot, true);
}
org.jfree.chart.plotCombinedRangeXYPlotadd

Javadoc

Adds a subplot, with a default 'weight' of 1.

You must ensure that the subplot has a non-null domain axis. The range axis for the subplot will be set to null.

Popular methods of CombinedRangeXYPlot

  • calculateAxisSpace
    Calculates the space required for the axes.
  • configureRangeAxes
  • findSubplot
    Returns the subplot (if any) that contains the (x, y) point (specified in Java2D space).
  • fireChangeEvent
  • getFixedLegendItems
  • getFixedRangeAxisSpace
  • getInsets
  • getOrientation
  • getRangeAxis
  • getRangeAxisEdge
  • getRangeAxisLocation
  • getSubplots
    Returns the list of subplots. The returned list may be empty, but is never null.
  • getRangeAxisLocation,
  • getSubplots,
  • notifyListeners,
  • setFixedDomainAxisSpaceForSubplots,
  • zoomDomainAxes,
  • <init>,
  • setNotify,
  • setOrientation

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now