|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart3d.j2d.MapPick | +--com.klg.jclass.chart3d.j2d.MapPickGrid
A class that implements the Mapping interface. This computes the map and pick functions for the j2d version of Chart3d.
Field Summary | |
static double |
T_EPSILON
|
Fields inherited from class com.klg.jclass.chart3d.j2d.MapPick |
data |
Constructor Summary | |
MapPickGrid()
Default constructor, required by Java Beans. |
|
MapPickGrid(com.klg.jclass.chart3d.Chart3dData data)
Default constructor, required by Java Beans. |
Method Summary | |
protected boolean |
findClosestPoint(int xPixel,
int yPixel,
com.klg.jclass.chart3d.JCData3dGridIndex index)
Find the closest point in pixel space to (xPixel, yPixel). |
protected boolean |
gridPointSelect(int xPixel,
int yPixel,
com.klg.jclass.chart3d.JCData3dGridIndex index)
Search the grid points for the closest point in screen-space to the pick point (cursor position). |
Point3d |
map(int xPixel,
int yPixel)
Performs a map operation by mapping the provided screen pixel information to a value in data space. |
com.klg.jclass.chart3d.JCData3dIndex |
pick(int xPixel,
int yPixel)
Performs a pick operation by returning the index of the closest point in the grid data set to the given screen point. |
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.j2d.MapPick |
calcDist, createMapping, getData, getScreenPoints, interpolateXY, unmap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double T_EPSILON
Constructor Detail |
public MapPickGrid()
public MapPickGrid(com.klg.jclass.chart3d.Chart3dData data)
Method Detail |
protected boolean findClosestPoint(int xPixel, int yPixel, com.klg.jclass.chart3d.JCData3dGridIndex index)
public Point3d map(int xPixel, int yPixel)
map
in interface Mapping
map
in class MapPick
xPixel
- x value in screen pixelsyPixel
- y value in screen pixels
protected boolean gridPointSelect(int xPixel, int yPixel, com.klg.jclass.chart3d.JCData3dGridIndex index)
public com.klg.jclass.chart3d.JCData3dIndex pick(int xPixel, int yPixel)
pick
in interface Mapping
pick
in class MapPick
xPixel
- x value in screen pixelsyPixel
- y value in screen pixelspublic Point unpick(com.klg.jclass.chart3d.JCData3dIndex index)
unpick
in interface Mapping
unpick
in class MapPick
index
- The data index of the point whose screen point is required.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |