Class VisualizationHints
java.lang.Object
org.opensourcephysics.display3d.simple3d.VisualizationHints
- All Implemented Interfaces:
VisualizationHints
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from interface org.opensourcephysics.display3d.core.VisualizationHints
VisualizationHints.Loader -
Field Summary
Fields inherited from interface org.opensourcephysics.display3d.core.VisualizationHints
CURSOR_CROSSHAIR, CURSOR_CUBE, CURSOR_NONE, CURSOR_XYZ, DECORATION_AXES, DECORATION_CUBE, DECORATION_NONE -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFrom(VisualizationHints hints) Copies its data from another set of hintsfinal String[]final intfinal intstatic XML.ObjectLoaderintfinal booleanfinal booleanfinal booleanvoidsetAllowQuickRedraw(boolean _value) Whether the panel can draw quickly when it is dragged for a new view pointfinal voidsetAxesLabels(String[] labels) Sets the labels for the X, Y, and Z axes (when the axes are visible).voidsetCursorType(int _type) The cursor type when interacting with the panel.voidsetDecorationType(int _value) Types of decoration displayed.voidsetRemoveHiddenLines(boolean _value) Whether the panel should try to remove hidden linesvoidsetShowCoordinates(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 meansvoidsetUseColorDepth(boolean _value) Whether the panel should display far objects darkervoidsetXFormat(String format) Sets the format to display the X coordinate when dragging a pointvoidsetYFormat(String format) Sets the format to display the Y coordinate when dragging a pointvoidsetZFormat(String format) Sets the format to display the Z coordinate when dragging a point
-
Method Details
-
setCursorType
public void setCursorType(int _type) Description copied from interface:VisualizationHintsThe cursor type when interacting with the panel. One of the following- CURSOR_NONE: No cursor lines are shown.
- CURSOR_XYZ: X,Y, and Z lines are displayed. The default.
- CURSOR_CUBE: A cube from the origing to the point is shown.
- CURSOR_CROSSHAIR: Lines parallel to the axes that cross at the given point are shown.
- Specified by:
setCursorTypein interfaceVisualizationHints
-
getCursorType
public final int getCursorType()- Specified by:
getCursorTypein interfaceVisualizationHints
-
setDecorationType
public void setDecorationType(int _value) Description copied from interface:VisualizationHintsTypes of decoration displayed. One of the following- DECORATION_NONE: No decoration
- DECORATION_AXES: Display labelled axes
- DECORATION_CUBE: Display the bounding box
- Specified by:
setDecorationTypein interfaceVisualizationHints- Parameters:
_value- the desired value
-
getDecorationType
public final int getDecorationType()- Specified by:
getDecorationTypein interfaceVisualizationHints
-
setAxesLabels
Description copied from interface:VisualizationHintsSets the labels for the X, Y, and Z axes (when the axes are visible).- Specified by:
setAxesLabelsin interfaceVisualizationHints- Parameters:
labels- a String[] array with at least three elements
-
getAxesLabels
- Specified by:
getAxesLabelsin interfaceVisualizationHints
-
setRemoveHiddenLines
public void setRemoveHiddenLines(boolean _value) Description copied from interface:VisualizationHintsWhether the panel should try to remove hidden lines- Specified by:
setRemoveHiddenLinesin interfaceVisualizationHints- Parameters:
_value- the desired value
-
isRemoveHiddenLines
public final boolean isRemoveHiddenLines()- Specified by:
isRemoveHiddenLinesin interfaceVisualizationHints
-
setAllowQuickRedraw
public void setAllowQuickRedraw(boolean _value) Description copied from interface:VisualizationHintsWhether the panel can draw quickly when it is dragged for a new view point- Specified by:
setAllowQuickRedrawin interfaceVisualizationHints- Parameters:
_value- the desired value
-
isAllowQuickRedraw
public final boolean isAllowQuickRedraw()- Specified by:
isAllowQuickRedrawin interfaceVisualizationHints
-
setUseColorDepth
public void setUseColorDepth(boolean _value) Description copied from interface:VisualizationHintsWhether the panel should display far objects darker- Specified by:
setUseColorDepthin interfaceVisualizationHints- Parameters:
_value- the desired value
-
isUseColorDepth
public final boolean isUseColorDepth()- Specified by:
isUseColorDepthin interfaceVisualizationHints
-
setShowCoordinates
public void setShowCoordinates(int location) Description copied from interface:VisualizationHintsAt 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
- Specified by:
setShowCoordinatesin interfaceVisualizationHints
-
getShowCoordinates
public int getShowCoordinates()- Specified by:
getShowCoordinatesin interfaceVisualizationHints
-
setXFormat
Description copied from interface:VisualizationHintsSets the format to display the X coordinate when dragging a point- Specified by:
setXFormatin interfaceVisualizationHints- Parameters:
format- String parameter for a new java.text.DecimalFormat
-
getXFormat
- Specified by:
getXFormatin interfaceVisualizationHints
-
setYFormat
Description copied from interface:VisualizationHintsSets the format to display the Y coordinate when dragging a point- Specified by:
setYFormatin interfaceVisualizationHints- Parameters:
format- String parameter for a new java.text.DecimalFormat
-
getYFormat
- Specified by:
getYFormatin interfaceVisualizationHints
-
setZFormat
Description copied from interface:VisualizationHintsSets the format to display the Z coordinate when dragging a point- Specified by:
setZFormatin interfaceVisualizationHints- Parameters:
format- String parameter for a new java.text.DecimalFormat
-
getZFormat
- Specified by:
getZFormatin interfaceVisualizationHints
-
copyFrom
Description copied from interface:VisualizationHintsCopies its data from another set of hints- Specified by:
copyFromin interfaceVisualizationHints
-
getLoader
-