|
Graphics2D Actor API | |||||||||
| 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
g2d.swing.IOPComponent
public class IOPComponent
Main component to be displayed in an IOPView.
IOPView,
Serialized Form| Nested Class Summary |
|---|
| 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 | |
|---|---|
static boolean |
DEBUG
|
| 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 |
| Constructor Summary | |
|---|---|
IOPComponent()
|
|
| Method Summary | |
|---|---|
void |
add(Glyphish glyphs)
|
void |
add(Glyphish glyphs,
AffineTransform position)
|
void |
addZoomListener(ZoomListener zl)
Add given zoom listener to list of objects to be notified upon zoom change. |
void |
centerOn(Glyphish g)
Deprecated. use centerOn(java.awt.geom.Rectangle2D) instead |
AffineTransform |
centerOn(Rectangle2D rect)
Center component on given rectangle. |
void |
checkSize()
|
double |
getZoomScale()
Obtain current zoom scale in effect. |
boolean |
isGlyphishVisible(Glyphish g)
Test whether given glyphish thing is currently visible. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
mouseWheelMoved(MouseWheelEvent e)
|
void |
paintComponent(Graphics g)
|
void |
remove(Glyphish glyphs)
|
void |
removeZoomListener(ZoomListener zl)
Remove given zoom listener from list of objects to be notified upon zoom change. |
void |
setGraph(IOPGraph graph)
|
void |
setKeyAction(int type,
Closure fun)
|
void |
setMouseAction(int type,
Closure fun)
|
void |
zoom(double factor)
Apply given factor to current zoom. |
Rectangle2D |
zoomBound(Rectangle2D bound)
|
Point2D |
zoomPoint(MouseEvent e)
|
void |
zoomToFit(double width,
double height)
|
void |
zoomToFit(double width,
double height,
Rectangle2D rect)
|
void |
zoomToOriginal()
Zoom to original size of glyph list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEBUG
| Constructor Detail |
|---|
public IOPComponent()
| Method Detail |
|---|
public void add(Glyphish glyphs)
public void remove(Glyphish glyphs)
public void setGraph(IOPGraph graph)
public void add(Glyphish glyphs,
AffineTransform position)
public boolean isGlyphishVisible(Glyphish g)
false if glyphish is not entirely
inside the currently visible rectangle. If given glyph
is null returns false.
g - Glyphish thing to test visibility of
public void setMouseAction(int type,
Closure fun)
public void paintComponent(Graphics g)
paintComponent in class JComponentpublic void checkSize()
public void addZoomListener(ZoomListener zl)
zl - ZoomListener to be notified upon zoom changepublic void removeZoomListener(ZoomListener zl)
zl - ZoomListener to be removedpublic double getZoomScale()
public void zoom(double factor)
factor - Zoom factor to applypublic void centerOn(Glyphish g)
centerOn(java.awt.geom.Rectangle2D) instead
public AffineTransform centerOn(Rectangle2D rect)
rect - Rectangle to center on
public Rectangle2D zoomBound(Rectangle2D bound)
public void zoomToFit(double width,
double height,
Rectangle2D rect)
public void zoomToFit(double width,
double height)
public void zoomToOriginal()
public Point2D zoomPoint(MouseEvent e)
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved in interface MouseWheelListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListener
public void setKeyAction(int type,
Closure fun)
public void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListener
|
Graphics2D Actor API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||