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

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

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

origin: org.codehaus.jtstand/jtstand-chart

/**
 * Removes a subplot from the combined chart.
 *
 * @param subplot  the subplot (<code>null</code> not permitted).
 */
public void remove(XYPlot subplot) {
  if (subplot == null) {
    throw new IllegalArgumentException(" Null 'subplot' argument.");
  }
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this);
    configureRangeAxes();
    fireChangeEvent();
  }
}
origin: jfree/jfreechart

/**
 * Removes a subplot from the combined chart.
 *
 * @param subplot  the subplot ({@code null} not permitted).
 */
public void remove(XYPlot subplot) {
  Args.nullNotPermitted(subplot, "subplot");
  int position = -1;
  int size = this.subplots.size();
  int i = 0;
  while (position == -1 && i < size) {
    if (this.subplots.get(i) == subplot) {
      position = i;
    }
    i++;
  }
  if (position != -1) {
    this.subplots.remove(position);
    subplot.setParent(null);
    subplot.removeChangeListener(this);
    configureRangeAxes();
    fireChangeEvent();
  }
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Adds a subplot with a particular weight (greater than or equal to one).
 * The weight determines how much space is allocated to the subplot
 * relative to all the other subplots.
 * <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.
 * @param weight  the weight (must be 1 or greater).
 */
public void add(XYPlot subplot, int weight) {
  // verify valid weight
  if (weight <= 0) {
    String msg = "The 'weight' must be positive.";
    throw new IllegalArgumentException(msg);
  }
  // store the plot and its weight
  subplot.setParent(this);
  subplot.setWeight(weight);
  subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
  subplot.setRangeAxis(null);
  subplot.addChangeListener(this);
  this.subplots.add(subplot);
  configureRangeAxes();
  fireChangeEvent();
}
origin: jfree/jfreechart

/**
 * Adds a subplot with a particular weight (greater than or equal to one).
 * The weight determines how much space is allocated to the subplot
 * relative to all the other subplots.
 * <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 ({@code null} not permitted).
 * @param weight  the weight (must be 1 or greater).
 */
public void add(XYPlot subplot, int weight) {
  Args.nullNotPermitted(subplot, "subplot");
  if (weight <= 0) {
    String msg = "The 'weight' must be positive.";
    throw new IllegalArgumentException(msg);
  }
  // store the plot and its weight
  subplot.setParent(this);
  subplot.setWeight(weight);
  subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
  subplot.setRangeAxis(null);
  subplot.addChangeListener(this);
  this.subplots.add(subplot);
  configureRangeAxes();
  fireChangeEvent();
}
org.jfree.chart.plotCombinedRangeXYPlotfireChangeEvent

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).
  • 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

  • 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
  • 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