org.jzy3d.plot3d.rendering.view
Class OverlayUtils
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.view.OverlayUtils
-
public class OverlayUtils extends java.lang.ObjectHelps understanding how overlay is actually performed by JOGL2.
-
-
Constructor Summary
Constructors Constructor and Description OverlayUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voiddrawCanvasAndViewportDiagonalComparison(Chart chart, java.awt.Graphics2D g2d)static voiddrawChartBorder(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.static voiddrawDiagonal(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 voiddrawPixel(java.awt.Graphics2D g2d, java.awt.Color c, int x, int y)static voiddrawPixel(java.awt.Graphics2D g2d, java.awt.Color c, int x, int y, int width)voiddrawSelection(java.awt.Graphics2D g2d, IntegerCoord2d in, int width, int height)static voiddrawText(java.awt.Graphics2D g2d, java.awt.Color c, int x, int y, java.lang.String txt)
-
-
-
Method Detail
-
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).
-
-
DMelt 3.0 © DataMelt by jWork.ORG