|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
view.LightView
public class LightView
This is the primary class for the view part of this project. It communicates to the model through the controller, and controls all portions of the GUI.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
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 |
---|
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
LightView(ILightViewConnector _connector)
This constructor sets up the GUI. |
Method Summary | |
---|---|
void |
deviceDisconnected()
This method will notify the view if the device has disconnected without the view specifically telling it to disconnect. |
void |
makeVisible()
This method makes the view visible. |
void |
raiseError(String error,
String desc)
This method will notify the user of the given error. |
void |
raiseError(Throwable error,
String desc)
This method will notify the user of the given error. |
void |
selectCueWithoutTransition(String cue)
This method will select the given cue without triggering a transition. |
void |
setChannelSource(Channel channel,
float[] source)
This method will set the source for the given channel. |
void |
setChannelSource(short address,
float[] source)
This method will set the source for the given address. |
void |
setChannelSources(Channel[] channels,
float[][] sources)
This method will set the source for a series of channels. |
void |
setChannelSources(short[] addresses,
float[][] sources)
This method will set the source for a series of a channels. |
void |
toggleDataEntry(boolean enabled)
This method will toggle the data entry fields for the program. |
void |
updateCueList()
This method will update the cue list. |
void |
updateFadeDownProgress(int percentDone)
This method will update the fade down progress meter. |
void |
updateFadeUpProgress(int percentDone)
This method will update the fade up progress meter. |
void |
updateValue(Channel channel)
This method will update the value of the given channel without changing its source. |
void |
updateValue(Channel channel,
float[] source)
This method will update the value and source of the given channel. |
void |
updateValues(Channel[] channels)
This method will update the given channels without changing the current channel source. |
void |
updateValues(Channel[] channels,
float[][] sources)
This method will update the given channels with the given sources. |
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Constructor Detail |
---|
public LightView(ILightViewConnector _connector)
_connector
- The connector.Method Detail |
---|
public void makeVisible()
public void updateValues(Channel[] channels, float[][] sources)
channels
- The address, value pairs to update.sources
- The sources of the updated values.public void updateValues(Channel[] channels)
channels
- The address, value pairs to update.public void updateValue(Channel channel, float[] source)
channel
- The address, value pair to update.source
- The source of the new value.public void updateValue(Channel channel)
channel
- The address, value pair to update.public void updateFadeUpProgress(int percentDone)
percentDone
- The percentage done between 0 and 100.public void updateFadeDownProgress(int percentDone)
percentDone
- The percentage done on the fade between 0 and 100.public void updateCueList()
TODO: This method should probably take in the new cue list values.
public void selectCueWithoutTransition(String cue)
cue
- The summary of the cue to select.public void toggleDataEntry(boolean enabled)
enabled
- When true, this will enable data input, and when false, disallow input.public void setChannelSource(short address, float[] source)
address
- The address of the channel to change the source for.source
- The new source for the channel.public void setChannelSource(Channel channel, float[] source)
channel
- The channel to change the source for. Only the address will be used, the value will be
ignored.source
- The new source for the channel.public void setChannelSources(short[] addresses, float[][] sources)
addresses
- The array of addresses to set the source for.sources
- The new sources for the given addresses.public void setChannelSources(Channel[] channels, float[][] sources)
channels
- The channels to change the source for. Only the address will be used, the value will
be ignored.sources
- The new sources for the given channels.public void raiseError(String error, String desc)
error
- The error, usually including the stack trace.desc
- The description of the error: why this might have occured, what to do about it,
etc. This will be displayed above the error message to the user.public void raiseError(Throwable error, String desc)
error
- The throwable error to use the stack trace from for the error message.desc
- The description of the error: why this might have occured, what to do about it,
etc. This will be displayed above the error message to the user.public void deviceDisconnected()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |