/*
 *  Groovy NGS Utils - Some simple utilites for processing Next Generation Sequencing data.
 *
 *  Copyright (C) 2014 Simon Sadedin, ssadedin<at>gmail.com
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
import groovy.transform.CompileStatic;

import java.awt.Font
import java.awt.FontMetrics
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Color;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;

import javax.imageio.*

import gngs.IRegion


/**
 * Drawing is a very simple graphics class that enables simple line and text drawings on a 
 * virtualised canvas that automatically maps mathematical coordinates to pixel based
 * coordinates.
 * 
 * @author simon
 */
class Drawing extends graxxia.Drawing {
    
    public Drawing(String fileName, int width, int height, double minX, double minY, double maxX, double maxY) {
        super(fileName, width, height, minX, minY, maxX, maxY);
    }
    public Drawing(String fileName, int width, int height, List minX, double minY, List maxX, double maxY) {
        super(fileName, width, height, minX, minY, maxX, maxY);
    }
    public Drawing(String fileName, int width, int height) {
        super(fileName, width, height);
    }
    Drawing bar(IRegion region, def y, String overText=null, String underText=null) {
        bar(region.range,y,overText,underText)
    }
}
