camera.addChild((PanCameraNode)iter.next());
camera.addChild(0,(PanCameraNode)iter.next());
    protected void recalculatePanNodes()    {        for(Iterator iter = panNodeList.iterator(); iter.hasNext();)        {            camera.removeChild((PanCameraNode)iter.next());        }        panNodeList.clear();        double netAmount =            camera.localToView(new Point2D.Double(panSpeed,0)).getX();                PanCameraNode nwNode =            new PanCameraNode(new Rectangle2D.Double(0,0,                                                     edgeDistance,                                                     edgeDistance),                              netAmount, netAmount);                // make the happy fun activated arrow.        GeneralPath arrow = new GeneralPath();        arrow.moveTo(5,5);        arrow.lineTo(35,5);        arrow.lineTo(5,35);        arrow.closePath();        nwNode.setIndicatorShape(arrow);                                     PanCameraNode nNode =            new PanCameraNode(new Rectangle2D.Double(                                                     edgeDistance,0,                                                     cameraBounds.getWidth()-                                                     (edgeDistance*2),                                                     edgeDistance),                              0, netAmount);                                      arrow = new GeneralPath();        arrow.moveTo((float)cameraBounds.getCenterX(),5);        arrow.lineTo((float)cameraBounds.getCenterX()-21,26);        arrow.lineTo((float)cameraBounds.getCenterX()+21,26);        arrow.closePath();        nNode.setIndicatorShape(arrow);                PanCameraNode neNode =            new PanCameraNode(new Rectangle2D.Double(                                                     (cameraBounds.getWidth()-                                                     edgeDistance),0,                                                     edgeDistance,                                                     edgeDistance),                              -netAmount, netAmount);                                      arrow = new GeneralPath();        arrow.moveTo((float)cameraBounds.getWidth()-5,5);        arrow.lineTo((float)cameraBounds.getWidth()-35,5);        arrow.lineTo((float)cameraBounds.getWidth()-5,35);        arrow.closePath();        neNode.setIndicatorShape(arrow);                                              PanCameraNode eNode =            new PanCameraNode(new Rectangle2D.Double(                                                     (cameraBounds.getWidth()-                                                      edgeDistance),                                                     edgeDistance,                                                     edgeDistance,                                                     cameraBounds.getHeight()-                                                      (edgeDistance*2)),                              -netAmount, 0);                                      arrow = new GeneralPath();        arrow.moveTo((float)cameraBounds.getWidth()-5,                     (float)cameraBounds.getCenterY());        arrow.lineTo((float)cameraBounds.getWidth()-26,                     (float)cameraBounds.getCenterY()-21);        arrow.lineTo((float)cameraBounds.getWidth()-26,                     (float)cameraBounds.getCenterY()+21);        arrow.closePath();        eNode.setIndicatorShape(arrow);                PanCameraNode seNode =            new PanCameraNode(new Rectangle2D.Double(                                                     (cameraBounds.getWidth()-                                                      edgeDistance),                                                     (cameraBounds.getHeight()-                                                      edgeDistance),                                                     edgeDistance,                                                     edgeDistance),                              -netAmount, -netAmount);                                      arrow = new GeneralPath();        arrow.moveTo((float)cameraBounds.getWidth()-5,                     (float)cameraBounds.getHeight()-5);        arrow.lineTo((float)cameraBounds.getWidth()-35,                     (float)cameraBounds.getHeight()-5);        arrow.lineTo((float)cameraBounds.getWidth()-5,                     (float)cameraBounds.getHeight()-35);        arrow.closePath();        seNode.setIndicatorShape(arrow);                                      PanCameraNode sNode =            new PanCameraNode(new Rectangle2D.Double(                                                     edgeDistance,                                                     (cameraBounds.getHeight()-                                                      edgeDistance),                                                     (cameraBounds.getWidth()-                                                      edgeDistance*2),                                                     edgeDistance),                              0, -netAmount);                                      arrow = new GeneralPath();        arrow.moveTo((float)cameraBounds.getCenterX(),                     (float)cameraBounds.getHeight()-5);        arrow.lineTo((float)cameraBounds.getCenterX()-21,                     (float)cameraBounds.getHeight()-26);        arrow.lineTo((float)cameraBounds.getCenterX()+21,                     (float)cameraBounds.getHeight()-26);        arrow.closePath();        sNode.setIndicatorShape(arrow);                                      PanCameraNode swNode =            new PanCameraNode(new Rectangle2D.Double(0,                                                     (cameraBounds.getHeight()-                                                      edgeDistance),                                                     edgeDistance,                                                     edgeDistance),                              netAmount, -netAmount);                                      arrow = new GeneralPath();        arrow.moveTo(5,(float)cameraBounds.getHeight()-5);        arrow.lineTo(5,(float)cameraBounds.getHeight()-35);        arrow.lineTo(35,(float)cameraBounds.getHeight()-5);        arrow.closePath();        swNode.setIndicatorShape(arrow);                                      PanCameraNode wNode =            new PanCameraNode(new Rectangle2D.Double(0,                                                     edgeDistance,                                                     edgeDistance,                                                     (cameraBounds.getHeight()-                                                      edgeDistance*2)),                              netAmount, 0);                                      arrow = new GeneralPath();        arrow.moveTo(5,(float)cameraBounds.getCenterY());        arrow.lineTo(26,(float)cameraBounds.getCenterY()-21);        arrow.lineTo(26,(float)cameraBounds.getCenterY()+21);        arrow.closePath();        wNode.setIndicatorShape(arrow);                                                panNodeList.add(nwNode);        panNodeList.add(nNode);        panNodeList.add(neNode);        panNodeList.add(eNode);        panNodeList.add(seNode);        panNodeList.add(sNode);        panNodeList.add(swNode);        panNodeList.add(wNode);                for(Iterator iter = panNodeList.iterator(); iter.hasNext();)        {            camera.addChild((PanCameraNode)iter.next());        }             }