JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d.j3d
Class MapPickGrid

java.lang.Object
  |
  +--com.klg.jclass.chart3d.j3d.MapPick
        |
        +--com.klg.jclass.chart3d.j3d.MapPickGrid
All Implemented Interfaces:
Mapping

public class MapPickGrid
extends MapPick

A class that implements the Mapping interface. This computes the map and pick functions for the j3d version of Chart3d.


Field Summary
 
Fields inherited from class com.klg.jclass.chart3d.j3d.MapPick
branchGroup, canvas3D, chart3d, data, dataView, tolerance
 
Constructor Summary
MapPickGrid()
          Default constructor, required by Java Beans.
MapPickGrid(com.klg.jclass.chart3d.Chart3dData data)
          Contructor with data.
MapPickGrid(com.klg.jclass.chart3d.Chart3dData data, Canvas3D canvas3D, BranchGroup branchGroup)
          Contructor with data, Canvas3D, and BranchGroup.
 
Method Summary
 void enablePickClosestDataPoint(boolean flag)
           
 Point3d map(int xPixel, int yPixel)
          Performs a map operation by mapping the provided screen pixel information to a value in data space.
 Point3d mapBars(int xPixel, int yPixel)
           
 Point3d mapPoints(int xPixel, int yPixel)
           
 Point3d mapSurface(int xPixel, int yPixel)
           
 com.klg.jclass.chart3d.JCData3dIndex pick(int xPixel, int yPixel)
          Performs a pick operation by returning the index of the closest point in the data set to the given screen point.
 com.klg.jclass.chart3d.JCData3dIndex pickBars(int xPixel, int yPixel)
           
 com.klg.jclass.chart3d.JCData3dIndex pickPoints(int xPixel, int yPixel)
           
 com.klg.jclass.chart3d.JCData3dIndex pickSurface(int xPixel, int yPixel)
           
 Point unpick(com.klg.jclass.chart3d.JCData3dIndex index)
          Performs an unpick operation by returning the screen point that corresponds to the given data index.
 
Methods inherited from class com.klg.jclass.chart3d.j3d.MapPick
createMapping, getData, isWithinCanvas3DLimits, setBranchGroup, setCanvas3D, setTolerance, unmap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPickGrid

public MapPickGrid()
Default constructor, required by Java Beans.


MapPickGrid

public MapPickGrid(com.klg.jclass.chart3d.Chart3dData data)
Contructor with data.


MapPickGrid

public MapPickGrid(com.klg.jclass.chart3d.Chart3dData data,
                   Canvas3D canvas3D,
                   BranchGroup branchGroup)
Contructor with data, Canvas3D, and BranchGroup.

Method Detail

enablePickClosestDataPoint

public void enablePickClosestDataPoint(boolean flag)

map

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

Specified by:
map in interface Mapping
Overrides:
map in class MapPick
Parameters:
xPixel - x value in screen pixels
yPixel - y value in screen pixels
Returns:
The data point that maps to the given screen point

pick

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

Specified by:
pick in interface Mapping
Overrides:
pick in class MapPick
Parameters:
xPixel - x value in screen pixels
yPixel - 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.

Specified by:
unpick in interface Mapping
Overrides:
unpick in class MapPick
Parameters:
index - The data index of the point whose screen point is required.

mapSurface

public Point3d mapSurface(int xPixel,
                          int yPixel)

mapBars

public Point3d mapBars(int xPixel,
                       int yPixel)

mapPoints

public Point3d mapPoints(int xPixel,
                         int yPixel)

pickSurface

public com.klg.jclass.chart3d.JCData3dIndex pickSurface(int xPixel,
                                                        int yPixel)

pickBars

public com.klg.jclass.chart3d.JCData3dIndex pickBars(int xPixel,
                                                     int yPixel)

pickPoints

public com.klg.jclass.chart3d.JCData3dIndex pickPoints(int xPixel,
                                                       int yPixel)

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