de.jaret.examples.timebars.hierarchy.swt
Class SwtHierachy

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.window.ApplicationWindow
          extended by de.jaret.examples.timebars.hierarchy.swt.SwtHierachy
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableContext, org.eclipse.jface.window.IShellProvider

public class SwtHierachy
extends org.eclipse.jface.window.ApplicationWindow

Simple hierarchical view, SWT version. Scaling, manipulating the intervals, tree structure. The sum interval is rendered by a specialized sum renderer. The arrows beetwenn the intervals are a demonstration of the relation renderer that in fact is a global assistance renderer. Context menus on scale and hierarchy. Hierarchy using label provider including icons.

The example also demonstrates the usage of a variable xaxis definition. To see that version set _variableXAxis to true.

Version:
$Id: SwtHierachy.java 1083 2011-07-01 20:29:16Z kliem $
Author:
Peter Kliem

Nested Class Summary
 class SwtHierachy.ClearRegionAction
          Action that clears the region rect.
 class SwtHierachy.DummyAction
          Simpled dummy action.
 class SwtHierachy.HCtxHandler
           
 class SwtHierachy.LabelProvider
           
 class SwtHierachy.ZoomAction
          Action that zooms the timeline to the selection if present.
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.window.ApplicationWindow
seperator1
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
SwtHierachy()
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell shell)
           
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.eclipse.jface.window.ApplicationWindow
addCoolBar, addMenuBar, addStatusLine, addToolBar, canHandleShellCloseEvent, close, coolBarChildrenExist, createCoolBarControl, createCoolBarManager, createCoolBarManager2, createMenuManager, createStatusLine, createStatusLineManager, createToolBarControl, createToolBarManager, createToolBarManager2, createTrimWidgets, getCoolBarControl, getCoolBarManager, getCoolBarManager2, getFont, getLayout, getMenuBarManager, getSeperator1, getStatusLineManager, getSymbolicFontName, getToolBarControl, getToolBarManager, getToolBarManager2, run, setStatus, showTopSeperator, toolBarChildrenExist
 
Methods inherited from class org.eclipse.jface.window.Window
constrainShellSize, create, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, initializeBounds, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwtHierachy

public SwtHierachy()
Method Detail

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
Overrides:
createContents in class org.eclipse.jface.window.Window

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell shell)
Overrides:
configureShell in class org.eclipse.jface.window.ApplicationWindow

main

public static void main(java.lang.String[] args)


Copyright © 2012. All Rights Reserved.