|
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
A class that implements the Mapping interface. This computes the map and pick functions for the j2d version of Chart3d.
Field Summary | |
protected com.klg.jclass.chart3d.Chart3dData |
data
|
Constructor Summary | |
MapPick()
Default constructor, required by Java Beans. |
|
MapPick(com.klg.jclass.chart3d.Chart3dData data)
Default constructor, required by Java Beans. |
Method Summary | |
protected double |
calcDist(int x1,
int y1,
int x2,
int y2)
Find the euclidean distance (squared) between the two passed in points. |
com.klg.jclass.chart3d.Mapping |
createMapping(com.klg.jclass.chart3d.Chart3dData data)
Create a new mapping, depending on the type of input data |
com.klg.jclass.chart3d.Chart3dData |
getData()
Return the internal data object whose type determines the type of MapPick object required. |
protected com.klg.jclass.chart3d.ScreenPoint[][] |
getScreenPoints()
Return the data's screen points. |
protected Rectangle |
interpolateXY(int xPixel,
int yPixel,
double xMin,
double yMin,
double xMax,
double yMax,
Point3d mapPoint)
Find the corresponding (x, y) coordinate in data space to (xPixel, yPixel) via interpolation. |
Point3d |
map(int xPixel,
int yPixel)
Dummy implementation. |
com.klg.jclass.chart3d.JCData3dIndex |
pick(int xPixel,
int yPixel)
Dummy implementation. |
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)
Dummy implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart3d.Chart3dData data
Constructor Detail |
public MapPick()
public MapPick(com.klg.jclass.chart3d.Chart3dData data)
Method Detail |
protected double calcDist(int x1, int y1, int x2, int y2)
protected Rectangle interpolateXY(int xPixel, int yPixel, double xMin, double yMin, double xMax, double yMax, Point3d mapPoint)
protected com.klg.jclass.chart3d.ScreenPoint[][] getScreenPoints()
public Point3d map(int xPixel, int yPixel)
map
in interface Mapping
xPixel
- x value in screen pixelsyPixel
- y value in screen pixels
public Point unmap(Point3d point)
unmap
in interface Mapping
point
- The data point to be unmapped.
public com.klg.jclass.chart3d.JCData3dIndex pick(int xPixel, int yPixel)
pick
in interface Mapping
xPixel
- x value in screen pixelsyPixel
- y value in screen pixelspublic Point unpick(com.klg.jclass.chart3d.JCData3dIndex index)
unpick
in interface Mapping
index
- The data index of the point whose screen point is required.public com.klg.jclass.chart3d.Chart3dData getData()
getData
in interface Mapping
public com.klg.jclass.chart3d.Mapping createMapping(com.klg.jclass.chart3d.Chart3dData data)
createMapping
in interface Mapping
data
- The data on which to base the creation
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |