blob: 202c90442f8890a2ae99d6434c5502b6343b99e9 [file] [log] [blame]
/******************************************************************************
* Copyright � 2010-2011 Austin Riddle
* All Rights Reserved.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Austin Riddle - initial API and implementation
*
*****************************************************************************/
package org.eclipse.rap.rwt.visualization.jit;
import java.util.HashMap;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Composite;
public class HyperTree extends JITGraphWidget
{
boolean returnToPrevious;
public HyperTree( final Composite parent, final int style )
{
super( parent, style );
setNodeColor(new RGB(240,0,0));
setEdgeColor(new RGB(8,143,255));
}
public void previousState() {
if (navStack != null) {
if (!navStack.isEmpty()) {
navStack.pop(); //pop current state
}
if (!navStack.isEmpty()) {
Object id = navStack.pop();
HashMap<String,Object> args = new HashMap<String,Object>();
args.put( "id", id );
addCommand("selectNode", args);
}
}
}
}