Class NativeViewAndColorbarsLayout
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.view.layout.ViewAndColorbarsLayout
-
- org.jzy3d.plot3d.rendering.view.layout.NativeViewAndColorbarsLayout
-
- All Implemented Interfaces:
IViewportLayout
public class NativeViewAndColorbarsLayout extends ViewAndColorbarsLayout
This implementation allows to shrink colorbar, assuming it is an AWT implementation from which we can read image width
-
-
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 NativeViewAndColorbarsLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
renderLegends(IPainter painter, float from, float to, List<ILegend> legends, ICanvas canvas)
Renders the legend within the screen slice given by the left and right parameters.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, render, renderLegends, setColorbarRightMargin, setShrinkColorbar, update
-
-
-
-
Method Detail
-
renderLegends
protected void renderLegends(IPainter painter, float from, float to, List<ILegend> legends, ICanvas canvas)
Description copied from class:ViewAndColorbarsLayout
Renders the legend within the screen slice given by the left and right parameters.- Overrides:
renderLegends
in classViewAndColorbarsLayout
-
updateFromValueToShrinkColorbar
protected float updateFromValueToShrinkColorbar(IPainter painter, int width, AWTColorbarLegend awtLegend)
-
-