com.steema.teechart
Class ZoomScroll

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.ZoomScroll
Direct Known Subclasses:
Scroll, Zoom

public class ZoomScroll
extends TeeBase

Title: ZoomScroll class

Description: Internal use. Zoom and scroll support.

Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL


Nested Class Summary
 class ZoomScroll.ZoomSnapshot
           
 
Field Summary
 int x0
          Starting horizontal coordinate.
 int x1
          Ending horizontal coordinate.
 int y0
          Starting vertical coordinate.
 int y1
          Ending vertical coordinate.
 
Fields inherited from class com.steema.teechart.TeeBase
chart, InternalUse
 
Constructor Summary
ZoomScroll(IBaseChart value)
          Creates a new ZoomScroll class that is asociated to chart parameter.
 
Method Summary
 void activate(int x, int y)
          Internal use.
 void activate(Point p)
          Initializes a Zoom or Scroll operation starting at Point p coordinates.
 void check()
          Makes sure x0 and y0 coordinates are lower than x1 and y1 respectively.
 boolean getActive()
          Returns the active state of Chart Zoom and Scroll.
 void setActive(boolean value)
          Sets the active state of Chart Zoom and Scroll.
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x0

public transient int x0
Starting horizontal coordinate.


y0

public transient int y0
Starting vertical coordinate.


x1

public transient int x1
Ending horizontal coordinate.


y1

public transient int y1
Ending vertical coordinate.

Constructor Detail

ZoomScroll

public ZoomScroll(IBaseChart value)
Creates a new ZoomScroll class that is asociated to chart parameter.

Parameters:
value - IBaseChart
Method Detail

getActive

public boolean getActive()
Returns the active state of Chart Zoom and Scroll.
In other words, during the act of zooming or scrolling returns true.
Default value: false

Returns:
boolean

setActive

public void setActive(boolean value)
Sets the active state of Chart Zoom and Scroll.
Default value: false

Parameters:
value - boolean

check

public void check()
Makes sure x0 and y0 coordinates are lower than x1 and y1 respectively.


activate

public final void activate(Point p)
Initializes a Zoom or Scroll operation starting at Point p coordinates.

Parameters:
p - Point

activate

public void activate(int x,
                     int y)
Internal use. Starts a Zoom or Scroll from the co-ordinates x and y.

Parameters:
x - int
y - int