|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.GraphObj
com.quinncurtis.chart3djava.ChartSymbol3D
public class ChartSymbol3D
The ChartSymbol3D class creates 3D scatter plot symbols in the SimpleScatterPlot and LineMarkerPlot, and DataCursor plot types.
Field Summary |
---|
Constructor Summary | |
---|---|
ChartSymbol3D()
The default ChartSymbol3D constructor. |
|
ChartSymbol3D(PhysicalCoordinates transform)
This constructor creates a new ChartSymbol3D object using the specified scale, GeneralPath and attributes. |
|
ChartSymbol3D(PhysicalCoordinates transform,
int nsymbol,
ChartAttribute attrib)
This constructor creates a new ChartSymbol3D object using the specified scale, symbol and attributes. |
Method Summary | |
---|---|
boolean |
checkIntersection(ChartPoint3D testpoint,
NearestPointData np)
The CheckIntersection method. |
java.lang.Object |
clone()
Returns an object that is a clone of this ChartSymbol3D object. |
void |
copy(ChartSymbol3D source)
Copies the source ChartSymbol3D object. |
void |
draw(java.awt.Graphics2D g2)
The draw method for this class. |
void |
drawArrowSolidObject3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D arrow shape and adds it to the objects 3D object display list. |
void |
drawComplexObject3D(ChartPoint3D[] solid,
int planes,
ChartAttribute attrib,
int coordtype)
Generic solid routine that adds it to the objects 3D object display list. |
void |
drawConeSolidObject3D(double x,
double y,
double z,
double r,
double h,
ChartAttribute cylinderattrib,
int coordtype)
Creates a 3D cone and adds it to the objects 3D object display list. |
void |
drawCubeSolidObject3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D cube and adds it to the objects 3D object display list. |
void |
drawCylinderSolidObject3D(double x,
double y,
double z,
double r,
double h,
ChartAttribute cylinderattrib,
int coordtype)
Creates a 3D cylinder and adds it to the objects 3D object display list. |
void |
drawDiamondSolidObject3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D diamond shape and adds it to the objects 3D object display list. |
void |
drawHBar3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D horizontal bar and adds it to the objects 3D object display list. |
void |
drawHourglassSolidObject3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D hourglass-like shape and adds it to the objects 3D object display list. |
void |
drawPlusSolidObject3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D plus shaped object and adds it to the objects 3D object display list. |
void |
drawPrism3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D prism and adds it to the objects 3D object display list. |
void |
drawPyramidSolidObject3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D pyramid shape and adds it to the objects 3D object display list. |
void |
drawSphereSolidObject3D(double x,
double y,
double z,
double r,
ChartAttribute cylinderattrib,
int coordtype)
Creates a 3D sphere and adds it to the objects 3D object display list. |
void |
drawVBar3D(double x,
double y,
double z,
double w,
double h,
double d,
ChartAttribute attrib,
int coordtype)
Creates a 3D vertical bar and adds it to the objects 3D object display list. |
int |
errorCheck(int nerror)
Checks the ChartSymbol3D object for common errors. |
boolean |
getFlatDrawingMode()
Get flag that specifies if the object is 3D or not. |
int |
getSymbolNumber()
Returns the symbol number. |
double |
getSymbolSize()
Returns the symbol size of an ChartSymbol3D object. |
void |
initChartSymbol3D(int nsymbol,
ChartAttribute attrib)
This method initializes the properties of a chart symbol. |
void |
initDefaults()
Initializes default values for the class. |
void |
setFlatDrawingMode(boolean value)
Set flag that specifies if the object is 3D or not. |
void |
setSymbolNumber(int symbol)
Sets the symbol number. |
void |
setSymbolSize(double size)
Sets the symbol size of an ChartSymbol3D object. |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartSymbol3D()
public ChartSymbol3D(PhysicalCoordinates transform, int nsymbol, ChartAttribute attrib)
transform
- The symbol object is placed in the coordinate system defined by transform.nsymbol
- The symbol number. Use one of chart symbol constants: HBAR3D, VBAR3D, CUBE3D, PLUS3D, DIAMOND3D,
PYRAMID3D, HOURGLASS3D, ARROW3D, CYLINDER3D, SPHERE3D.attrib
- Specifies the attributes (line and fill color) for the symbol.public ChartSymbol3D(PhysicalCoordinates transform)
transform
- The symbol object is placed in the coordinate system defined by transform.Method Detail |
---|
public void initDefaults()
public int errorCheck(int nerror)
errorCheck
in class GraphObj
nerror
- Current error state
public void copy(ChartSymbol3D source)
source
- The source ChartSymbol3D object.public java.lang.Object clone()
clone
in class GraphObj
public void initChartSymbol3D(int nsymbol, ChartAttribute attrib)
nsymbol
- The symbol number. Use one of chart symbol constants:
HBAR3D, VBAR3D, CUBE3D, PLUS3D, DIAMOND3D, PYRAMID3D, HOURGLASS3D, ARROW3D, CYLINDER3D, SPHERE3D.attrib
- Specifies the attributes (line and fill color) for the symbol.public void draw(java.awt.Graphics2D g2)
draw
in class GraphObj
g2
- The graphics context.public boolean checkIntersection(ChartPoint3D testpoint, NearestPointData np)
checkIntersection
in class GraphObj
testpoint
- The test pointnp
- Nearest point information for data based objects.
public void setSymbolSize(double size)
size
- The symbol size, measured in window device coordinates, sets the field symbolSize.public double getSymbolSize()
public int getSymbolNumber()
public void setSymbolNumber(int symbol)
symbol
- Sets the symbol number.public void drawCubeSolidObject3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawPrism3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawHBar3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawVBar3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawDiamondSolidObject3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawPyramidSolidObject3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawCylinderSolidObject3D(double x, double y, double z, double r, double h, ChartAttribute cylinderattrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.r
- The radius of the object.h
- The height of the object.cylinderattrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawConeSolidObject3D(double x, double y, double z, double r, double h, ChartAttribute cylinderattrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.r
- The radius of the object.h
- The height of the object.cylinderattrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawSphereSolidObject3D(double x, double y, double z, double r, ChartAttribute cylinderattrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.r
- The radius of the object.cylinderattrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawPlusSolidObject3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawArrowSolidObject3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawHourglassSolidObject3D(double x, double y, double z, double w, double h, double d, ChartAttribute attrib, int coordtype)
x
- The x-position of the object.y
- The y-position of the object.z
- The z-position of the object.w
- The width of the object.h
- The height of the object.d
- The depth of the object.attrib
- The drawing attribute of the object.coordtype
- The coordinate type of the object (PHYS_POS).public void drawComplexObject3D(ChartPoint3D[] solid, int planes, ChartAttribute attrib, int coordtype)
solid
- An array of ChartPoint3D objects representing the corners of the solid.planes
- The number of planes in the 3D objectattrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.public void setFlatDrawingMode(boolean value)
value
- Set true if object is to be drawn in 2D.public boolean getFlatDrawingMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |