com.metsci.glimpse.examples.layout
Class CustomLayoutExample

java.lang.Object
  extended by com.metsci.glimpse.examples.layout.CustomLayoutExample
All Implemented Interfaces:
GlimpseLayoutProvider

public class CustomLayoutExample
extends java.lang.Object
implements GlimpseLayoutProvider

Many Glimpse applications can simply use the plots in the package. However, when a custom arrangement of axes and plotting areas is required, low level Glimpse axes and painters can be arranged into any configuration.

The following example creates a simple side-by-side plot with two plotting areas each with their own x axis and a common y axis. It demonstrates how to use the OpenGL MIG layout, how to create axes and hook them up to mouse and resize events to enable user interaction, and how to combine everything together into a custom Glimpse plot.

Author:
ulman
See Also:
SimpleLayoutExample

Constructor Summary
CustomLayoutExample()
           
 
Method Summary
 GlimpseLayout getLayout()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomLayoutExample

public CustomLayoutExample()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getLayout

public GlimpseLayout getLayout()
Specified by:
getLayout in interface GlimpseLayoutProvider


Copyright © 2012 Metron, Inc.. All Rights Reserved.