All Packages Class Hierarchy This Package Previous Next Index
Class edu.wpi.mqp.graphics.jviz.GlyphBrushTool
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----com.sun.java.swing.JDialog
|
+----edu.wpi.mqp.graphics.jviz.GlyphBrushTool
- public class GlyphBrushTool
- extends JDialog
This class is in charge of displaying and controlling the Glyph Brush
Tool. This tool is used as a graphical display of the shape of the
brush on the glyphs, as a key to see the labels for each axis, and as
a way to change the brush to fit a certain shape. This class extends
JDialog, since it is displayed in a dialog box.
- Version:
- 1.0
- Author:
- Jason Sykes and Matthew C. Jucius
-
angle
-
-
applyButton
-
-
brush
-
-
brushCenter
-
-
brushMax
-
-
brushMaxXPoints
-
-
brushMaxYPoints
-
-
brushMin
-
-
brushMinXPoints
-
-
brushMinYPoints
-
-
cancelButton
-
-
centerOffset
-
-
centerX
-
-
centerY
-
-
colorManager
-
-
data
-
-
dimensions
-
-
endX
-
-
endY
-
-
jvi
-
-
okButton
-
-
parentFrame
-
-
rayLength
-
-
scale
-
-
startX
-
-
startY
-
-
toolPanel
-
-
ub
-
-
GlyphBrushTool(JFrame, Data, Brush, ColorManager, JVizInterface)
-
Constructor
-
setNewBrushValue(int, int)
-
This method handles displaying the brush in the glyph shaped format
as well as displaying the axis labels.
data
protected Data data
brush
protected Brush brush
colorManager
protected ColorManager colorManager
jvi
protected JVizInterface jvi
parentFrame
protected JFrame parentFrame
toolPanel
protected JPanel toolPanel
applyButton
protected JButton applyButton
okButton
protected JButton okButton
cancelButton
protected JButton cancelButton
ub
protected UserBrush ub
centerOffset
protected int centerOffset
brushMax
protected double brushMax[]
brushMin
protected double brushMin[]
brushCenter
protected double brushCenter[]
scale
protected double scale[]
startX
protected int startX[]
startY
protected int startY[]
dimensions
protected int dimensions
endX
protected int endX[]
endY
protected int endY[]
brushMaxXPoints
protected int brushMaxXPoints[]
brushMaxYPoints
protected int brushMaxYPoints[]
brushMinXPoints
protected int brushMinXPoints[]
brushMinYPoints
protected int brushMinYPoints[]
centerX
protected int centerX
centerY
protected int centerY
angle
protected double angle
rayLength
protected int rayLength
GlyphBrushTool
public GlyphBrushTool(JFrame newParentFrame,
Data newData,
Brush newBrush,
ColorManager newColorManager,
JVizInterface newJVI)
- Constructor
- Parameters:
- newParentFrame - parent frame for tool display
- newData - data to graph
- newBrush - brush to use with the data
- newColorManager - object to request colors from when graphing
- newJVI - pass the JViz interface to the tool display
setNewBrushValue
public boolean setNewBrushValue(int x,
int y)
- This method handles displaying the brush in the glyph shaped format
as well as displaying the axis labels. It also processes mouse events
and calculates which axis of the brush was clicked on (if
any) and it changes the shape of the brush display and sets
the brush accordingly. Changes are applied and the tool left
open if the user chooses to click the "apply" button. Changes
are made and the tool closed with the "okay" button. Changes
are ignored and the tool closed with the "cancel" button.
- Parameters:
- x - X coordinate value of the mouse click
- y - Y coordinate value of the mouse click
- Returns:
-
true
if set successfully.
All Packages Class Hierarchy This Package Previous Next Index