A complete 3D game development suite written purely in Java.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
package com.jme3.gde.gui.nodes;
|
|
|
|
|
|
|
|
import jada.ngeditor.model.GUI;
|
|
|
|
import org.openide.nodes.AbstractNode;
|
|
|
|
import org.openide.nodes.Children;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author cris
|
|
|
|
*/
|
|
|
|
public class GUINode extends AbstractNode{
|
|
|
|
private final GUI gui;
|
|
|
|
private static final String basePath="com/jme3/gde/gui/multiview/icons";
|
|
|
|
public GUINode(GUI gui) {
|
|
|
|
super(Children.create(new ScreenChildFactory(gui),false));
|
|
|
|
this.gui = gui;
|
|
|
|
this.setIconBaseWithExtension(basePath+"/"+"game-monitor"+".png");
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the gui
|
|
|
|
*/
|
|
|
|
public GUI getGui() {
|
|
|
|
return gui;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName() {
|
|
|
|
return super.getName()+" "+this.gui; //To change body of generated methods, choose Tools | Templates.
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|