|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
org.vizzini.ui.graphics.ObjectViewerAWT
class ObjectViewerAWT
Provides an AWT 3D object viewer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected int |
_xRotation
The X rotation angle in degrees. |
protected int |
_yRotation
The Y rotation angle in degrees. |
protected int |
_zRotation
The Z rotation angle in degrees. |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface org.vizzini.ui.graphics.IViewer |
|---|
MAGNIFICATION_FACTOR |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ObjectViewerAWT()
Construct this object. |
|
| Method Summary | |
|---|---|
void |
add(IShape shape)
Add the given shape. |
protected Panel |
createMagnifyPanel()
Create a panel containing the magnification controls. |
double |
getMagnify()
Return the magnification. |
double |
getPerspectiveConstant()
Return the perspective constant. |
boolean |
isViewPointLightUsed()
|
void |
remove(IShape shape)
Remove the given shape. |
void |
setCanvasBackground(Color color)
Set the canvas background color. |
void |
setMagnify(double magnify)
Set the magnification. |
void |
setMagnifyPanelVisible(boolean isVisible)
Set the visibility of the magnification panel. |
void |
setPerspectiveConstant(double d)
Set the perspective constant. |
void |
setViewPointLightUsed(boolean isViewPointLightUsed)
|
void |
setXScrollBarBlockIncrement(int increment)
Set the block increment on the X scroll bar. |
void |
setXScrollBarUnitIncrement(int increment)
Set the unit increment on the X scroll bar. |
void |
setXScrollBarValues(int value,
int visible,
int minimum,
int maximum)
Set the values on the X scroll bar. |
void |
setXScrollBarVisible(boolean isVisible)
Set the visibility of the X scroll bar. |
void |
setYScrollBarBlockIncrement(int increment)
Set the block increment on the Y scroll bar. |
void |
setYScrollBarUnitIncrement(int increment)
Set the unit increment on the Y scroll bar. |
void |
setYScrollBarValues(int value,
int visible,
int minimum,
int maximum)
Set the values on the Y scroll bar. |
void |
setYScrollBarVisible(boolean isVisible)
Set the visibility of the Y scroll bar. |
void |
setZScrollBarBlockIncrement(int increment)
Set the block increment on the Z scroll bar. |
void |
setZScrollBarUnitIncrement(int increment)
Set the unit increment on the Z scroll bar. |
void |
setZScrollBarValues(int value,
int visible,
int minimum,
int maximum)
Set the values on the Z scroll bar. |
void |
setZScrollBarVisible(boolean isVisible)
Set the visibility of the Z scroll bar. |
void |
update()
Update the shapes in this viewer. |
| Methods inherited from class java.awt.Panel |
|---|
addNotify, getAccessibleContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _xRotation
protected int _yRotation
protected int _zRotation
| Constructor Detail |
|---|
public ObjectViewerAWT()
| Method Detail |
|---|
public void add(IShape shape)
add in interface IViewerpublic double getMagnify()
getMagnify in interface IViewerpublic double getPerspectiveConstant()
getPerspectiveConstant in interface IViewerpublic boolean isViewPointLightUsed()
isViewPointLightUsed in interface IViewerpublic void remove(IShape shape)
remove in interface IViewerpublic void setCanvasBackground(Color color)
setCanvasBackground in interface IViewerpublic void setMagnify(double magnify)
setMagnify in interface IViewerpublic void setMagnifyPanelVisible(boolean isVisible)
setMagnifyPanelVisible in interface IViewerpublic void setPerspectiveConstant(double d)
setPerspectiveConstant in interface IViewerpublic void setViewPointLightUsed(boolean isViewPointLightUsed)
setViewPointLightUsed in interface IViewerisViewPointLightUsed - the isViewPointLightUsed to setpublic void setXScrollBarBlockIncrement(int increment)
setXScrollBarBlockIncrement in interface IViewerincrement - The amount by which to increment or decrement the
scroll bar's value.public void setXScrollBarUnitIncrement(int increment)
setXScrollBarUnitIncrement in interface IViewerincrement - The amount by which to increment or decrement the
scroll bar's value.
public void setXScrollBarValues(int value,
int visible,
int minimum,
int maximum)
setXScrollBarValues in interface IViewervalue - The position in the current window.visible - The amount visible per page.minimum - The minimum value of the scroll bar.maximum - The maximum value of the scroll bar.public void setXScrollBarVisible(boolean isVisible)
setXScrollBarVisible in interface IViewerisVisible - Flag indicating if the scroll bar is visible.public void setYScrollBarBlockIncrement(int increment)
setYScrollBarBlockIncrement in interface IViewerincrement - The amount by which to increment or decrement the
scroll bar's value.public void setYScrollBarUnitIncrement(int increment)
setYScrollBarUnitIncrement in interface IViewerincrement - The amount by which to increment or decrement the
scroll bar's value.
public void setYScrollBarValues(int value,
int visible,
int minimum,
int maximum)
setYScrollBarValues in interface IViewervalue - The position in the current window.visible - The amount visible per page.minimum - The minimum value of the scroll bar.maximum - The maximum value of the scroll bar.public void setYScrollBarVisible(boolean isVisible)
setYScrollBarVisible in interface IViewerisVisible - Flag indicating if the scroll bar is visible.public void setZScrollBarBlockIncrement(int increment)
setZScrollBarBlockIncrement in interface IViewerincrement - The amount by which to increment or decrement the
scroll bar's value.public void setZScrollBarUnitIncrement(int increment)
setZScrollBarUnitIncrement in interface IViewerincrement - The amount by which to increment or decrement the
scroll bar's value.
public void setZScrollBarValues(int value,
int visible,
int minimum,
int maximum)
setZScrollBarValues in interface IViewervalue - The position in the current window.visible - The amount visible per page.minimum - The minimum value of the scroll bar.maximum - The maximum value of the scroll bar.public void setZScrollBarVisible(boolean isVisible)
setZScrollBarVisible in interface IViewerisVisible - Flag indicating if the scroll bar is visible.public void update()
update in interface IViewerprotected Panel createMagnifyPanel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |