All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lightgraph.painters.GraphPainter Maven / Gradle / Ivy

The newest version!
package lightgraph.painters;

import lightgraph.LGFont;

import java.awt.*;
import java.awt.geom.PathIterator;
import java.awt.geom.Rectangle2D;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.text.MessageFormat;

/**
 * For painting a graph, the implementations either use a graphics object
 * or paint to an svg file.
 *
 * @author mbs207
 */
public interface GraphPainter {
    //public void drawEllipse(Shape s);
    public void drawPath(Shape s);
    public void setColor(Color c);
    public Color getColor();
    public void drawLine(double x0, double y0, double x1, double y1);
    public void fill(Shape s);
    public void setClip(int x, int y, int w, int h);
    public void drawString(String s, double x, double y);
    public void setLineWidth(double f);
    public void restoreLineWidth();
    public void setDashes(float[] dashes);
    public void setFill(boolean fill);
    public void startGroup();
    public void endGroup();
    public void setFont(LGFont font);
    public int getStringWidth(String label);
    public void drawVerticalString(String s, double x, double y);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy