com.metsci.glimpse.examples.basic
Class HeatMapExample
java.lang.Object
com.metsci.glimpse.examples.basic.HeatMapExample
- All Implemented Interfaces:
- GlimpseLayoutProvider
- Direct Known Subclasses:
- SwtHeatMapExample
public class HeatMapExample
- extends java.lang.Object
- implements GlimpseLayoutProvider
A square heat map plot with adjustable color scale. Uses GLSL shaders
and textures to provide dynamic adjustment of mapping from data value
to color.
- Author:
- ulman
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeatMapExample
public HeatMapExample()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
getLayout
public ColorAxisPlot2D getLayout()
- Specified by:
getLayout
in interface GlimpseLayoutProvider
getCursorPainter
public CursorTextZPainter getCursorPainter()
getPainter
public HeatMapPainter getPainter()
generateData
public static double[][] generateData(int sizeX,
int sizeY)
newColorTexture
public static ColorTexture1D newColorTexture()
newHeatMapPainter
public static HeatMapPainter newHeatMapPainter(Axis1D axis)
newHeatMapPainter
public static HeatMapPainter newHeatMapPainter(ColorTexture1D colorScale,
Axis1D axis)
Copyright © 2012 Metron, Inc.. All Rights Reserved.