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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(VisualizationHints hints) Copies its data from another set of hintsString[]
int
int
int
boolean
boolean
boolean
void
setAllowQuickRedraw
(boolean allow) Whether the panel can draw quickly when it is dragged for a new view pointvoid
setAxesLabels
(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 linesvoid
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 meansvoid
setUseColorDepth
(boolean useIt) Whether the panel should display far objects darkervoid
setXFormat
(String format) Sets the format to display the X coordinate when dragging a pointvoid
setYFormat
(String format) Sets the format to display the Y coordinate when dragging a pointvoid
setZFormat
(String format) Sets the format to display the Z coordinate when dragging a point
-
Field Details
-
DECORATION_NONE
static final int DECORATION_NONE- See Also:
-
DECORATION_AXES
static final int DECORATION_AXES- See Also:
-
DECORATION_CUBE
static final int DECORATION_CUBE- See Also:
-
CURSOR_NONE
static final int CURSOR_NONE- See Also:
-
CURSOR_XYZ
static final int CURSOR_XYZ- See Also:
-
CURSOR_CUBE
static final int CURSOR_CUBE- See Also:
-
CURSOR_CROSSHAIR
static final int CURSOR_CROSSHAIR- See Also:
-
-
Method Details
-
setDecorationType
void setDecorationType(int type) Types of decoration displayed. One of the following- DECORATION_NONE: No decoration
- DECORATION_AXES: Display labelled axes
- DECORATION_CUBE: Display the bounding box
- Parameters:
type
- the desired value
-
getDecorationType
int getDecorationType() -
setAxesLabels
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
String[] getAxesLabels() -
setCursorType
void setCursorType(int type) The 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.
- 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:- DrawingPanel3D.BOTTOM_LEFT
- DrawingPanel3D.BOTTOM_RIGHT
- DrawingPanel3D.TOP_RIGHT
- DrawingPanel3D.TOP_LEFT
-
getShowCoordinates
int getShowCoordinates() -
setXFormat
Sets the format to display the X coordinate when dragging a point- Parameters:
format
- String parameter for a new java.text.DecimalFormat
-
getXFormat
String getXFormat() -
setYFormat
Sets the format to display the Y coordinate when dragging a point- Parameters:
format
- String parameter for a new java.text.DecimalFormat
-
getYFormat
String getYFormat() -
setZFormat
Sets the format to display the Z coordinate when dragging a point- Parameters:
format
- String parameter for a new java.text.DecimalFormat
-
getZFormat
String getZFormat() -
copyFrom
Copies its data from another set of hints- Parameters:
hints
-
-