|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
edu.umd.cs.piccolo.PCanvas
org.simbrain.gauge.graphics.GaugePanel
public class GaugePanel
GaugePanel is the main panel in which data are displayed. Menu and toolbar handling code are also provided here.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
Color |
backgroundColor
Color of background. |
Color |
defaultColor
Color of all other points. |
Color |
hotColor
Color of hot point. |
protected JButton |
iterateBtn
Iterate once. |
ArrayList |
nodeList
List of nodes. |
| Fields inherited from class edu.umd.cs.piccolo.PCanvas |
|---|
CURRENT_ZCANVAS, INTERATING_CHANGED_NOTIFICATION |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GaugePanel()
Instance of gauge panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
centerCamera()
Scale the data so that it fits on the screen Assumes 2-d data. |
void |
colorPoints()
Color every seventh point a different color; allows tracking of order. |
int |
getBackgroundColor()
|
JPanel |
getBottomPanel()
|
File |
getCurrentFile()
|
int |
getDefaultColor()
|
Gauge |
getGauge()
|
int |
getHotColor()
|
int |
getHotPoint()
|
int |
getNumIterationsBetweenUpdate()
|
JCheckBox |
getOnOffBox()
|
double |
getPointSize()
|
Settings |
getSettings()
|
JToolBar |
getTheToolBar()
|
void |
handlePreferenceDialogs()
Open preference dialog based on which projector is currently selected. |
void |
init()
Gauge initilization. |
void |
initCastor()
Initializes the castor. |
boolean |
isAutoZoom()
You can turn autozoom off if you want to zoom in on data. |
boolean |
isColorMode()
|
boolean |
isShowError()
|
boolean |
isShowStatus()
|
boolean |
isUpdateCompleted()
Used by the thread to be sure an iteration is complete before it iterates again. |
void |
iterate()
Forward command to gauge; iterate the gauge one time. |
void |
repaint()
Repaints the gauge to reflect changed data or new settings. |
void |
resetGauge()
Reset the gauge, removing all PNodes and references to datapoints. |
void |
setAutoZoom(boolean b)
|
void |
setBackgroundColor(int rgb)
|
void |
setColor(Color c)
Color all datapoints a specified color. |
void |
setCurrentFile(File currentFile)
|
void |
setDefaultColor(int rgb)
|
void |
setGauge(Gauge gauge)
|
void |
setHotColor(int rgb)
|
void |
setHotPoint(int i)
Set a unique datapoint to "hot" mode, which just means it is shown in a different color, to indicate (e.g.) that it is the current point in a set of points. |
void |
setNumIterationsBetweenUpdate(int i)
|
void |
setPointSize(double d)
|
void |
setProjector(String projector)
|
void |
setShowError(boolean b)
|
void |
setShowStatus(boolean b)
|
void |
setUpdateCompleted(boolean b)
Used by the thread to be sure an iteration is complete before it iterates again. |
void |
showGeneralDialog()
Show genneral prefs dialog. |
void |
showGraphicsDialog()
Show graphics dialog. |
void |
startThread()
Starts the current thread. |
void |
stopThread()
Stops the current thread. |
void |
update()
Update node list, labels, etc. |
void |
updateColors(boolean b)
|
void |
updateProjectionMenu()
Manually set the currently selected projection algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JButton iterateBtn
public ArrayList nodeList
public Color hotColor
public Color defaultColor
public Color backgroundColor
| Constructor Detail |
|---|
public GaugePanel()
| Method Detail |
|---|
public void initCastor()
public void init()
public void handlePreferenceDialogs()
public void showGraphicsDialog()
public void showGeneralDialog()
public void update()
public void repaint()
repaint in class Componentpublic void centerCamera()
public void resetGauge()
public void updateProjectionMenu()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - Action performed.public void stopThread()
public void startThread()
public void iterate()
public void colorPoints()
public void setColor(Color c)
c - new colorpublic void setHotPoint(int i)
i - index of datapoint to designate as "hot"public int getHotPoint()
public Gauge getGauge()
public void setGauge(Gauge gauge)
gauge - Current gauge.public boolean isUpdateCompleted()
public void setUpdateCompleted(boolean b)
b - true if update is completed, false otherwisepublic boolean isColorMode()
public void updateColors(boolean b)
b - true if the gauge is in color mode (colors the datapoints), false otehrwisepublic int getNumIterationsBetweenUpdate()
public void setNumIterationsBetweenUpdate(int i)
i - number of iterations the projection algorithm takes between graphics updatespublic void setProjector(String projector)
projector - Used to programatically set the projector.public boolean isShowError()
public boolean isShowStatus()
public void setShowStatus(boolean b)
b - true if status information (dimensions and number of datapoints) should be shown, false otherwisepublic void setShowError(boolean b)
b - true if error information should be shown, false otherwisepublic double getPointSize()
public void setPointSize(double d)
d - the minimum size which all datapoints must bepublic boolean isAutoZoom()
public void setAutoZoom(boolean b)
b - true if autozoom (which automatically scales the dataset to the screen) is on, false otherwise.public JCheckBox getOnOffBox()
public File getCurrentFile()
public void setCurrentFile(File currentFile)
currentFile - The currentFile to set.public int getDefaultColor()
public void setDefaultColor(int rgb)
rgb - The defaultColor to set.public int getHotColor()
public void setHotColor(int rgb)
rgb - The hotColor to set.public void setBackgroundColor(int rgb)
rgb - The background color to set.public int getBackgroundColor()
public Settings getSettings()
public JToolBar getTheToolBar()
public JPanel getBottomPanel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||