public class ZoomableChartScrollWheel
extends ZoomableChart
Modifier and Type | Class and Description |
---|---|
class |
ZoomableChartScrollWheel.MyMouseWheelListener |
Constructor and Description |
---|
ZoomableChartScrollWheel(ChartData chartData)
Constructor, taking in a chartData so that we can set up the chart
|
Modifier and Type | Method and Description |
---|---|
void |
addAxisYRight(<any> axisY) |
void |
addFrameFocusTimer(javax.swing.JFrame frame)
Saves the time this window was last in focus.
|
long |
getLastFocusTime()
Returns the last time this frame was focused.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Pan the chart when the mouse is dragged.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Handle mouse press events
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Handle mouse release events, including double-click and right click.
|
static void |
newChartFrame(ChartData chartData,
ITrace2D trace)
Creates a new frame for this trace.
|
java.awt.Color |
popColor()
Gets the next color for a new trace.
|
void |
pushColor()
Adds the newest trace color back onto the stack.
|
boolean |
removeAxisYRight(<any> axisY) |
void |
toFront()
Move this frame to the front to get the user's attention
|
void |
updateRightClickMenu()
Updates the right click menu to allow for moving
traces around.
|
public ZoomableChartScrollWheel(ChartData chartData)
chartData
- global data about all charts displayed in lcm-spypublic static void newChartFrame(ChartData chartData, ITrace2D trace)
chartData
- global chart data for all of lcm-spytrace
- data that this chart should displaypublic java.awt.Color popColor()
public void pushColor()
public void updateRightClickMenu()
public void addAxisYRight(<any> axisY)
public boolean removeAxisYRight(<any> axisY)
public void toFront()
public void addFrameFocusTimer(javax.swing.JFrame frame)
frame
- frame to add the focus timer topublic long getLastFocusTime()
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)