com.steema.teechart.tools
Class Rotate

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.tools.Tool
          extended by com.steema.teechart.tools.Rotate
All Implemented Interfaces:
java.io.Serializable

public class Rotate
extends Tool

Title: Rotate class

Description: Rotate tool.

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

Company: Steema Software SL

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.steema.teechart.tools.Tool
bBrush, clickTolerance, listenerList, pPen
 
Fields inherited from class com.steema.teechart.TeeBase
chart
 
Constructor Summary
Rotate()
           
Rotate(IBaseChart c)
           
 
Method Summary
static double elevationChange(boolean fullRotation, double value, double delta)
           
static Pie firstSeriesPie(IBaseChart c)
           
 int getButton()
          Defines which mousebutton activates the TTeeCustomTool.
 java.lang.String getDescription()
          Gets descriptive text.
 boolean getInverted()
          Inverts the direction of Rotation and Elevation.
 ChartPen getPen()
          Element Pen characteristics.
 RotateStyle getStyle()
          Determines whether mouse action applies to Rotation, Elevation or Both.
 java.lang.String getSummary()
          Gets detailed descriptive text.
 java.awt.Cursor mouseEvent(java.awt.event.MouseEvent e, java.awt.Cursor c)
           
static double rotationChange(boolean fullRotation, double value, double delta)
           
 void setButton(int value)
          Defines which mousebutton activates the TTeeCustomTool.
 void setInverted(boolean value)
          Inverts the direction of Rotation and Elevation.
 void setStyle(RotateStyle value)
          Determines whether mouse action applies to Rotation, Elevation or Both.
 
Methods inherited from class com.steema.teechart.tools.Tool
addMouseMotionListener, chartEvent, fireChanged, fireClicked, fireDragged, fireDragging, fireMouse, fireResized, getActive, getBitmapEditor, readResolve, removeMouseMotionListener, setActive, setChart, toString
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rotate

public Rotate()

Rotate

public Rotate(IBaseChart c)
Method Detail

getInverted

public boolean getInverted()
Inverts the direction of Rotation and Elevation.
In other words, left to right changes from a clockwise rotation to a counter-clockwise rotation and an upward mouse movement moves the chart towards a horizontal plane.
Default value: true

Returns:
boolean

setInverted

public void setInverted(boolean value)
Inverts the direction of Rotation and Elevation.
Default value: true

Parameters:
value - boolean

getStyle

public RotateStyle getStyle()
Determines whether mouse action applies to Rotation, Elevation or Both.
Default value: RotateStyle.All

Returns:
RotateStyle

setStyle

public void setStyle(RotateStyle value)
Determines whether mouse action applies to Rotation, Elevation or Both.
Default value: RotateStyle.All

Parameters:
value - RotateStyle

getButton

public int getButton()
Defines which mousebutton activates the TTeeCustomTool.
Default value: MouseButtons.Left

Returns:
int

setButton

public void setButton(int value)
Defines which mousebutton activates the TTeeCustomTool.
Default value: MouseButtons.Left

Parameters:
value - int

getDescription

public java.lang.String getDescription()
Gets descriptive text.

Overrides:
getDescription in class Tool
Returns:
String

getSummary

public java.lang.String getSummary()
Gets detailed descriptive text.

Overrides:
getSummary in class Tool
Returns:
String

firstSeriesPie

public static Pie firstSeriesPie(IBaseChart c)

mouseEvent

public java.awt.Cursor mouseEvent(java.awt.event.MouseEvent e,
                                  java.awt.Cursor c)
Overrides:
mouseEvent in class Tool

getPen

public ChartPen getPen()
Element Pen characteristics.

Returns:
ChartPen

rotationChange

public static double rotationChange(boolean fullRotation,
                                    double value,
                                    double delta)

elevationChange

public static double elevationChange(boolean fullRotation,
                                     double value,
                                     double delta)