|
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.ParentTrackChange | +--com.klg.jclass.chart3d.JCViewport
The JCViewport
class stores information concerning the viewport through which
the user views the plotcube. The default viewport is determined by JClass
Chart 3D. The user can modify this default by scaling it and translating
it within the JCChart3dArea
.
Field Summary | |
protected double |
horizontalShift
Horizontal shift as a multiple of the original viewport size. |
static double |
MAX_VIEW_SCALE
Maximum scale at which you can zoom the data. |
static double |
MIN_VIEW_SCALE
Minimum scale at which you can zoom the data. |
protected boolean |
normalized
Queries if the viewport is normalized (for example, scale = 1 ,
and shifts = 0 ). |
static int |
PREVIEW_CUBE
Does rotation action by drawing a wireframe preview cube (fast drawing). |
static int |
PREVIEW_FULL
Does rotation action by drawing the full 3D chart. |
protected int |
previewMethod
Preview method. |
protected double |
scale
Zoom factor. |
protected double |
verticalShift
Vertical shift as a multiple of the original viewport size. |
Fields inherited from class com.klg.jclass.chart3d.ParentTrackChange |
parents |
Constructor Summary | |
JCViewport()
No args constructor. |
|
JCViewport(boolean normalized,
double scale,
double horizontalShift,
double verticalShift)
Constructor that supplies values for normalized, scale, horizontal, and vertical shift. |
Method Summary | |
double |
getHorizontalShift()
Returns the horizontal shift as a multiple of the original viewport size. |
int |
getPreviewMethod()
Returns the preview method. |
double |
getScale()
Gets the scale zoom factor. |
double |
getVerticalShift()
Returns the vertical shift as a multiple of the original viewport size. |
boolean |
isNormalized()
Asks if the viewport is normalized (for example, scale = 1 , and
shifts = 0 ). |
void |
setHorizontalShift(double horizontalShift)
Sets the horizontal shift as a multiple of the original viewport size. |
void |
setNormalized(boolean normalized)
Sets the normalized value. |
void |
setPreviewMethod(int previewMethod)
Sets the preview method. |
void |
setScale(double scale)
Sets the zoom factor. |
void |
setVerticalShift(double verticalShift)
Sets the vertical shift as a multiple of the original viewport size. |
void |
setViewport(double scale,
double horizontalShift,
double verticalShift)
Set the scale, horizontalShift , and verticalShift in one call. |
Methods inherited from class com.klg.jclass.chart3d.ParentTrackChange |
addParent, clearParents, removeParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PREVIEW_CUBE
public static final int PREVIEW_FULL
public static final double MAX_VIEW_SCALE
public static final double MIN_VIEW_SCALE
protected boolean normalized
scale = 1
,
and shifts = 0
).
protected double scale
protected double horizontalShift
protected double verticalShift
protected int previewMethod
Constructor Detail |
public JCViewport()
public JCViewport(boolean normalized, double scale, double horizontalShift, double verticalShift)
true
, the
other three values will not take effect.
normalized
- Is the viewport normalized (for example, scale = 1
, and
shifts = 0
)scale
- zoom factorhorizontalShift
- horizontal shift as a multiple of the original
viewport sizeverticalShift
- vertical shift as a multiple of the original viewport
sizeMethod Detail |
public void setNormalized(boolean normalized)
true
, the scale, horizontal
shift, and vertical shift will be set to their default values. If false
,
these values can be set to non-default values.
normalized
- the new normalized valuepublic boolean isNormalized()
scale = 1
, and
shifts = 0
).
public void setScale(double scale)
JCChart3dArea
).
scale
- the new scale zoom factorpublic double getScale()
public void setHorizontalShift(double horizontalShift)
horizontalShift
- the new horizontal shiftpublic double getHorizontalShift()
public void setVerticalShift(double verticalShift)
verticalShift
- the new vertical shiftpublic double getVerticalShift()
public void setViewport(double scale, double horizontalShift, double verticalShift)
horizontalShift
, and verticalShift
in one call.
scale
- the new scalehorizontalShift
- the new horizontal shiftverticalShift
- the new vertical shiftpublic void setPreviewMethod(int previewMethod)
PREVIEW_CUBE
(display a wireframe cube) or PREVIEW_FULL
(display the entire
surface).
previewMethod
- the new preview methodpublic int getPreviewMethod()
preview
method. This controls what is drawn as the
user rotates the cube interactively. This can either be
PREVIEW_CUBE
(display a wireframe cube) or
PREVIEW_FULL
(display the entire surface).
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |