Class J2Ci.jDVPSGraphicObject
All Packages Class Hierarchy This Package Previous Next Index
Class J2Ci.jDVPSGraphicObject
Object
|
+----J2Ci.jDVPSGraphicObject
- public class jDVPSGraphicObject
- extends Object
A jDVPSGraphicObject is the Java-sided class for the C++-Class
DVPSGraphicObject.
- Author:
- Andreas Schröter
-
J2Ci.jDVPSGraphicObject()
- Constructor
-
J2Ci.jDVPSGraphicObject(long)
- Constructor for attaching an existing C++-Object.
-
J2Ci.jDVPSGraphicObject(jDVPSGraphicObject)
- Copy-Constructor
-
getAnnotationUnits()
-
Gets the graphic annotation units.
-
getGraphicType()
-
Gets the graphic type of this graphic object.
-
getNumberOfPoints()
-
Gets the number of graphic points.
-
getPoint(int, jDoubleByRef, jDoubleByRef)
-
Gets one point from the graphic data.
-
isFilled()
-
Checks if the graphic is filled.
-
setData(int, float[], int)
-
Sets the graphic data for this graphic object.
-
setFilled(boolean)
-
Sets the graphic filled status for the graphic object.
-
setGraphicType(int)
-
Sets the graphic type for the graphic object
jDVPSGraphicObject
protected jDVPSGraphicObject()
- Constructor
jDVPSGraphicObject
public jDVPSGraphicObject(long attachAdr)
- Constructor for attaching an existing C++-Object. FOR INTERNAL USE ONLY!
- Parameters:
- attachAdr - Address of C++-Object
jDVPSGraphicObject
public jDVPSGraphicObject(jDVPSGraphicObject copy)
- Copy-Constructor
- Parameters:
- copy - DVPSGraphicObject-Object to copy
getAnnotationUnits
public native int getAnnotationUnits()
- Gets the graphic annotation units.
- Returns:
- annotation units (from jDVPSannotationUnit).
getGraphicType
public native int getGraphicType()
- Gets the graphic type of this graphic object.
- Returns:
- graphic type (from jDVPSGraphicType).
getNumberOfPoints
public native int getNumberOfPoints()
- Gets the number of graphic points.
- Returns:
- number of graphic points
getPoint
public native int getPoint(int idx,
jDoubleByRef x,
jDoubleByRef y)
- Gets one point from the graphic data.
- Parameters:
- idx - index of the graphic point, must be < getNumberOfPoints();
- x - upon success the x value of the point is returned in this parameter.
Must be created before passing to this method!
- y - upon success the y value of the point is returned in this parameter
Must be created before passing to this method!
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
isFilled
public native boolean isFilled()
- Checks if the graphic is filled.
- Returns:
- true if graphic is filled.
setData
public native int setData(int number,
float data,
int unit)
- Sets the graphic data for this graphic object.
- Parameters:
- number - number of graphic points in parameter "data"
- data - pointer to an array of Float32 values with a size of (at least)
2*number. The values are copied into the graphic object.
- unit - the graphic annotation units for this data (from jDVPSannotationUnit).
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
setFilled
public native int setFilled(boolean filled)
- Sets the graphic filled status for the graphic object.
- Parameters:
- isFilled - true if graphic is filled, false otherwise.
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
setGraphicType
public native int setGraphicType(int gtype)
- Sets the graphic type for the graphic object
- Parameters:
- gtype - the graphic type (from jDVPSGraphicType).
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
All Packages Class Hierarchy This Package Previous Next Index