public class Device extends Object implements Interface
Interface.Setup| Modifier and Type | Field and Description |
|---|---|
protected Editor[] |
edit |
protected boolean |
editable |
protected Frame |
frame |
protected NODE<?> |
head |
protected NODE<?>[] |
node |
protected JComponent |
pane |
| Modifier | Constructor and Description |
|---|---|
|
Device(Frame frame,
NODE<?> head,
boolean editable) |
protected |
Device(Frame frame,
NODE<?> head,
boolean editable,
int nargs) |
|
Device(NODE<?> head) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEnum(int idx,
String path,
String tooltip,
EnumEditor.MODE mode,
String... items) |
protected void |
addExpr(int idx,
String path,
String tooltip,
boolean default_to_string,
boolean isField) |
void |
dataChanged(int... nids) |
void |
doDeviceMethod(int nid,
String method) |
String |
execute(String expr) |
String |
getDataExpr(int nid) |
int |
getDefault() |
double |
getDouble(String expr) |
static Device |
getEditor(Frame frame,
Nid nid,
boolean editable) |
static Device |
getEditor(Frame frame,
Nid nid,
boolean editable,
String model) |
float |
getFloat(String expr) |
float[] |
getFloatArray(String expr) |
String |
getFullPath(int nid) |
int |
getInt(String expr) |
int[] |
getIntArray(String expr) |
String |
getName() |
int |
getNode(String path) |
String |
getNodeName(int nid) |
int |
getNumConglomerateNids(int nid) |
JComponent |
getPane() |
int |
getShot() |
String |
getString(String expr) |
String[] |
getStringArray(String expr) |
String |
getUsage(int nid) |
boolean |
isOn(int nid) |
static void |
main(String... args) |
void |
putDataExpr(int nid,
String expr) |
void |
setDefault(int nid) |
void |
setOn(int nid,
boolean on) |
static void |
showDeviceSetup(String experiment,
int shot,
String path) |
JDialog |
showDialog() |
static JDialog |
showDialog(Frame frame,
Nid nid,
boolean editable) |
protected final NODE<?> head
protected final Editor[] edit
protected final NODE<?>[] node
protected final boolean editable
protected JComponent pane
protected final Frame frame
public Device(NODE<?> head)
public static Device getEditor(Frame frame, Nid nid, boolean editable) throws Exception
Exceptionpublic static Device getEditor(Frame frame, Nid nid, boolean editable, String model) throws Exception
Exceptionpublic static void showDeviceSetup(String experiment, int shot, String path) throws Exception
Exceptionpublic static JDialog showDialog(Frame frame, Nid nid, boolean editable) throws Exception
Exceptionprotected final void addEnum(int idx,
String path,
String tooltip,
EnumEditor.MODE mode,
String... items)
protected final void addExpr(int idx,
String path,
String tooltip,
boolean default_to_string,
boolean isField)
public void dataChanged(int... nids)
dataChanged in interface Interfacepublic final void doDeviceMethod(int nid,
String method)
throws Exception
doDeviceMethod in interface InterfaceExceptionpublic final String getDataExpr(int nid) throws Exception
getDataExpr in interface InterfaceExceptionpublic final int getDefault()
throws Exception
getDefault in interface InterfaceExceptionpublic float[] getFloatArray(String expr) throws Exception
getFloatArray in interface InterfaceExceptionpublic final String getFullPath(int nid) throws Exception
getFullPath in interface InterfaceExceptionpublic int[] getIntArray(String expr) throws Exception
getIntArray in interface InterfaceExceptionpublic String getNodeName(int nid) throws Exception
getNodeName in interface InterfaceExceptionpublic int getNumConglomerateNids(int nid)
throws Exception
getNumConglomerateNids in interface InterfaceExceptionpublic JComponent getPane()
public String[] getStringArray(String expr) throws Exception
getStringArray in interface InterfaceExceptionpublic boolean isOn(int nid)
throws Exception
public void putDataExpr(int nid,
String expr)
throws Exception
putDataExpr in interface InterfaceExceptionpublic final void setDefault(int nid)
throws Exception
setDefault in interface InterfaceExceptionpublic void setOn(int nid,
boolean on)
throws Exception
public final JDialog showDialog()
Copyright © 2023. All rights reserved.