Ejemplo n.º 1
0
    /** The constructor for the custom renderer, which will set the colours of the Area */
    public CustomRenderer() {
      ColourMap mappedColours = GetColourMap();
      this.setSeriesShape(0, ShapeUtilities.createDiagonalCross(SCATTERPOINTSIZE, 1));

      this.colors = new Paint[mappedColours.getColourArray().length];

      for (int i = 0; i < mappedColours.getColourArray().length; i++) {
        this.colors[i] = mappedColours.getColour(i);
      }
    }
 /** Test of getColourArray method, of class ColourMap. */
 @Test
 public void testGetColourArray() {
   System.out.println("getColourArray");
   String[] queries = null;
   ColourMap instance = new ColourMap();
   ArrayList expResult = null;
   ArrayList result = instance.getColourArray(queries);
   assertEquals(expResult, result);
   // TODO review the generated test code and remove the default call to fail.
   fail("The test case is a prototype.");
 }