JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Interface Mapping

All Known Implementing Classes:
MapPick, MapPick

public interface Mapping

The mapping interface for JClass Chart 3D.


Method Summary
 com.klg.jclass.chart3d.Mapping createMapping(com.klg.jclass.chart3d.Chart3dData data)
          Create a mapping instance based on the data type
 com.klg.jclass.chart3d.Chart3dData getData()
          Returns the internal data object whose type determines the type of MapPick object required.
 Point3d map(int x, int y)
          Performs a map operation by mapping the provided screen pixel information to a value in data space.
 com.klg.jclass.chart3d.JCData3dIndex pick(int x, int y)
          Performs a pick operation by returning the index of the closest point in the data set to the given screen point.
 Point unmap(Point3d point)
          Performs an unmap operation by transforming the given data point to the position on the screen where it would be drawn.
 Point unpick(com.klg.jclass.chart3d.JCData3dIndex index)
          Performs an unpick operation by returning the screen point that corresponds to the given data index.
 

Method Detail

map

public Point3d map(int x,
                   int y)
Performs a map operation by mapping the provided screen pixel information to a value in data space.

Parameters:
x - x value in screen pixels
y - y value in screen pixels
Returns:
The data point that maps to the given screen point

unmap

public Point unmap(Point3d point)
Performs an unmap operation by transforming the given data point to the position on the screen where it would be drawn.

Parameters:
point - The data point to be unmapped.
Returns:
The screen point to which the data point maps

pick

public com.klg.jclass.chart3d.JCData3dIndex pick(int x,
                                                 int y)
Performs a pick operation by returning the index of the closest point in the data set to the given screen point.

Parameters:
x - x value in screen pixels
y - y value in screen pixels

unpick

public Point unpick(com.klg.jclass.chart3d.JCData3dIndex index)
Performs an unpick operation by returning the screen point that corresponds to the given data index.

Parameters:
index - The data index of the point whose screen point is required.

getData

public com.klg.jclass.chart3d.Chart3dData getData()
Returns the internal data object whose type determines the type of MapPick object required.


createMapping

public com.klg.jclass.chart3d.Mapping createMapping(com.klg.jclass.chart3d.Chart3dData data)
Create a mapping instance based on the data type

Parameters:
data - The data on which to base the creation
Returns:
The new mapping instance

Copyright © 2004 Quest Software Inc..
All rights reserved.