Class J2Ci.jDVPSTextObject
All Packages Class Hierarchy This Package Previous Next Index
Class J2Ci.jDVPSTextObject
Object
|
+----J2Ci.jDVPSTextObject
- public class jDVPSTextObject
- extends Object
A jDVPSTextObject is the Java-sided class for the C++-Class
DVPSTextObject.
- Author:
- Andreas Schröter
-
J2Ci.jDVPSTextObject()
- Constructor - not allowed!
-
J2Ci.jDVPSTextObject(long)
- Constructor for attaching an existing C++-Object.
-
J2Ci.jDVPSTextObject(jDVPSTextObject)
- Copy-Constructor
-
anchorPointIsVisible()
-
Gets the anchor point visibility
May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
-
getAnchorPointAnnotationUnits()
-
Gets the anchor point annotation units.
-
getAnchorPoint_x()
-
Gets the anchor point x value.
-
getAnchorPoint_y()
-
Gets the anchor point y value.
-
getBoundingBoxAnnotationUnits()
-
Gets the bounding box annotation units.
-
getBoundingBoxBRHC_x()
-
Gets the bounding box BRHC x value.
-
getBoundingBoxBRHC_y()
-
Gets the bounding box BRHC y value.
-
getBoundingBoxTLHC_x()
-
Gets the bounding box TLHC x value.
-
getBoundingBoxTLHC_y()
-
Gets the bounding box TLHC y value.
-
getCharset(int)
-
Gets the specific character set for this text object.
-
getCharsetString()
-
Gets the specific character set string for this text object.
-
getText()
-
Gets the unformatted text value for this text object.
-
haveAnchorPoint()
-
Checks if this text object contains an anchor point.
-
haveBoundingBox()
-
Checks if this text object contains bounding box.
-
removeAnchorPoint()
-
Removes any anchor point from the text object.
-
removeBoundingBox()
-
Removes any bounding box from the text object.
-
setAnchorPoint(double, double, int, boolean)
-
Sets an anchor point for this text object.
-
setBoundingBox(double, double, double, double, int)
-
Sets bounding box for this text object.
-
setCharset(int, int)
-
Sets the specific character set for this text object.
-
setText(String)
-
Assigns a new "unformatted text value" for this text object.
jDVPSTextObject
protected jDVPSTextObject()
- Constructor - not allowed!
jDVPSTextObject
public jDVPSTextObject(long attachAdr)
- Constructor for attaching an existing C++-Object. FOR INTERNAL USE ONLY!
- Parameters:
- attachAdr - Address of C++-Object
jDVPSTextObject
public jDVPSTextObject(jDVPSTextObject copy)
- Copy-Constructor
- Parameters:
- copy - TextObject-Object to copy
anchorPointIsVisible
public native boolean anchorPointIsVisible()
- Gets the anchor point visibility
May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
- Returns:
- true if anchor point is visible
getAnchorPointAnnotationUnits
public native int getAnchorPointAnnotationUnits()
- Gets the anchor point annotation units.
May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
- Returns:
- anchor point annotation units (from jDVPSannotationUnit).
getAnchorPoint_x
public native double getAnchorPoint_x()
- Gets the anchor point x value.
May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
- Returns:
- anchor point x value
getAnchorPoint_y
public native double getAnchorPoint_y()
- Gets the anchor point y value.
May only be called when an anchor point is present (haveAnchorPoint()==OFTrue)
- Returns:
- anchor point y value
getBoundingBoxAnnotationUnits
public native int getBoundingBoxAnnotationUnits()
- Gets the bounding box annotation units.
May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
- Returns:
- bounding box annotation units (from jDVPSannotationUnit).
getBoundingBoxBRHC_x
public native double getBoundingBoxBRHC_x()
- Gets the bounding box BRHC x value.
May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
- Returns:
- bounding box BRHC x value
getBoundingBoxBRHC_y
public native double getBoundingBoxBRHC_y()
- Gets the bounding box BRHC y value.
May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
- Returns:
- bounding box BRHC y value
getBoundingBoxTLHC_x
public native double getBoundingBoxTLHC_x()
- Gets the bounding box TLHC x value.
May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
- Returns:
- bounding box TLHC x value
getBoundingBoxTLHC_y
public native double getBoundingBoxTLHC_y()
- Gets the bounding box TLHC y value.
May only be called when a bounding box is present (haveBoundingBox()==OFTrue)
- Returns:
- bounding box TLHC y value
getCharset
public native int getCharset(int higherLevelCharset)
- Gets the specific character set for this text object.
- Parameters:
- higherLevelCharset - specific character set of the presentation state
object in which this text object is embedded. If this parameter is
not passed (i.e. the default value is passed), this method assumes
that the presentation state object contains no specific character set(from jDVPScharacterSet).
- Returns:
- character set identifier (from jDVPScharacterSet).
getCharsetString
public native java.lang.String getCharsetString()
- Gets the specific character set string for this text object.
- Returns:
- character set if present, null otherwise
getText
public native java.lang.String getText()
- Gets the unformatted text value for this text object.
- Returns:
- unformatted text value
haveAnchorPoint
public native boolean haveAnchorPoint()
- Checks if this text object contains an anchor point.
- Returns:
- true if anchor point present.
haveBoundingBox
public native boolean haveBoundingBox()
- Checks if this text object contains bounding box.
- Returns:
- true if bounding box present.
removeAnchorPoint
public native void removeAnchorPoint()
- Removes any anchor point from the text object.
Attention: A text object must always contain either anchor point, bounding box
or both. This property is not asserted by the text object itself.
removeBoundingBox
public native void removeBoundingBox()
- Removes any bounding box from the text object.
Attention: A text object must always contain either anchor point, bounding box
or both. This property is not asserted by the text object itself.
setAnchorPoint
public native int setAnchorPoint(double x,
double y,
int unit,
boolean isVisible)
- Sets an anchor point for this text object.
- Parameters:
- x - anchor point X value
- y - anchor point Y value
- unit - anchor point annotation units (pixel/display) (from jDVPSannotationUnit).
- isVisible - anchor point visibility
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
setBoundingBox
public native int setBoundingBox(double TLHC_x,
double TLHC_y,
double BRHC_x,
double BRHC_y,
int unit)
- Sets bounding box for this text object.
- Parameters:
- TLHC_x - bounding box top-lefthand corner X value
- TLHC_x - bounding box top-lefthand corner Y value
- BRHC_x - bounding box bottom-righthand corner X value
- BRHC_x - bounding box bottom-righthand corner Y value
- unit - bounding box annotation units (pixel/display) (from jDVPSannotationUnit)
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
setCharset
public native int setCharset(int charset,
int higherLevelCharset)
- Sets the specific character set for this text object.
- Parameters:
- charset - the new character set for this text object (from jDVPScharacterSet).
- higherLevelCharset - the specific character set of the
presentation state in which the text object is embedded.
If this parameter is _not_ passed (i.e. the default value is passed),
this method assumes that the main presentation state might contain an unknown
character set and always explicitly sets the character set for the text object.
If this parameter is passed, it is used to optimize the specific
character set definition in the text object (from jDVPScharacterSet).
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
setText
public native int setText(String text)
- Assigns a new "unformatted text value" for this text object.
- Parameters:
- text - unformatted text value. Must not be NULL or empty string.
- Returns:
- EC_Normal if successful, an error code otherwise (from jE_Condition).
All Packages Class Hierarchy This Package Previous Next Index