|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.TimeUnit
public class TimeUnit
A TimeUnit is a measurement of time with two attributes, the interval and the unit of measurement. For example, 10 seconds, 5 hz, and so forth.
Field Summary | |
---|---|
private double |
dInterval
|
private java.lang.String |
strUnitName
|
Constructor Summary | |
---|---|
TimeUnit(java.lang.String unit,
double value)
Initialize this unit time |
Method Summary | |
---|---|
JTreeNode |
buildTree(JTreeNode root,
LearnableActionPattern lap,
boolean detailed,
boolean expanded)
Build the tree structure of the file |
java.lang.String |
getUnitName()
Get the name of the unit involved |
double |
getUnitValue()
Get our interval value for this unit time |
void |
onSelect(JAbode mainGui,
JEditorWindow subGui,
JDiagram diagram)
We've been selected on the diagram for editing, so populate the properties grid with editors allowing the user to change our interval and unit. |
void |
setUnitName(java.lang.String unitName)
Set the name of our unit |
void |
setUnitValue(double value)
Set the value of this unit of time |
void |
showContextMenu(JTreeNode showOn,
LearnableActionPattern lap,
JEditorWindow window,
JDiagram diagram)
Produce and show a context menu for this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double dInterval
private java.lang.String strUnitName
Constructor Detail |
---|
public TimeUnit(java.lang.String unit, double value)
Method Detail |
---|
public void onSelect(JAbode mainGui, JEditorWindow subGui, JDiagram diagram)
onSelect
in interface IEditableElement
mainGui
- The reference to the outer GUIsubGui
- The internal frame we're referring todiagram
- The diagram we're being select on.public java.lang.String getUnitName()
public double getUnitValue()
public void setUnitName(java.lang.String unitName)
public void setUnitValue(double value)
public void showContextMenu(JTreeNode showOn, LearnableActionPattern lap, JEditorWindow window, JDiagram diagram)
showContextMenu
in interface IEditableElement
showOn
- The tree node invoking uslap
- The file we're a part ofwindow
- The window we're being dispalyed indiagram
- The diagram in the window we'return being shown onpublic JTreeNode buildTree(JTreeNode root, LearnableActionPattern lap, boolean detailed, boolean expanded)
IEditableElement
buildTree
in interface IEditableElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |