/// <summary>
 /// Clears the screen; fills with white.
 /// </summary>
 public virtual void clear()
 {
     __drawingArea.clear(GRColor.gray);
     GRDrawingAreaUtil.setColor(__drawingArea, GRColor.white);
     __drawingArea.setScaleData(false);
     GRDrawingAreaUtil.fillRectangle(__drawingArea, __leftX, __bottomY, __totalWidth, __totalHeight);
     __drawingArea.setScaleData(true);
 }
        /// <summary>
        /// Draws the outline of the legend.
        /// </summary>
        public virtual void drawLegend()
        {
            GRLimits l = __networkJComponent.getLegendDataLimits();

            if (l == null)
            {
                return;
            }
            GRDrawingAreaUtil.setColor(__drawingArea, GRColor.white);
            double lx = l.getLeftX();
            double by = l.getBottomY();
            double rx = l.getRightX();
            double ty = l.getTopY();

            GRDrawingAreaUtil.fillRectangle(__drawingArea, lx, by, l.getWidth(), l.getHeight());
            GRDrawingAreaUtil.setColor(__drawingArea, GRColor.black);
            GRDrawingAreaUtil.drawLine(__drawingArea, lx, by, rx, by);
            GRDrawingAreaUtil.drawLine(__drawingArea, lx, ty, rx, ty);
            GRDrawingAreaUtil.drawLine(__drawingArea, lx, by, lx, ty);
            GRDrawingAreaUtil.drawLine(__drawingArea, rx, by, rx, ty);
        }