Class Annotation (version 0.18)Description: This class implements an "annotation object" Annotation objects provide a way to attach measurements or descriptive informations to a layout view. Annotation objects can appear as rulers for example. Annotation objects can be configured in different ways using the styles provided. By configuring an annotation object properly, it can appear as a rectangle or a plain line for example.
Method Overview
[const] bool !=( Annotation )Description: Inequality operator
[const] bool ==( Annotation )Description: Equality operator
[static] int angle_anyDescription: angle_any code used by the angle_constraint method
[const] int angle_constraintDescription: Return the angle constraint attribute. See angle_constraint= for a more detailed description.
angle_constraint=( int flag )Description: Set the angle constraint attribute. This attribute controls if an angle constraint is applied when moving one of the ruler's points. The angle_... values can be used for this purpose.
[static] int angle_diagonalDescription: angle_diagonal code used by the angle_constraint method
[static] int angle_globalDescription: angle_global code used by the angle_constraint method. This code will tell the ruler or marker to use the angle constraint defined globally.
[static] int angle_horizontalDescription: angle_horizontal code used by the angle_constraint method
[static] int angle_orthoDescription: angle_ortho code used by the angle_constraint method
[static] int angle_verticalDescription: angle_vertical code used by the angle_constraint method
assign( Annotation other )Description: Assign the contents of another object to self This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.
destroyDescription: Explicitly destroy the object Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.
[const] bool destroyedDescription: Tell, if the object was destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.
[const] Annotation dupDescription: Creates a copy of self.
[const] string fmtDescription: Returns the format used for the label
fmt=( string format )Description: Set the format used for the label
[const] string fmt_xDescription: Returns the format used for the x-axis label
fmt_x=( string format )Description: Set the format used for the x-axis label X-axis labels are only used for styles that have a horizontal component.
[const] string fmt_yDescription: Returns the format used for the y-axis label
fmt_y=( string format )Description: Set the format used for the y-axis label Y-axis labels are only used for styles that have a vertical component.
[static] Annotation newDescription: Create a new ruler or marker with the default attributes
[const] int outlineDescription: Returns the outline style of the annotation object
outline=( int outline )Description: Set the outline style used for drawing the annotation object The outline_... values can be used for defining the annotation object's outline. The outline style determines what components are drawn.
[static] int outline_boxDescription: outline_box code used by the outline method
[static] int outline_diagDescription: outline_diag code used by the outline method
[static] int outline_diag_xyDescription: outline_diag_xy code used by the outline method
[static] int outline_diag_yxDescription: outline_diag_yx code used by the outline method
[static] int outline_xyDescription: outline_xy code used by the outline method
[static] int outline_yxDescription: outline_yx code used by the outline method
[const] const ref DPoint p1Description: Get the first point of the ruler or marker The points of the ruler or marker are always given in micron units in floating-point coordinates.
p1=( DPoint point )Description: Set the first point of the ruler or marker The points of the ruler or marker are always given in micron units in floating-point coordinates.
[const] const ref DPoint p2Description: Get the second point of the ruler or marker The points of the ruler or marker are always given in micron units in floating-point coordinates.
p2=( DPoint point )Description: Set the second point of the ruler or marker The points of the ruler or marker are always given in micron units in floating-point coordinates.
snap=( bool flag )Description: Set the 'snap to objects' attribute. If this attribute is set to true, the ruler or marker snaps to other objects when moved.
[const] bool snap?Description: Return the 'snap to objects' attribute.
[const] int styleDescription: Returns the style of the annotation object
style=( int style )Description: Set the style used for drawing the annotation object The style_... values can be used for defining the annotation object's style. The style determines if ticks or arrows are drawn.
[static] int style_arrow_bothDescription: style_arrow_both code used by the style method
[static] int style_arrow_endDescription: style_arrow_end code used by the style method
[static] int style_arrow_startDescription: style_arrow_start code used by the style method
[static] int style_lineDescription: style_line code used by the style method
[static] int style_rulerDescription: style_ruler code used by the style method
[const] string textDescription: Return the formatted text for the main label.
[const] string text_xDescription: Return the formatted text for the x-axis label.
[const] string text_yDescription: Return the formatted text for the y-axis label.
[const] Annotation transformed( DTrans t )Description: Transform the ruler or marker with the given simple transformation
[const] Annotation transformed_cplx( DCplxTrans t )Description: Transform the ruler or marker with the given complex transformation
[const] Annotation transformed_cplx( ICplxTrans t )Description: Transform the ruler or marker with the given complex transformation This method has been introduced in version 0.18.
|