Constructor and Description |
---|
PhysicalZoomer(TNetwork network)
Create zoomer and work with specified network component.
|
Modifier and Type | Method and Description |
---|---|
void |
addZoomListener(ZoomListener l)
Add a zoom Listener into this network.
|
protected void |
fireZoomChangeEvent(double oldValue,
double newValue)
Fire event to inform all listeners that the zoomer value changed.
|
double |
getMaxZoom() |
double |
getMinZoom() |
TNetwork |
getNetwork()
Get the network component this zoomer working for.
|
double |
getWheelZoomIncrement()
Get the mouse wheel zoom increment value.
|
double |
getZoom()
Get zoom value for this zoomer.
|
double |
getZoomIncrement()
get the zoom increment value.
|
void |
removeZoomListener(ZoomListener l)
remove a zoom listener from this network.
|
void |
setMaxZoom(double maxZoom) |
void |
setMinZoom(double minZoom) |
void |
setWheelZoomIncrement(double wheelZoomIncrement)
Change the mouse wheel zoom increment value.
|
void |
setZoom(double zoom)
Set zoom value for this zoomer.
|
void |
setZoomIncrement(double zoomIncrement)
set the zoom increment value.
|
void |
wheelZoomIn()
Call this to zoom in according to mouse wheel change
|
void |
wheelZoomOut()
Call this to zoom out according to mouse wheel change
|
void |
zoomBack()
Return the last zoom factor.
|
void |
zoomIn()
Call this to zoom in
|
void |
zoomOut()
Call this to zoom out
|
void |
zoomReset()
Call this to reset zoom
|
void |
zoomToOverview() |
void |
zoomToOverview(int gapX,
int gapY) |
void |
zoomToRect(java.awt.Rectangle rect)
Call this to zoom to rectangle.
|
public PhysicalZoomer(TNetwork network)
network
- TNetwork the network component to be worked withpublic double getMaxZoom()
getMaxZoom
in interface Zoomer
public void setMaxZoom(double maxZoom)
setMaxZoom
in interface Zoomer
public double getMinZoom()
getMinZoom
in interface Zoomer
public void setMinZoom(double minZoom)
setMinZoom
in interface Zoomer
public void addZoomListener(ZoomListener l)
addZoomListener
in interface Zoomer
l
- ZoomListener the new zoom listener.public void removeZoomListener(ZoomListener l)
removeZoomListener
in interface Zoomer
l
- ZoomListenerprotected void fireZoomChangeEvent(double oldValue, double newValue)
oldValue
- doublenewValue
- doublepublic double getZoom()
getZoom
in interface Zoomer
setZoom(double)
public void setZoom(double zoom)
public TNetwork getNetwork()
getNetwork
in interface Zoomer
public void wheelZoomIn()
wheelZoomIn
in interface Zoomer
wheelZoomOut()
public void wheelZoomOut()
wheelZoomOut
in interface Zoomer
wheelZoomIn()
public void zoomReset()
public void zoomToRect(java.awt.Rectangle rect)
zoomToRect
in interface Zoomer
rect
- Rectangle Rectanglepublic void zoomBack()
public void zoomToOverview()
zoomToOverview
in interface Zoomer
public void zoomToOverview(int gapX, int gapY)
zoomToOverview
in interface Zoomer
gapX
- intgapY
- intpublic double getWheelZoomIncrement()
getWheelZoomIncrement
in interface Zoomer
public void setWheelZoomIncrement(double wheelZoomIncrement)
setWheelZoomIncrement
in interface Zoomer
wheelZoomIncrement
- doublepublic double getZoomIncrement()
getZoomIncrement
in interface Zoomer
public void setZoomIncrement(double zoomIncrement)
setZoomIncrement
in interface Zoomer
zoomIncrement
- doubleCopyright © 2002 - 2010 Serva Software. All Rights Reserved.