Package edu.cnu.mdi.mdi3D.item3D
Class Axes3D
java.lang.Object
edu.cnu.mdi.mdi3D.item3D.Item3D
edu.cnu.mdi.mdi3D.item3D.Axes3D
A composite set of three Cartesian
Axis3D children (x, y, and z),
built from either explicit axis limits or a [xmin, xmax, ymin, ymax,
zmin, zmax] array. Axes3D itself draws nothing; each child axis
draws its own line, tick marks, and labels.-
Field Summary
Fields inherited from class edu.cnu.mdi.mdi3D.item3D.Item3D
_panel3D, FILLALPHA, FILLCOLOR, FONT, LINE_WIDTH, LINEALPHA, LINECOLOR, TEXT_COLOR -
Constructor Summary
ConstructorsConstructorDescriptionAxes3D(Panel3D panel3D, float[] limits, String[] labels, float zoff, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axesAxes3D(Panel3D panel3D, float[] limits, String[] labels, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axesAxes3D(Panel3D panel3D, float xmin, float xmax, float ymin, float ymax, float zmin, float zmax, String[] labels, float zoff, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axesAxes3D(Panel3D panel3D, float xmin, float xmax, float ymin, float ymax, float zmin, float zmax, String[] labels, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axes -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(com.jogamp.opengl.GLAutoDrawable drawable) The custom drawing methodMethods inherited from class edu.cnu.mdi.mdi3D.item3D.Item3D
addChild, defaultProperties, dispose, disposeItem, drawItem, get, getChildren, getColor, getFillAlpha, getFillColor, getFloat, getFont, getFont, getInt, getLineAlpha, getLineColor, getLineWidth, getPanel3D, getParent, getSortPoint, getString, getTextColor, isVisible, put, removeChild, setAlphaOfColor, setFillAlpha, setFillColor, setFont, setLineAlpha, setLineColor, setLineWidth, setTextColor, setVisible
-
Constructor Details
-
Axes3D
public Axes3D(Panel3D panel3D, float[] limits, String[] labels, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axes- Parameters:
panel3D- the owner 3D panellimits- the limits as [xmin, xmax, ymin, ymax, zmin, zmax]labels- axis labels as [xLabel, yLabel, zLabel]; may benull, or individual entries may benull, to use the default "x"/"y"/"z"color- the colorlineWidth- the line widthnumTicksX- the number of ticks in xnumTicksY- the number of major ticks in ynumTicksZ- the number of major ticks in ztickColor- the color of the tickstextColor- color of axis labelsfont- the text fontnumDec- the number of decimals to display- Throws:
ArrayIndexOutOfBoundsException- iflimitshas fewer than 6 elements, orlabelsis non-null but has fewer than 3 elementsNullPointerException- iflimitsisnull
-
Axes3D
public Axes3D(Panel3D panel3D, float[] limits, String[] labels, float zoff, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axes- Parameters:
panel3D- the owner 3D panellimits- the limits as [xmin, xmax, ymin, ymax, zmin, zmax]labels- axis labels as [xLabel, yLabel, zLabel]; may benull, or individual entries may benull, to use the default "x"/"y"/"z"zoff- a z offsetcolor- the colorlineWidth- the line widthnumTicksX- the number of ticks in xnumTicksY- the number of major ticks in ynumTicksZ- the number of major ticks in ztickColor- the color of the tickstextColor- color of axis labelsfont- the text fontnumDec- the number of decimals to display- Throws:
ArrayIndexOutOfBoundsException- iflimitshas fewer than 6 elements, orlabelsis non-null but has fewer than 3 elementsNullPointerException- iflimitsisnull
-
Axes3D
public Axes3D(Panel3D panel3D, float xmin, float xmax, float ymin, float ymax, float zmin, float zmax, String[] labels, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axes- Parameters:
panel3D- the owner 3D panelxmin- the minimum value for xxmax- the maximum value for xymin- the minimum value for yymax- the maximum value for yzmin- the minimum value for zzmax- the maximum value for zlabels- axis labels as [xLabel, yLabel, zLabel]; may benull, or individual entries may benull, to use the default "x"/"y"/"z"color- the colorlineWidth- the line widthnumTicksX- the number of ticks in xnumTicksY- the number of major ticks in ynumTicksZ- the number of major ticks in ztickColor- the color of the tickstextColor- color of axis labelsfont- the text fontnumDec- the number of decimals to display
-
Axes3D
public Axes3D(Panel3D panel3D, float xmin, float xmax, float ymin, float ymax, float zmin, float zmax, String[] labels, float zoff, Color color, float lineWidth, int numTicksX, int numTicksY, int numTicksZ, Color tickColor, Color textColor, Font font, int numDec) A set of Cartesian axes- Parameters:
panel3D- the owner 3D panelxmin- the minimum value for xxmax- the maximum value for xymin- the minimum value for yymax- the maximum value for yzmin- the minimum value for zzmax- the maximum value for zlabels- axis labels as [xLabel, yLabel, zLabel]; may benull, or individual entries may benull, to use the default "x"/"y"/"z"zoff- a z offsetcolor- the colorlineWidth- the line widthnumTicksX- the number of ticks in xnumTicksY- the number of major ticks in ynumTicksZ- the number of major ticks in ztickColor- the color of the tickstextColor- color of axis labelsfont- the text fontnumDec- the number of decimals to display
-
-
Method Details