|
||||||||||
| 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
edu.umd.cs.piccolo.PCanvas
com.hp.hpl.guess.piccolo.GFrame
The frame for the Piccolo interface. This provides the high level interface window, canvas, and camera. It is currently implemented as a singleton
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Field Summary | |
static int |
BROWSE_MODE
|
static int |
DRAW_CREATE_MODE
|
static int |
DRAW_EDIT_MODE
|
static int |
EDGE_EDIT_MODE
|
int |
fileCounter
|
static int |
HULL_EDIT_MODE
|
static int |
NODE_EDIT_MODE
|
static int |
ZOOM_SIZE
|
| Fields inherited from class edu.umd.cs.piccolo.PCanvas |
CURRENT_ZCANVAS, INTERATING_CHANGED_NOTIFICATION |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 | |
GFrame()
|
|
| Method Summary | |
void |
center()
|
void |
center(double minx,
double miny,
double maxx,
double maxy)
|
void |
center(double minx,
double miny,
double maxx,
double maxy,
long t)
|
void |
center(Object o)
|
void |
center(Object o,
long t)
|
void |
center(Rectangle2D r2,
long t)
|
void |
centerFast()
|
void |
centerOn(GuessPNode gpn)
|
void |
centerOn(GuessPNode n1,
GuessPNode n2)
|
void |
exportCGM(String filename)
|
void |
exportEMF(String filename)
|
void |
exportEPS(String filename)
|
void |
exportGIF(String filename)
|
void |
exportJAVA(String filename)
|
void |
exportJPG(String filename)
|
void |
exportPDF(String filename)
|
void |
exportPNG(String filename)
|
void |
exportPS(String filename)
|
void |
exportSVG(String filename)
|
void |
exportSWF(String filename)
|
void |
flushBuffer()
flushes the movie buffer. |
Color |
getDisplayBackground()
gets the display background color |
PLayer |
getEdges()
|
BufferedImage |
getFullImage()
returns a buffered image for the full image scaled to 1 |
BufferedImage |
getFullImage(double scale)
|
BufferedImage |
getFullImage(double maxWidth,
double maxHeight)
returns a buffered image scaled to fit some coordinates |
BufferedImage |
getFullImage(Rectangle2D fis)
|
BufferedImage |
getFullImage(Rectangle2D trans,
double scale)
|
BufferedImage |
getFullImage(Rectangle2D fis,
double maxWidth,
double maxHeight)
|
Dimension |
getFullImageDimensions()
|
Dimension |
getFullImageDimensions(double scale)
|
Rectangle2D |
getFullImageSize()
|
PCamera |
getGCamera()
returns the camera viewing the canvas in the frame |
PLayer |
getHulls()
|
Point2D |
getLastClickedPosition()
|
int |
getMode()
|
PLayer |
getNodes()
|
Collection |
getSelected()
|
void |
initialize()
an init routine... |
void |
loadState(String filename)
|
void |
overlayText(String s)
|
void |
paint(Graphics g)
|
void |
paintImmediately()
|
void |
paintImmediately(int x,
int y,
int width,
int height)
|
void |
paintImmediately(Rectangle r)
|
void |
removeBackgroundImage()
|
void |
returnToRegular()
|
void |
saveState(String filename)
|
void |
setBackgroundImage(String filename)
|
void |
setBackgroundImage(String filename,
double x,
double y)
|
void |
setDisplayBackground(Color bg)
sets the background color |
void |
setDisplayBackground(String bg)
|
void |
setFrozen(boolean state)
|
void |
startMovie(int fps,
String filename)
|
void |
startMovie(int fps,
String filename,
boolean auto)
|
void |
stopMovie()
basically dumps the movie to disk |
void |
switchHandler(int i)
|
void |
unselectAll()
|
void |
writeFullImage(String name,
int itype,
double maxWidth,
double maxHeight,
Properties props)
returns a buffered image scaled to fit some coordinates |
void |
writeFullImage(String name,
int itype,
double scale,
Properties props)
|
void |
writeFullImage(String name,
int itype,
Properties props)
|
void |
writeFullImage(String name,
int itype,
Rectangle2D fis,
double maxWidth,
double maxHeight,
Properties props)
|
void |
writeFullImage(String name,
int itype,
Rectangle2D trans,
double scale,
Properties props)
|
void |
writeFullImage(String name,
int itype,
Rectangle2D fis,
Properties props)
|
| Methods inherited from class edu.umd.cs.piccolo.PCanvas |
addInputEventListener, createTimer, getAnimating, getCamera, getInteracting, getLayer, getPanEventHandler, getRoot, getZoomEventHandler, paintComponent, popCursor, pushCursor, removeInputEventListener, repaint, setAnimatingRenderQuality, setBounds, setCamera, setDefaultRenderQuality, setEnabled, setInteracting, setInteractingRenderQuality, setPanEventHandler, setZoomEventHandler |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.guess.ui.FrameListener |
repaint |
| Field Detail |
public int fileCounter
public static final int BROWSE_MODE
public static final int NODE_EDIT_MODE
public static final int EDGE_EDIT_MODE
public static final int HULL_EDIT_MODE
public static final int DRAW_CREATE_MODE
public static final int DRAW_EDIT_MODE
public static int ZOOM_SIZE
| Constructor Detail |
public GFrame()
| Method Detail |
public void setFrozen(boolean state)
setFrozen in interface FrameListenerpublic void paintImmediately()
paintImmediately in interface PComponent
public void paintImmediately(int x,
int y,
int width,
int height)
public void paintImmediately(Rectangle r)
public void startMovie(int fps,
String filename)
public void startMovie(int fps,
String filename,
boolean auto)
public void stopMovie()
public void flushBuffer()
public void paint(Graphics g)
public int getMode()
public void returnToRegular()
public void switchHandler(int i)
public PLayer getNodes()
public PLayer getEdges()
public PLayer getHulls()
public PCamera getGCamera()
public void center()
center in interface FrameListenerpublic void centerFast()
public void center(Object o)
center in interface FrameListener
public void center(Object o,
long t)
public void center(double minx,
double miny,
double maxx,
double maxy)
public void center(double minx,
double miny,
double maxx,
double maxy,
long t)
public void center(Rectangle2D r2,
long t)
public void setBackgroundImage(String filename)
setBackgroundImage in interface FrameListener
public void setBackgroundImage(String filename,
double x,
double y)
setBackgroundImage in interface FrameListenerpublic void removeBackgroundImage()
removeBackgroundImage in interface FrameListenerpublic void initialize()
public BufferedImage getFullImage()
getFullImage in interface FrameListenerpublic BufferedImage getFullImage(double scale)
public BufferedImage getFullImage(Rectangle2D fis)
public BufferedImage getFullImage(double maxWidth,
double maxHeight)
public BufferedImage getFullImage(Rectangle2D fis,
double maxWidth,
double maxHeight)
public Dimension getFullImageDimensions()
public Dimension getFullImageDimensions(double scale)
public Rectangle2D getFullImageSize()
public BufferedImage getFullImage(Rectangle2D trans,
double scale)
public Point2D getLastClickedPosition()
public Collection getSelected()
public void unselectAll()
public void overlayText(String s)
public void setDisplayBackground(Color bg)
setDisplayBackground in interface FrameListenerbg - the background colorpublic void setDisplayBackground(String bg)
public Color getDisplayBackground()
getDisplayBackground in interface FrameListenerpublic void exportGIF(String filename)
exportGIF in interface FrameListenerpublic void exportJPG(String filename)
exportJPG in interface FrameListenerpublic void exportPDF(String filename)
exportPDF in interface FrameListenerpublic void exportPS(String filename)
exportPS in interface FrameListenerpublic void exportEPS(String filename)
ex