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;
 
 import java.util.Map;
 
 
 public interface ChartPanel {
 
 
     Component getPanel();
 
     void setThreads(Threads threads);
 
     void setTexts(Texts texts);
 
     void setImages(Images images);
 
     void setName(String name);
 
     String getName();
 
     void addChart(Chart chart);
 
     void removeChart(Chart chart);

    
Returns the charts in the panel.

Returns:
the java.util.Map of Chart charts with the chart name as the key.
 
     Map<StringChartgetCharts();

    
Sets the orientation of the chart.

AWT Thread

Should be called in the AWT thread.

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

    
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);

    
Returns if anti-aliasing is used in the data graph.

Returns:
true if anti-aliasing is enabled.
 
     boolean isAntiAliasing();

    
Sets black/white or color data graph.

AWT Thread

Should be called in the AWT thread.

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

    
Returns black/white or color data graph.

Returns:
true if black/white is set.
    boolean isBlackWhite();

    
Sets show shapes graph.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to enable shapes.
    void setShowShapes(boolean flag);

    
Returns shows shapes on the graph.

Returns:
true if the shapes are shown.
    boolean isShowShapes();

    
Sets the icon size for the actions.

AWT Thread

Should be called in the AWT thread.

    void setIconSize(IconSize size);

    
Returns the icon size for the actions.

    IconSize getIconSize();

    
Sets text position for actions.

AWT Thread

Should be called in the AWT thread.

    void setTextPosition(TextPosition position);

    
Returns the text position for actions.

    void setAutoZoomDomain(boolean flag);
    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:
min the minimum value.
max the maximum 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 allowing domain axis scroll.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to enable domain axis scroll.
    void setAllowDomainAxisScroll(boolean flag);

    
Sets allowing range axis scroll.

AWT Thread

Should be called in the AWT thread.

Parameters:
flag set to true to enable range axis scroll.
    void setAllowRangeAxisScroll(boolean flag);

    
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);

    
            PropertyChangeListener listener);

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