com.metsci.glimpse.examples.basic
Class HeatMapExample

java.lang.Object
  extended by 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

Constructor Summary
HeatMapExample()
           
 
Method Summary
static double[][] generateData(int sizeX, int sizeY)
           
 CursorTextZPainter getCursorPainter()
           
 ColorAxisPlot2D getLayout()
           
 HeatMapPainter getPainter()
           
static void main(java.lang.String[] args)
           
static ColorTexture1D newColorTexture()
           
static HeatMapPainter newHeatMapPainter(Axis1D axis)
           
static HeatMapPainter newHeatMapPainter(ColorTexture1D colorScale, Axis1D axis)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeatMapExample

public HeatMapExample()
Method Detail

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.