org.opensourcephysics.display3d.core
Interface VisualizationHints

All Known Implementing Classes:
VisualizationHints

public interface VisualizationHints

Title: VisualizationHints

Description: Hints to a DrawingPanel3D about how it should look. Hints can be ignored by the panel, depending on the implementation.

Version:
March 2005
Author:
Francisco Esquembre

Nested Class Summary
static class VisualizationHints.Loader
           
 
Field Summary
static int CURSOR_CROSSHAIR
           
static int CURSOR_CUBE
           
static int CURSOR_NONE
           
static int CURSOR_XYZ
           
static int DECORATION_AXES
           
static int DECORATION_CUBE
           
static int DECORATION_NONE
           
 
Method Summary
 void copyFrom(VisualizationHints hints)
          Copies its data from another set of hints
 java.lang.String[] getAxesLabels()
           
 int getCursorType()
           
 int getDecorationType()
           
 int getShowCoordinates()
           
 java.lang.String getXFormat()
           
 java.lang.String getYFormat()
           
 java.lang.String getZFormat()
           
 boolean isAllowQuickRedraw()
           
 boolean isRemoveHiddenLines()
           
 boolean isUseColorDepth()
           
 void setAllowQuickRedraw(boolean allow)
          Whether the panel can draw quickly when it is dragged for a new view point
 void setAxesLabels(java.lang.String[] labels)
          Sets the labels for the X, Y, and Z axes (when the axes are visible).
 void setCursorType(int type)
          The cursor type when interacting with the panel.
 void setDecorationType(int type)
          Types of decoration displayed.
 void setRemoveHiddenLines(boolean remove)
          Whether the panel should try to remove hidden lines
 void setShowCoordinates(int location)
          At which location should the panel display the coordinates when dragging a point The location must be one of the following: DrawingPanel3D.BOTTOM_LEFT DrawingPanel3D.BOTTOM_RIGHT DrawingPanel3D.TOP_RIGHT DrawingPanel3D.TOP_LEFT A negative value for the location means
 void setUseColorDepth(boolean useIt)
          Whether the panel should display far objects darker
 void setXFormat(java.lang.String format)
          Sets the format to display the X coordinate when dragging a point
 void setYFormat(java.lang.String format)
          Sets the format to display the Y coordinate when dragging a point
 void setZFormat(java.lang.String format)
          Sets the format to display the Z coordinate when dragging a point
 

Field Detail

DECORATION_NONE

static final int DECORATION_NONE
See Also:
Constant Field Values

DECORATION_AXES

static final int DECORATION_AXES
See Also:
Constant Field Values

DECORATION_CUBE

static final int DECORATION_CUBE
See Also:
Constant Field Values

CURSOR_NONE

static final int CURSOR_NONE
See Also:
Constant Field Values

CURSOR_XYZ

static final int CURSOR_XYZ
See Also:
Constant Field Values

CURSOR_CUBE

static final int CURSOR_CUBE
See Also:
Constant Field Values

CURSOR_CROSSHAIR

static final int CURSOR_CROSSHAIR
See Also:
Constant Field Values
Method Detail

setDecorationType

void setDecorationType(int type)
Types of decoration displayed. One of the following

Parameters:
type - the desired value

getDecorationType

int getDecorationType()

setAxesLabels

void setAxesLabels(java.lang.String[] labels)
Sets the labels for the X, Y, and Z axes (when the axes are visible).

Parameters:
labels - a String[] array with at least three elements

getAxesLabels

java.lang.String[] getAxesLabels()

setCursorType

void setCursorType(int type)
The cursor type when interacting with the panel. One of the following

Parameters:
mode - the desired value

getCursorType

int getCursorType()

setRemoveHiddenLines

void setRemoveHiddenLines(boolean remove)
Whether the panel should try to remove hidden lines

Parameters:
remove - the desired value

isRemoveHiddenLines

boolean isRemoveHiddenLines()

setAllowQuickRedraw

void setAllowQuickRedraw(boolean allow)
Whether the panel can draw quickly when it is dragged for a new view point

Parameters:
allow - the desired value

isAllowQuickRedraw

boolean isAllowQuickRedraw()

setUseColorDepth

void setUseColorDepth(boolean useIt)
Whether the panel should display far objects darker

Parameters:
useIt - the desired value

isUseColorDepth

boolean isUseColorDepth()

setShowCoordinates

void setShowCoordinates(int location)
At which location should the panel display the coordinates when dragging a point The location must be one of the following: A negative value for the location means


getShowCoordinates

int getShowCoordinates()

setXFormat

void setXFormat(java.lang.String format)
Sets the format to display the X coordinate when dragging a point

Parameters:
format - String parameter for a new java.text.DecimalFormat

getXFormat

java.lang.String getXFormat()

setYFormat

void setYFormat(java.lang.String format)
Sets the format to display the Y coordinate when dragging a point

Parameters:
format - String parameter for a new java.text.DecimalFormat

getYFormat

java.lang.String getYFormat()

setZFormat

void setZFormat(java.lang.String format)
Sets the format to display the Z coordinate when dragging a point

Parameters:
format - String parameter for a new java.text.DecimalFormat

getZFormat

java.lang.String getZFormat()

copyFrom

void copyFrom(VisualizationHints hints)
Copies its data from another set of hints

Parameters:
hints -