minor - fixed license header and remove unuse code
This commit is contained in:
parent
0434ec9644
commit
5e9d1586a5
|
|
@ -1,3 +1,16 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2008 Low Heng Sin *
|
||||
* Copyright (C) 2008 Idalica Corporation *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program 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 General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.adempiere.webui.apps.graph;
|
||||
|
||||
import java.awt.Color;
|
||||
|
|
@ -48,8 +61,7 @@ import org.zkoss.zul.Imagemap;
|
|||
/**
|
||||
* Bar Graph
|
||||
*
|
||||
* @author Jorg Janke
|
||||
* @version $Id: BarGraph.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
|
||||
* @author hengsin
|
||||
*/
|
||||
public class WBarGraph extends Panel
|
||||
{
|
||||
|
|
@ -77,17 +89,12 @@ public class WBarGraph extends Panel
|
|||
m_Y_AxisLabel = goal.getName();
|
||||
m_X_AxisLabel = goal.getXAxisText();
|
||||
loadData();
|
||||
//addComponentListener(this);
|
||||
} // BarGraph
|
||||
|
||||
/** The Goal */
|
||||
private MGoal m_goal = null;
|
||||
/** Graph Size */
|
||||
//private Dimension m_size = null;
|
||||
/** Zero/Zero Coordibate point */
|
||||
private Point m_point0_0 = null;
|
||||
/** Layout */
|
||||
// private BarGraphLayout m_layout = new BarGraphLayout(this);
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger (WBarGraph.class);
|
||||
|
|
@ -96,13 +103,8 @@ public class WBarGraph extends Panel
|
|||
private String m_X_AxisLabel = "X Axis";
|
||||
/** Y Axis Label */
|
||||
private String m_Y_AxisLabel = "Y Axis";
|
||||
/** Y Axis Max */
|
||||
// private double m_Y_Max = 0;
|
||||
/** Y Axis Target Line */
|
||||
// private double m_Y_Target = 0;
|
||||
/** Y Axis Target Line Label */
|
||||
private String m_Y_TargetLabel = null;
|
||||
// private static Dimension paneldimension = new Dimension(180, 150);
|
||||
|
||||
final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
|
||||
|
||||
|
|
@ -293,12 +295,6 @@ public class WBarGraph extends Panel
|
|||
|
||||
// Add last 20
|
||||
int startValue = 0;
|
||||
//if (list.size() > 20) //TODO CHECK
|
||||
// startValue = list.size()-20;
|
||||
/*
|
||||
for (int i = startValue; i < list.size(); i++)
|
||||
add (list.get(i));
|
||||
*/
|
||||
for (int i = startValue; i < list.size(); i++){
|
||||
dataset.addValue(list.get(i).getValue(), list.get(i).getLabel(), list.get(i).getLabel());
|
||||
}
|
||||
|
|
@ -341,7 +337,7 @@ public class WBarGraph extends Panel
|
|||
appendChild(myImage);
|
||||
|
||||
int count = 0;
|
||||
for(Iterator it = info.getEntityCollection().getEntities().iterator(); it.hasNext(); )
|
||||
for(Iterator<?> it = info.getEntityCollection().getEntities().iterator(); it.hasNext(); )
|
||||
{
|
||||
ChartEntity ce = ( ChartEntity ) it.next();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue