Objects of type 'Component' are image document components, which include annotations ( text, box, line, etc. ), image displays, masks, and regions of interest. Components may be placed on a page, in an image display, or in a group, each of which is represented by a type of component. The containing component is referred to as the parent component, and it determines the coordinate system in which child locations and sizes are specified ( the coordinate system of a container is its child coordinate system, and the child's local coordinate system ). Other useful coordinate systems are
If a method requires or returns coordinates, they are usually specified
in the component's local coordinate system. However,
if the method ends in 'InView'
the coordinates are in
view coordinates. Note that none of the methods
that set coordinates use view coordinates. Thus,
to manipulate the view of a component, use the methods ending
in 'InView
' to get coordinates,
and ImageDocument methods such as ImageDocumentSetRectInView
to position the component.
The annotation type, used by the function NewAnnotation
and the method ComponentGetType
,
can be one of the following numbers
The control points referred to in several of the methods can be one of
void ComponentAddChildAfter( Component parent,
Component child, Component annot_pos )
void ComponentAddChildAtBeginning( Component parent,
Component child )
void ComponentAddChildAtEnd( Component parent,
Component child )
void ComponentAddChildBefore( Component parent,
Component child, Component annot_pos )
Component ComponentAddNewComponent( Component
parent, Number type, Number f1, Number f2,
Number f3, Number f4 )
Component ComponentClone( Component comp, Boolean
doDeepCopy )
Number ComponentCountChildren( Component comp
)
Number ComponentCountChildrenOfType( Component comp,
Number type )
void ComponentGetBoundingRect( Component comp,
NumberVariable t, NumberVariable l, NumberVariable b,
NumberVariable r )
void ComponentGetBoundingRectInView( Component comp,
NumberVariable t, NumberVariable l, NumberVariable b,
NumberVariable r )
Component ComponentGetChild( Component comp, Number
index )
Component ComponentGetChildByID( Component comp,
Number ID )
void ComponentGetChildToLocalTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
void ComponentGetChildToPageTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
void ComponentGetChildToViewTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
void ComponentGetChildToWindowTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
Boolean ComponentGetControlPoint( Component comp,
Number loc, NumberVariable x, NumberVariable y )
Component ComponentGetDescendentByID( Component
comp, Number ID )
Number ComponentGetDrawingMode( Component comp
)
Number ComponentGetFillMode( Component comp )
Number ComponentGetFontAttributes( Component comp
)
String ComponentGetFontFaceName( Component comp
)
void ComponentGetFontInfo( Component comp, String
faceName, NumberVariable attributes, NumberVariable size,
NumberVariable text_encoding )
void ComponentGetFontInfo( Component comp, String
faceName, NumberVariable attributes, NumberVariable size
)
Number ComponentGetFontSize( Component comp )
Number ComponentGetID( Component annot )
ImageDocument ComponentGetImageDocument( Component
annot )
void ComponentGetLocalToPageTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
void ComponentGetLocalToViewTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
void ComponentGetLocalToWindowTransform( Component
comp, NumberVariable off_x, NumberVariable off_y,
NumberVariable scale_x, NumberVariable scale_y )
Component ComponentGetNthChildOfType( Component
comp, Number type, Number index )
Component ComponentGetParentComponent( Component
comp )
ImageDisplay ComponentGetParentImageDisplay( Component
comp )
void ComponentGetRect( Component comp,
NumberVariable top, NumberVariable left, NumberVariable
bottom, NumberVariable right )
void ComponentGetRectInView( Component comp,
NumberVariable top, NumberVariable left, NumberVariable
bottom, NumberVariable right )
TagGroup ComponentGetTagGroup( Component annot
)
Number ComponentGetType( Component annot )
Boolean ComponentIsOfType( Component annot, Number
type )
Boolean ComponentIsSelected( Component comp )
Boolean ComponentIsValid( Component annot )
void ComponentOffsetControlPoint( Component comp,
Number loc, Number x, Number y, Number
restrict_style )
void ComponentPositionAroundPoint( Component comp,
Number new_x, Number new_y, Number rel_x, Number
rel_y, Boolean horz, Boolean vert )
void ComponentRemoveFromParent( Component comp
)
void ComponentSetControlPoint( Component comp,
Number loc, Number x, Number y, Number
restrict_style )
void ComponentSetDrawingMode( Component comp,
Number mode )
void ComponentSetFillMode( Component comp, Number
mode )
void ComponentSetFontAttributes( Component comp,
Number attributes )
void ComponentSetFontFaceName( Component comp,
String face_name )
void ComponentSetFontInfo( Component comp, String
face_name, Number attributes, Number size, Number
text_encoding )
void ComponentSetFontInfo( Component comp, String
face_name, Number attributes, Number size )
void ComponentSetFontSize( Component comp, Number
size )
void ComponentSetRect( Component comp, Number
top, Number left, Number bottom, Number right
)
void ComponentSetSelected( Component comp, Boolean
select )
void ComponentTransformCoordinates( Component comp,
Number off_x, Number off_y, Number scale_x, Number
scale_y )
Component =( Component, ! )
Component =( Component, Component )
Component ComponentNullify( ! )
void GroupAnnotationUngroup( Component comp )
Component ImageDocumentGetComponentByID( ImageDocument
imgDoc, Number id )
Component ImageDocumentGetRootComponent( ImageDocument
imgDoc )
Component NewArrowAnnotation( Number top, Number
left, Number bottom, Number right )
Component NewBoxAnnotation( Number top, Number
left, Number bottom, Number right )
Component NewComponent( Number type, Number
f1, Number f2, Number f3, Number f4 )
Component NewDoubleArrowAnnotation( Number top,
Number left, Number bottom, Number right )
Component NewGroupAnnotation( )
Component NewLineAnnotation( Number top, Number
left, Number bottom, Number right )
Component NewOvalAnnotation( Number top, Number
left, Number bottom, Number right )
Component NewPictureAnnotation( Number top, Number
left, Number bottom, Number right, Number
picture )
Component NewTextAnnotation( Number left, Number
top, String text, Number size )
void PictureAnnotationSetPicture( Component comp,
Number picture )
Number TextAnnotationGetAlignment( Component comp
)
void TextAnnotationGetFixedPoint( Component comp,
NumberVariable x, NumberVariable y )
Number TextAnnotationGetResizeStyle( Component comp
)
String TextAnnotationGetText( Component comp
)
void TextAnnotationSetAlignment( Component comp,
Number alignment )
void TextAnnotationSetFixedPoint( Component comp,
Number x, Number y )
void TextAnnotationSetResizeStyle( Component comp,
Number style )
void TextAnnotationSetText( Component comp, String
text )