public class Lens
extends java.awt.geom.Rectangle2D.Float
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Modifier and Type | Field and Description |
---|---|
protected float |
aspectRatio
Deprecated.
ratio of width to height
|
protected java.awt.geom.Line2D |
base
Deprecated.
the base of the rectangle
|
protected java.awt.Point |
down
Deprecated.
|
protected boolean |
dragBase
Deprecated.
true if we are dragging the base
|
protected boolean |
dragLeftLeg
Deprecated.
true if we are dragging the left leg
|
protected boolean |
dragRightLeg
Deprecated.
true if we are dragging the right leg
|
protected boolean |
dragTop
Deprecated.
true if we are dragging the top
|
protected Layout |
layout
Deprecated.
the layout being used by the BirdsEye
|
protected java.awt.geom.Line2D |
leftLeg
Deprecated.
the left leg of the rectangle
|
protected java.awt.geom.AffineTransform |
lensXform
Deprecated.
|
protected float |
offx
Deprecated.
the offset in the x direction, as a percentage of width
|
protected float |
offy
Deprecated.
the offset in the y direction, as a percentage of height
|
protected boolean |
outside
Deprecated.
true if the mouse pointer is outside the window
|
protected boolean |
pan
Deprecated.
true if we are dragging the Rectangle around
|
protected java.awt.geom.Line2D |
rightLeg
Deprecated.
the right leg of the rectangle
|
protected float |
scalex
Deprecated.
the scale of the BirdsEyeVisualizationViewer compared to
the graph display
|
protected float |
scaley
Deprecated.
the scale of the BirdsEyeVisualizationViewer compared to
the graph display
|
protected java.beans.PropertyChangeSupport |
support
Deprecated.
support for property changes
|
protected java.awt.geom.Line2D |
top
Deprecated.
the top of the rectangle
|
protected VisualizationViewer |
vv
Deprecated.
the VisualizationViewer that is scaled and translated
by this Lens
|
Constructor and Description |
---|
Lens(VisualizationViewer vv,
float scalex,
float scaley)
Deprecated.
Create a Lens that is centered in the
BirdsEyeVisualizationViewer
|
Modifier and Type | Method and Description |
---|---|
void |
init()
Deprecated.
set the Rectangle to be centered in the BirdsEyeVisualizationViewer
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Deprecated.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Deprecated.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Deprecated.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Deprecated.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Deprecated.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Deprecated.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Deprecated.
|
void |
reset()
Deprecated.
reset the rectangle to the full size of the BirdsEyeVisualizationViewer
This will result in no zoom or pan of the main display
|
void |
setFrame(VisualizationViewer vv)
Deprecated.
|
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, setRect, toString
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
protected boolean pan
protected boolean dragRightLeg
protected boolean dragBase
protected boolean dragLeftLeg
protected boolean dragTop
protected boolean outside
protected float offx
protected float offy
protected java.awt.geom.Line2D leftLeg
protected java.awt.geom.Line2D rightLeg
protected java.awt.geom.Line2D base
protected java.awt.geom.Line2D top
protected float scalex
protected float scaley
protected Layout layout
protected VisualizationViewer vv
protected java.beans.PropertyChangeSupport support
protected float aspectRatio
protected java.awt.Point down
protected java.awt.geom.AffineTransform lensXform
public Lens(VisualizationViewer vv, float scalex, float scaley)
public void reset()
public void setFrame(VisualizationViewer vv)
public void init()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener