|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLayeredPane
yops.BasicGraphicsPanel
yops.GraphicsPanel
public class GraphicsPanel
A GraphicsPanel is a container in which graphics components can be displayed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLayeredPane |
|---|
JLayeredPane.AccessibleJLayeredPane |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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.JLayeredPane |
|---|
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
|---|---|
void |
addListener(Object listener)
Makes the given object listen for mouse events, as described for YOPS tools. |
void |
mouseClicked(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
mouseDragged(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
mouseEntered(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
mouseExited(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
mouseMoved(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
mousePressed(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
mouseReleased(MouseEvent me)
This method is called by the Java event loop when mouse events occur. |
void |
print(String title)
Initiates a print job, scaling this graphics panel to fit, centered, on a single page. |
void |
removeListener(Object listener)
Removes the given listener so that it no longer is notified about mouse events. |
| Methods inherited from class yops.BasicGraphicsPanel |
|---|
add, clear, getMainImage, mouseDragged, mouseMoved, mousePressed, mouseReleased, moveToBack, moveToFront, remove |
| Methods inherited from class javax.swing.JLayeredPane |
|---|
addImpl, getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, paint, paramString, putLayer, remove, removeAll, setLayer, setLayer, setPosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void print(String title)
title - the title of the image to appear on the pagepublic void mouseClicked(MouseEvent me)
mouseClicked in interface MouseListenermouseClicked in class BasicGraphicsPanelpublic void mousePressed(MouseEvent me)
mousePressed in interface MouseListenermousePressed in class BasicGraphicsPanelpublic void mouseReleased(MouseEvent me)
mouseReleased in interface MouseListenermouseReleased in class BasicGraphicsPanelpublic void mouseEntered(MouseEvent me)
mouseEntered in interface MouseListenermouseEntered in class BasicGraphicsPanelpublic void mouseExited(MouseEvent me)
mouseExited in interface MouseListenermouseExited in class BasicGraphicsPanelpublic void mouseDragged(MouseEvent me)
mouseDragged in interface MouseMotionListenermouseDragged in class BasicGraphicsPanelpublic void mouseMoved(MouseEvent me)
mouseMoved in interface MouseMotionListenermouseMoved in class BasicGraphicsPanelpublic void addListener(Object listener)
listener - the listener to be addedpublic void removeListener(Object listener)
listener - the listener to be added
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||