|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.hisee.core.Gauge
Gauge is the main class of the high dimensional visualizer, which manages both command -line and GUI interfaces, and provides methods for changing and initializing various projection algorithms.
Field Summary | |
protected GaugePanel |
gp
|
static java.lang.String[] |
PROJECTOR_LIST
|
Constructor Summary | |
Gauge(boolean useGraphics)
Constructor |
|
Gauge(int x,
int y,
int w,
int h)
Construct a GUI Gauge with specified frame parameters. |
Method Summary | |
void |
addDatapoint(double[] point)
Add a new point to the dataset, using the currently selected add method. |
java.lang.String |
getDefaultDir()
|
Dataset |
getDownstairs()
Convenience method to get downstairs dataset |
double |
getError()
Returns error, which is only set by some projection functions |
GaugePanel |
getGp()
|
java.lang.String |
getName()
|
Projector |
getProjector()
|
static java.lang.String[] |
getProjectorList()
|
Dataset |
getUpstairs()
Convenience method to get upstairs dataset |
void |
init(int dims)
Initialize gauge to accept data of a specified dimension. |
boolean |
isOn()
If the gauge is on it should actively represent changing states of the network |
boolean |
isUsingGraphics()
|
boolean |
isUsingHotPoint()
|
boolean |
isUsingOnOff()
The onOff button is only used with certain components, where the ability to add new data is important. |
void |
iterate(int num_times)
Iterate the dataset some fixed number of times |
static void |
main(java.lang.String[] args)
Main method |
void |
openHighDDataset(java.io.File file)
|
void |
setBounds(int x,
int y,
int width,
int height)
Forwards parameters to Frame object, to set location of gauge panel |
void |
setCurrentProjector(Projector proj)
|
void |
setCurrentProjector(java.lang.String proj)
|
void |
setDefaultDir(java.lang.String string)
|
void |
setName(java.lang.String string)
|
void |
setOn(boolean b)
Turn the gauge on and off; i.e., allow new data or not. |
void |
setUsingGraphics(boolean b)
|
void |
setUsingHotPoint(boolean b)
Turn off "hot point" capability on or off, which sets the "current" state of some dataset to a specified color, e.g red |
void |
setUsingOnOff(boolean b)
The onOff button is only used with certain components, where the ability to add new data is important. |
void |
updateProjector()
Update the projector; used when loading a dataset or changing projection methods |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GaugePanel gp
public static final java.lang.String[] PROJECTOR_LIST
Constructor Detail |
public Gauge(boolean useGraphics)
useGraphics
- true if graphics should be used, false otherwisepublic Gauge(int x, int y, int w, int h)
x
- x locationy
- y locationw
- widthh
- heightMethod Detail |
public static void main(java.lang.String[] args)
public void updateProjector()
public void init(int dims)
dims
- dimensionality of the high dimensional datasetpublic void openHighDDataset(java.io.File file)
public void addDatapoint(double[] point)
point
- the point to addpublic void setBounds(int x, int y, int width, int height)
public void iterate(int num_times)
num_times
- Number of times to iterate the gaugepublic static java.lang.String[] getProjectorList()
public void setCurrentProjector(java.lang.String proj)
public void setCurrentProjector(Projector proj)
public Projector getProjector()
public Dataset getUpstairs()
public Dataset getDownstairs()
public java.lang.String getName()
public void setName(java.lang.String string)
string
- name of gaugepublic double getError()
public boolean isOn()
public void setOn(boolean b)
b
- public boolean isUsingGraphics()
public void setUsingGraphics(boolean b)
b
- sets whether the Gauge is using graphics or notpublic void setUsingHotPoint(boolean b)
b
- sets whether hot points are being used or notpublic boolean isUsingHotPoint()
public java.lang.String getDefaultDir()
public void setDefaultDir(java.lang.String string)
string
- the default directory where dataset are storedpublic GaugePanel getGp()
public boolean isUsingOnOff()
public void setUsingOnOff(boolean b)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |