/* * Name: LineChartElementInPlaceUpdate.java * Package: it.kaizenteam.app.model.NorrisChart * Location: Sources/Applicazione/main/java/it/kaizenteam/app/model/NorrisChart * Date: 2015-05-22 * Version: v1.00 * * History: * ================================================================= * Version Date Programmer Changes * ================================================================= * v1.00 2015-06-15 Carlon Chiara Approved * ================================================================= * v0.04 2015-06-02 Moretto Alessandro Verify * ================================================================= * v0.03 2015-05-30 Rubin Marco Edit * ================================================================= * v0.02 2015-05-26 Moretto Alessandro Verify * ================================================================= * v0.01 2015-05-22 Dal Bianco Davide Creation * ================================================================= * */ package it.kaizenteam.app.model.NorrisChart; /** * This class represents an element of the in place update package of a line chart. */ public class LineChartElementInPlaceUpdate { private int value; private int xpos; private int ypos; /** * This method is a constructor to create this update package. * @param xpos abscissa of the data to update * @param ypos ordinate of the data to update * @param value new data of the update package */ public LineChartElementInPlaceUpdate(int xpos, int ypos, int value){ this.xpos=xpos; this.ypos=ypos; this.value=value; } /** * This method is responsible for returning the new data of the update package. * @return the new data of the update package */ public int getData(){ return value; } /** * This method has the task of returning the abscissa of the data to be modified. * @return the abscissa of the data */ public int getX(){ return xpos; } /** * This method has the task of returning the ordinate of the data to be modified. * @return the ordinate of the data */ public int getY(){ return ypos; } }