Package kg.apc.charting.rows

Examples of kg.apc.charting.rows.GraphRowSumValues$ExactEntry


     */
    @Test
    public void testGetMaxX()
    {
        System.out.println("getMaxX");
        GraphRowSumValues instance = new GraphRowSumValues();
        instance.setGranulationValue(100);
        instance.setExcludeOutOfRangeValues(true);
        instance.add(1000, 10);
        instance.add(100000, 20);

        long expResult = 1000L;
        long result = instance.getMaxX();
        assertEquals(expResult, result);

        instance.setExcludeOutOfRangeValues(false);
        expResult = 100000;
        result = instance.getMaxX();
        assertEquals(expResult, result);

    }
View Full Code Here


    @Test
    public void testGetElement()
    {
        System.out.println("getElement");
        long value = 100L;
        GraphRowSumValues instance = new GraphRowSumValues();
        AbstractGraphPanelChartElement expResult = new GraphPanelChartSumElement(10);
        instance.add(value, 10);
        AbstractGraphPanelChartElement result = instance.getElement(value);
        assertTrue(instance.getElement(value).getValue() == expResult.getValue());
    }
View Full Code Here

    * Test of init method, of class CubicSpline.
    */
   @Test
   public void testInit() {
      System.out.println("init");
      AbstractGraphRow row = new GraphRowSumValues(false);
      row.add(1, 1);
      row.add(2, 4);
      row.add(3, 2);
      CubicSpline instance = new CubicSpline(row);
      instance.init(row);
   }
View Full Code Here

    * Test of interpolate method, of class CubicSpline.
    */
   @Test
   public void testInterpolate() {
      System.out.println("interpolate");
      AbstractGraphRow row = new GraphRowSumValues(false);
      row.add(1, 1);
      row.add(2, 4);
      row.add(4, 2);
     
      CubicSpline instance = new CubicSpline(row);
      double xx = 1.0;
      double expResult = 1.0;
      double result = instance.interpolate(xx);
View Full Code Here

TOP

Related Classes of kg.apc.charting.rows.GraphRowSumValues$ExactEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.