Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2013-2014 Erwin Müller <erwin.mueller@deventm.org>
   *
   * This file is part of prefdialog-misc-swing.
   *
   * prefdialog-misc-swing is free software: you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as published by the
   * Free Software Foundation, either version 3 of the License, or (at your
   * option) any later version.
  *
  * prefdialog-misc-swing is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public License
  * along with prefdialog-misc-swing. If not, see <http://www.gnu.org/licenses/>.
  */
 package com.anrisoftware.prefdialog.miscswing.multichart.chart;
 
 
 
 public interface Chart {
 
     String getName();
 
     void setThreadPool(ExecutorService pool);

    
Sets the chart model.

AWT Thread

Should be called in the AWT thread.

 
     void setModel(ChartModel model);
 
     ChartModel getModel();

    
Sets the orientation of the chart.

AWT Thread

Should be called in the AWT thread.

Parameters:
orientation the PlotOrientation.
 
     void setPlotOrientation(PlotOrientation orientation);
 
     Component getPanel();

    
Returns the chart. The return value must be casted to the specific chart type.

Returns:
the java.lang.Object chart.
 
     Object getChart();

    
Sets to use anti-aliasing in the data graph.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to enable anti-aliasing.
 
     void setAntiAliasing(boolean flag);

    
Sets black/white or color data graph.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to enable black/white.
 
     void setBlackWhite(boolean flag);

    
Sets show shapes graph.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to enable black/white.
    void setShowShapes(boolean flag);

    
Sets auto zooms of the domain axis.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true for auto zoom.
    void setAutoZoomDomain(boolean flag);

    
Sets auto zooms of the range axis.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true for auto zoom.
    void setAutoZoomRange(boolean flag);

    
Zooms the domain axis.

AWT Thread

Should be called in the AWT thread.

Parameters:
factor set to 1 to zoom in or -1 to zoom out the domain axis.
    void setZoomDomain(int factor);

    
Sets the range of the range axis. If the range is set then the zoom will not exceed it.

AWT Thread

Should be called in the AWT thread.

Parameters:
lower the lower range value.
upper the upper range value.
    void setRangeAxisRange(double lowerdouble upper);

    
Sets the maximum rows of the view for auto-zoom.

Parameters:
maximum the maximum rows.
    void setMaximumView(int maximum);

    
Sets allow scrolling the domain axis by the mouse wheel.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to allow scrolling.
    void setAllowMouseScroll(boolean flag);

    
Sets the offset of the data that is shown in the graph.

AWT Thread

Should be called in the AWT thread.

Parameters:
offset the offset.
    void setOffset(int offset);

    
            PropertyChangeListener listener);

    
            PropertyChangeListener listener);
New to GrepCode? Check out our FAQ X