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

Variable Index

 o angle
 o applyButton
 o brush
 o brushCenter
 o brushMax
 o brushMaxXPoints
 o brushMaxYPoints
 o brushMin
 o brushMinXPoints
 o brushMinYPoints
 o cancelButton
 o centerOffset
 o centerX
 o centerY
 o colorManager
 o data
 o dimensions
 o endX
 o endY
 o jvi
 o okButton
 o parentFrame
 o rayLength
 o scale
 o startX
 o startY
 o toolPanel
 o ub

Constructor Index

 o GlyphBrushTool(JFrame, Data, Brush, ColorManager, JVizInterface)
Constructor

Method Index

 o setNewBrushValue(int, int)
This method handles displaying the brush in the glyph shaped format as well as displaying the axis labels.

Variables

 o data
 protected Data data
 o brush
 protected Brush brush
 o colorManager
 protected ColorManager colorManager
 o jvi
 protected JVizInterface jvi
 o parentFrame
 protected JFrame parentFrame
 o toolPanel
 protected JPanel toolPanel
 o applyButton
 protected JButton applyButton
 o okButton
 protected JButton okButton
 o cancelButton
 protected JButton cancelButton
 o ub
 protected UserBrush ub
 o centerOffset
 protected int centerOffset
 o brushMax
 protected double brushMax[]
 o brushMin
 protected double brushMin[]
 o brushCenter
 protected double brushCenter[]
 o scale
 protected double scale[]
 o startX
 protected int startX[]
 o startY
 protected int startY[]
 o dimensions
 protected int dimensions
 o endX
 protected int endX[]
 o endY
 protected int endY[]
 o brushMaxXPoints
 protected int brushMaxXPoints[]
 o brushMaxYPoints
 protected int brushMaxYPoints[]
 o brushMinXPoints
 protected int brushMinXPoints[]
 o brushMinYPoints
 protected int brushMinYPoints[]
 o centerX
 protected int centerX
 o centerY
 protected int centerY
 o angle
 protected double angle
 o rayLength
 protected int rayLength

Constructors

 o 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

Methods

 o 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