org.jzy3d.plot3d.rendering.view
Class OverlayUtils
java.lang.Object
org.jzy3d.plot3d.rendering.view.OverlayUtils
public class OverlayUtils
- extends java.lang.Object
Helps understanding how overlay is actually performed by JOGL.
Method Summary |
static void |
drawCanvasAndViewportDiagonalComparison(Chart chart,
java.awt.Graphics2D g2d)
|
static void |
drawChartBorder(java.awt.Graphics2D g2d,
java.awt.Color c,
Chart chart)
This shows a strange behaviour in the Overlay: when trying to draw a rectangle based on the CANVAS size (i.e. the window size),
the border occupies the CHART (i.e. its actual viewport). |
static void |
drawDiagonal(java.awt.Graphics2D g2d,
java.awt.Color c,
int wmax,
int hmax,
boolean sysout)
Diagonal made of points from (0,0) to (wmax, hmax). |
static void |
drawPixel(java.awt.Graphics2D g2d,
java.awt.Color c,
int x,
int y)
|
static void |
drawPixel(java.awt.Graphics2D g2d,
java.awt.Color c,
int x,
int y,
int width)
|
void |
drawSelection(java.awt.Graphics2D g2d,
IntegerCoord2d in,
int width,
int height)
|
static void |
drawText(java.awt.Graphics2D g2d,
java.awt.Color c,
int x,
int y,
java.lang.String txt)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OverlayUtils
public OverlayUtils()
drawSelection
public void drawSelection(java.awt.Graphics2D g2d,
IntegerCoord2d in,
int width,
int height)
drawCanvasAndViewportDiagonalComparison
public static void drawCanvasAndViewportDiagonalComparison(Chart chart,
java.awt.Graphics2D g2d)
drawPixel
public static void drawPixel(java.awt.Graphics2D g2d,
java.awt.Color c,
int x,
int y,
int width)
drawPixel
public static void drawPixel(java.awt.Graphics2D g2d,
java.awt.Color c,
int x,
int y)
drawText
public static void drawText(java.awt.Graphics2D g2d,
java.awt.Color c,
int x,
int y,
java.lang.String txt)
drawChartBorder
public static void drawChartBorder(java.awt.Graphics2D g2d,
java.awt.Color c,
Chart chart)
- This shows a strange behaviour in the Overlay: when trying to draw a rectangle based on the CANVAS size (i.e. the window size),
the border occupies the CHART (i.e. its actual viewport).
drawDiagonal
public static void drawDiagonal(java.awt.Graphics2D g2d,
java.awt.Color c,
int wmax,
int hmax,
boolean sysout)
- Diagonal made of points from (0,0) to (wmax, hmax).