|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
edu.psu.geovista.app.parvis.gui.ParallelDisplayUI
edu.psu.geovista.app.parvis.gui.BasicParallelDisplayUI
The UI Delegate, responsible for rendering the ParallelDisplay component.
| Constructor Summary | |
BasicParallelDisplayUI()
Default Constructor. |
|
| Method Summary | |
void |
createBrushImage(ParallelDisplay comp)
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Swing method. |
int[] |
getAllRecordsByCoordinates(java.awt.geom.Rectangle2D hitBox,
ParallelDisplay comp)
Returns the record that goes through the screen coordinates x,y. |
int |
getRecordByCoordinates(int x,
int y,
ParallelDisplay comp)
Returns the record that goes through the screen coordinates x,y. |
void |
installUI(javax.swing.JComponent c)
Installs this instance as UI delegate for the given component. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits the component. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down). |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Renders the component on the screen. |
void |
renderBrush()
|
void |
setColors(java.awt.Color[] colors)
|
void |
setConditioning(int[] conditioning)
|
void |
setHoverRecord(int record,
ParallelDisplay comp)
Added by Frank Hardisty 19 July 2002 This method is called to create a hover record from outside the component |
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls this instance from its component. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicParallelDisplayUI()
| Method Detail |
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
c - The component, a ParallelDisplay in our case.public void uninstallUI(javax.swing.JComponent c)
c - The component, a ParallelDisplay in our case.
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
g - The graphics object to draw on.c - The Component, our ParallelDisplay.public void renderBrush()
renderBrush in class ParallelDisplayUIpublic void setColors(java.awt.Color[] colors)
public void setConditioning(int[] conditioning)
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenere - The mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - The mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - The mouse event.public void createBrushImage(ParallelDisplay comp)
createBrushImage in class ParallelDisplayUIpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - The mouse event.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenere - The mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListener
public void setHoverRecord(int record,
ParallelDisplay comp)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - The mouse event.
public int getRecordByCoordinates(int x,
int y,
ParallelDisplay comp)
x - The x screen coordinate.y - The y screen coordinate.comp - The "parent" component.
public int[] getAllRecordsByCoordinates(java.awt.geom.Rectangle2D hitBox,
ParallelDisplay comp)
comp - The "parent" component.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||