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

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

Best Java code snippets using org.jfree.chart.plot.CombinedRangeXYPlot.setOrientation (Showing top 2 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: 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.plotCombinedRangeXYPlotsetOrientation

Javadoc

Sets the orientation for the plot (and all its subplots).

Popular methods of CombinedRangeXYPlot

  • add
    Adds a subplot with a particular weight (greater than or equal to one). The weight determines how mu
  • 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
  • getRangeAxisEdge,
  • getRangeAxisLocation,
  • getSubplots,
  • notifyListeners,
  • setFixedDomainAxisSpaceForSubplots,
  • zoomDomainAxes,
  • <init>,
  • setNotify

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Top 12 Jupyter Notebook extensions
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