|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.ZoomScroll
com.steema.teechart.Zoom
public class Zoom
Title: Zoom class
Description: Used at tChart1.Zoom property, determines mouse zoom attributes.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.steema.teechart.ZoomScroll |
---|
ZoomScroll.ZoomSnapshot |
Field Summary | |
---|---|
double |
animatedFactor
Controls the animated zoom "speed" (inertia) |
protected ChartPen |
pen
|
protected int |
zoomCounter
|
protected boolean |
zoomed
|
Fields inherited from class com.steema.teechart.ZoomScroll |
---|
x0, x1, y0, y1 |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
Zoom(IBaseChart c)
Creates a new Zoom instance. |
Method Summary | |
---|---|
Rectangle |
ClipZoomReversibleRectangle()
Zooms the Chart rectangle. |
void |
draw()
Displays rectangle while dragging Chart for zoom operation. |
boolean |
getAllow()
Allows runtime Zoom by dragging the mouse when true. |
boolean |
getAnimated()
Animates Zoom in sequenced steps when true. |
int |
getAnimatedSteps()
Determines the number of steps of the animated zooming sequence. |
ChartBrush |
getBrush()
Brush used to fill mousedragged zoom area. |
ZoomDirections |
getDirection()
The direction of the zoom on a selected area. |
int |
getKeyMask()
The keyboard button as an extra condition to initiate the zoom. |
int |
getMinPixels()
The minimum number of pixels to actuate zoom action. |
int |
getMouseButton()
The mousebutton to use for the zoom action. |
ChartPen |
getPen()
Pen used to draw surrounding rectangle of zoom area. |
boolean |
getZoomed()
Determines if Chart axis scales fit all Chart points or not. |
void |
setAllow(boolean value)
Allows runtime Zoom by dragging the mouse when true. |
void |
setAnimated(boolean value)
Animates Zoom in sequenced steps when true. |
void |
setAnimatedSteps(int value)
Sets the number of steps of the animated zooming sequence. |
void |
setChart(IBaseChart c)
Overrides base SetChart method to adjust pen and brush chart properties. |
void |
setDirection(ZoomDirections value)
Sets the direction of the zoom on a selected area. |
void |
setKeyMask(int value)
Sets a keyboard button as an extra condition to initiate the zoom. |
void |
setMinPixels(int value)
Sets minimum number of pixels to actuate zoom action. |
void |
setMouseButton(int value)
Sets the mousebutton to use for the zoom action. |
void |
setZoomed(boolean value)
Set the Chart axis scales to fit all Chart points when true. |
void |
zoomPercent(double percentZoom)
Applies the specified PercentZoom Zoom In/Out to the current Axis scales. |
Methods inherited from class com.steema.teechart.ZoomScroll |
---|
activate, activate, check, getActive, setActive |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ChartPen pen
protected boolean zoomed
protected int zoomCounter
public double animatedFactor
Constructor Detail |
---|
public Zoom(IBaseChart c)
c
- IBaseChartMethod Detail |
---|
public boolean getAllow()
public void setAllow(boolean value)
value
- booleanpublic boolean getAnimated()
public void setAnimated(boolean value)
value
- booleanpublic ChartBrush getBrush()
public ZoomDirections getDirection()
public void setDirection(ZoomDirections value)
value
- ZoomDirectionspublic int getAnimatedSteps()
public void setAnimatedSteps(int value)
value
- intpublic int getKeyMask()
public void setKeyMask(int value)
value
- intpublic int getMinPixels()
public void setMinPixels(int value)
value
- intpublic int getMouseButton()
public void setMouseButton(int value)
value
- intpublic ChartPen getPen()
public Rectangle ClipZoomReversibleRectangle()
r
- Rectanglepublic void draw()
public void setChart(IBaseChart c)
setChart
in class TeeBase
c
- IBaseChartpublic boolean getZoomed()
public void setZoomed(boolean value)
value
- booleanpublic void zoomPercent(double percentZoom)
percentZoom
- double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |