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

Constructor Index

 o J2Ci.jDVPSGraphicObject()
Constructor
 o J2Ci.jDVPSGraphicObject(long)
Constructor for attaching an existing C++-Object.
 o J2Ci.jDVPSGraphicObject(jDVPSGraphicObject)
Copy-Constructor

Method Index

 o getAnnotationUnits()
Gets the graphic annotation units.
 o getGraphicType()
Gets the graphic type of this graphic object.
 o getNumberOfPoints()
Gets the number of graphic points.
 o getPoint(int, jDoubleByRef, jDoubleByRef)
Gets one point from the graphic data.
 o isFilled()
Checks if the graphic is filled.
 o setData(int, float[], int)
Sets the graphic data for this graphic object.
 o setFilled(boolean)
Sets the graphic filled status for the graphic object.
 o setGraphicType(int)
Sets the graphic type for the graphic object

Constructors

 o jDVPSGraphicObject
protected jDVPSGraphicObject()
Constructor

 o jDVPSGraphicObject
public jDVPSGraphicObject(long attachAdr)
Constructor for attaching an existing C++-Object. FOR INTERNAL USE ONLY!

Parameters:
attachAdr - Address of C++-Object
 o jDVPSGraphicObject
public jDVPSGraphicObject(jDVPSGraphicObject copy)
Copy-Constructor

Parameters:
copy - DVPSGraphicObject-Object to copy

Methods

 o getAnnotationUnits
public native int getAnnotationUnits()
Gets the graphic annotation units.

Returns:
annotation units (from jDVPSannotationUnit).
 o getGraphicType
public native int getGraphicType()
Gets the graphic type of this graphic object.

Returns:
graphic type (from jDVPSGraphicType).
 o getNumberOfPoints
public native int getNumberOfPoints()
Gets the number of graphic points.

Returns:
number of graphic points
 o 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).
 o isFilled
public native boolean isFilled()
Checks if the graphic is filled.

Returns:
true if graphic is filled.
 o 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).
 o 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).
 o 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