|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.quies.math.plot.RenderUtils
public final class RenderUtils
A collection of utility methods.
All methods are relative to the current render.
Graph.setDomain(GraphDomain)| Method Summary | |
|---|---|
static String |
getXFormatted(Graph graph,
Point2D position)
Gets the formatted x-coordinate from a graphical position. |
static BigDecimal |
getXValue(Graph graph,
Point2D position)
Gets the x-coordinate from a graphical position. |
static String |
getYFormatted(Graph graph,
Point2D position)
Gets the formatted y-coordinate from a graphical position. |
static BigDecimal |
getYValue(Graph graph,
Point2D position)
Gets the y-coordinate from a graphical position. |
static boolean |
print(Graph graph)
Runs a dialog to print the graph. |
static void |
writeAsCSV(Graph graph,
Writer target)
Streams the coordinates as comma-separated values. |
static void |
writeAsSVG(Graph graph,
Writer target)
Streams the graph to a SVG. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BigDecimal getXValue(Graph graph,
Point2D position)
MouseEvent.getPoint()
public static BigDecimal getYValue(Graph graph,
Point2D position)
MouseEvent.getPoint()
public static String getXFormatted(Graph graph,
Point2D position)
public static String getYFormatted(Graph graph,
Point2D position)
public static void writeAsSVG(Graph graph,
Writer target)
throws IOException
IOException
public static void writeAsCSV(Graph graph,
Writer target)
throws IOException
added to the graph.
This method requires QN CSV.
IOExceptionpublic static boolean print(Graph graph)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||