@Override
    public void render(Graphics2D g, LevelEditorComponent ed)
    {
        if (isZone)
            g.setColor(Colors.zone);
        else
            g.setColor(Colors.view);

        g.drawRect(X, Y, Width - 1, Height - 1);
        g.drawRect(X + 1, Y + 1, Width - 3, Height - 3);

        Rectangle ViewablePixels = ed.pixels;
        int vx = ViewablePixels.x;
        int vy = ViewablePixels.y;
        if (X + Width > vx && Y + Height > vy)
        {
            int numx = X;
            int numy = Y;

            if (numx < vx)
                numx = vx;
            if (numy < vy)
                numy = vy;
            if (isZone)
                numy += 16;
            g.drawString(GetDisplayString(), numx, numy);
        }
    }