Class EmulGLViewAndColorbarsLayout
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.view.layout.ViewAndColorbarsLayout
-
- org.jzy3d.plot3d.rendering.view.layout.EmulGLViewAndColorbarsLayout
-
- All Implemented Interfaces:
IViewportLayout
public class EmulGLViewAndColorbarsLayout extends ViewAndColorbarsLayout
-
-
Field Summary
-
Fields inherited from class org.jzy3d.plot3d.rendering.view.layout.ViewAndColorbarsLayout
backgroundViewport, chart, colorbarRightMargin, hasMeta, legendsWidth, sceneViewport, screenSeparator, shrinkColorbar
-
-
Constructor Summary
Constructors Constructor Description EmulGLViewAndColorbarsLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFixHiDPI()
void
render(IPainter painter, Chart chart)
Once rendered, this layout knows the colorbar width which can be retrieved withViewAndColorbarsLayout.getLegendsWidth()
protected void
renderLegends(IPainter painter, float left, float right, List<ILegend> legends, ICanvas canvas)
This override allows Shifting artificially the complete jGL viewport to let some place for a colorbar rendering.void
setFixHiDPI(boolean fixHiDPI)
protected float
updateFromValueToShrinkColorbar(IPainter painter, int width, AWTColorbarLegend awtLegend)
-
Methods inherited from class org.jzy3d.plot3d.rendering.view.layout.ViewAndColorbarsLayout
computeSeparator, getBackgroundViewport, getColorbarRightMargin, getLegends, getLegendsWidth, getSceneViewport, isShrinkColorbar, renderLegends, setColorbarRightMargin, setShrinkColorbar, update
-
-
-
-
Method Detail
-
render
public void render(IPainter painter, Chart chart)
Description copied from class:ViewAndColorbarsLayout
Once rendered, this layout knows the colorbar width which can be retrieved withViewAndColorbarsLayout.getLegendsWidth()
- Specified by:
render
in interfaceIViewportLayout
- Overrides:
render
in classViewAndColorbarsLayout
-
renderLegends
protected void renderLegends(IPainter painter, float left, float right, List<ILegend> legends, ICanvas canvas)
This override allows- Shifting artificially the complete jGL viewport to let some place for a colorbar rendering.
- Rendering the image using jGL dedicated image management
(
GL#appendImageToDraw(BufferedImage, int, int)
).
- Overrides:
renderLegends
in classViewAndColorbarsLayout
-
updateFromValueToShrinkColorbar
protected float updateFromValueToShrinkColorbar(IPainter painter, int width, AWTColorbarLegend awtLegend)
-
isFixHiDPI
public boolean isFixHiDPI()
-
setFixHiDPI
public void setFixHiDPI(boolean fixHiDPI)
-
-