|
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.j3d.MapPick
A class that implements the Mapping interface. This computes the map and pick functions for the j3d version of Chart3d.
Field Summary | |
protected BranchGroup |
branchGroup
|
protected Canvas3D |
canvas3D
|
protected com.klg.jclass.chart3d.j3d.JCChart3dJava3d |
chart3d
|
protected com.klg.jclass.chart3d.Chart3dData |
data
|
protected com.klg.jclass.chart3d.Chart3dDataView |
dataView
|
protected float |
tolerance
|
Constructor Summary | |
MapPick()
|
|
MapPick(com.klg.jclass.chart3d.Chart3dData data)
Contructor with data. |
|
MapPick(com.klg.jclass.chart3d.Chart3dData data,
Canvas3D canvas3D,
BranchGroup branchGroup)
Contructor with data, Canvas3D, and BranchGroup. |
Method Summary | |
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 boolean |
isWithinCanvas3DLimits(int xPixel,
int yPixel)
|
Point3d |
map(int xPixel,
int yPixel)
Dummy implementation. |
com.klg.jclass.chart3d.JCData3dIndex |
pick(int xPixel,
int yPixel)
Dummy implementation. |
void |
setBranchGroup(BranchGroup branchGroup)
Sets the BranchGroup object required by PickCanvas. |
void |
setCanvas3D(Canvas3D canvas3D)
Sets the Canvas3D object required by PickCanvas. |
void |
setTolerance(float tolerance)
|
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 float tolerance
protected com.klg.jclass.chart3d.j3d.JCChart3dJava3d chart3d
protected Canvas3D canvas3D
protected BranchGroup branchGroup
protected com.klg.jclass.chart3d.Chart3dDataView dataView
protected com.klg.jclass.chart3d.Chart3dData data
Constructor Detail |
public MapPick()
public MapPick(com.klg.jclass.chart3d.Chart3dData data)
public MapPick(com.klg.jclass.chart3d.Chart3dData data, Canvas3D canvas3D, BranchGroup branchGroup)
Method Detail |
public void setCanvas3D(Canvas3D canvas3D)
protected boolean isWithinCanvas3DLimits(int xPixel, int yPixel)
public void setBranchGroup(BranchGroup branchGroup)
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
public void setTolerance(float tolerance)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |