|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cs.piccolo.PNode edu.umd.cs.piccolo.PLayer edu.umd.cfar.lamp.viper.gui.canvas.ViperDataPLayer
This is a view of what a ViperViewMediator calls the 'majorMoment', hopefully the frame of interest to the user.
Field Summary |
Fields inherited from class edu.umd.cs.piccolo.PLayer |
PROPERTY_CAMERAS |
Fields inherited from class edu.umd.cs.piccolo.PNode |
PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE |
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Constructor Summary | |
ViperDataPLayer(DataViewGenerator gen,
ViperViewMediator med)
|
Method Summary | |
void |
addEditor(CanvasEditor e)
Add editor object to current frame |
void |
addEditorToPLayer(Attributable attr,
java.lang.String attrType)
An editor manages the mouse events, and updates the Attributable which is contained in the editor |
void |
clearEditors()
|
void |
connectToCanvas()
|
static void |
debugErrPrint(boolean alwaysPrint,
java.lang.String s)
|
static void |
debugErrPrint(java.lang.String s)
|
static void |
debugPrint(boolean alwaysPrint,
java.lang.String s)
|
static void |
debugPrint(java.lang.String s)
|
CanvasCreator |
getActiveCreator()
|
CanvasEditor |
getActiveEditor()
|
Attributable |
getAttributable(java.lang.String attrType,
Attribute currAttr)
Gets the Attributable PNode. |
CanvasEditor |
getEditorAt(int index)
|
ViperViewMediator |
getMediator()
|
edu.umd.cs.piccolo.PCamera |
getMyCamera()
|
ViperData |
getViperData()
|
boolean |
isMousePressed()
|
static void |
main(java.lang.String[] args)
Create a simple view of the viper file passed in the command line argument. |
void |
mouseIsPressed()
|
void |
mouseIsReleased()
|
int |
numEditors()
|
static void |
printUsage()
|
void |
setActiveEditor(CanvasEditor editor)
|
void |
setDwrtEditor(CanvasEditor editor)
|
void |
setMediator(ViperViewMediator mediator)
|
void |
setMyCamera(edu.umd.cs.piccolo.PCamera camera)
|
void |
setViperDataCanvas(ViperDataCanvas canvas)
|
void |
stop()
|
Methods inherited from class edu.umd.cs.piccolo.PLayer |
addCamera, addCamera, getCamera, getCameraCount, getCamerasReference, notifyCameras, removeCamera, removeCamera, repaintFrom |
Methods inherited from class edu.umd.cs.piccolo.PNode |
addActivity, addChild, addChild, addChildren, addClientProperty, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToTransform, animateToTransparency, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, endResizeBounds, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperty, getClientPropertyKeysIterator, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getInverseTransform, getListenerList, getLocalToGlobalTransform, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, intersects, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, moveToBack, moveToBack, moveToFront, moveToFront, offset, paint, paintAfterChildren, paramString, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, position, print, print, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHight, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, startResizeBounds, toImage, toImage, toString, transformBy, translate, validateFullBounds, validateFullPaint |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ViperDataPLayer(DataViewGenerator gen, ViperViewMediator med) throws java.io.IOException
Method Detail |
public static void debugPrint(java.lang.String s)
public static void debugErrPrint(java.lang.String s)
public static void debugPrint(boolean alwaysPrint, java.lang.String s)
public static void debugErrPrint(boolean alwaysPrint, java.lang.String s)
public void mouseIsPressed()
public void mouseIsReleased()
public boolean isMousePressed()
public Attributable getAttributable(java.lang.String attrType, Attribute currAttr)
attrType
- The name of a "shape" like obox, bbox, etccurrAttr
- The attribute, which allows access to current value, in this
frame
public void addEditorToPLayer(Attributable attr, java.lang.String attrType)
attr
- Attributable is a combination of a PPath plus an AttributeattrType
- This indicates what kind of Attribute, e.g., obox, bbox, etcpublic static void printUsage()
public static void main(java.lang.String[] args) throws java.net.URISyntaxException
java.net.URISyntaxException
public ViperViewMediator getMediator()
public CanvasCreator getActiveCreator()
public int numEditors()
public void setMediator(ViperViewMediator mediator)
public void clearEditors()
public void addEditor(CanvasEditor e)
e
- The editor object being addedpublic void setActiveEditor(CanvasEditor editor)
public void setDwrtEditor(CanvasEditor editor)
public CanvasEditor getEditorAt(int index)
public CanvasEditor getActiveEditor()
public ViperData getViperData()
public void stop()
public edu.umd.cs.piccolo.PCamera getMyCamera()
public void setMyCamera(edu.umd.cs.piccolo.PCamera camera)
camera
- public void setViperDataCanvas(ViperDataCanvas canvas)
public void connectToCanvas()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |