/// <summary>
 /// Initialize a new instance of <see cref="ProperBox"/>.
 /// </summary>
 /// <param name="box"></param>
 public ProperBox(LabelBox box)
 {
     this.box = box;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new Label instance
 /// </summary>
 /// <param name="text">Text to write</param>
 /// <param name="labelPoint">Position of label</param>
 /// <param name="rotation">Rotation</param>
 /// <param name="priority">Label priority used for collision detection</param>
 /// <param name="collisionbox">Box around label for collision detection</param>
 /// <param name="style">The style of the label</param>
 public Label(string text, System.Drawing.PointF labelPoint, float rotation, int priority, LabelBox collisionbox, ILabelStyle style)
 {
     this.text       = text;
     this.labelPoint = labelPoint;
     this.rotation   = rotation;
     this.priority   = priority;
     box             = collisionbox;
     this.style      = style;
 }
Esempio n. 3
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="text">The label text</param>
 /// <param name="location">The position of label</param>
 /// <param name="rotation">The rotation of the label (in degrees)</param>
 /// <param name="priority">A priority value. Labels with lower priority are less likely to be rendered</param>
 /// <param name="collisionbox">A bounding box used for collision detection</param>
 /// <param name="style">The label style to apply upon rendering</param>
 public PathLabel(string text, GraphicsPath location, float rotation, int priority, LabelBox collisionbox, LabelStyle style)
     : base(text, location, rotation, priority, collisionbox, style)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Creates an instance of this class
 /// </summary>
 /// <param name="text">The label text</param>
 /// <param name="location">The position of label</param>
 /// <param name="rotation">The rotation of the label (in degrees)</param>
 /// <param name="priority">A priority value. Labels with lower priority are less likely to be rendered</param>
 /// <param name="collisionbox">A bounding box used for collision detection</param>
 /// <param name="style">The label style to apply upon rendering</param>
 public Label(string text, PointF location, float rotation, int priority, LabelBox collisionbox, LabelStyle style)
     : base(text, location, rotation, priority, collisionbox, style)
 {
     LabelPoint = location;
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new Label instance
 /// </summary>
 /// <param name="text">Text to write</param>
 /// <param name="labelpoint">Position of label</param>
 /// <param name="rotation">Rotation</param>
 /// <param name="priority">Label priority used for collision detection</param>
 /// <param name="collisionbox">Box around label for collision detection</param>
 /// <param name="style">The style of the label</param>
 public Label(string text, System.Drawing.PointF labelpoint, float rotation, int priority, LabelBox collisionbox, ILabelStyle style)
 {
     _Text       = text;
     _LabelPoint = labelpoint;
     _Rotation   = rotation;
     _Priority   = priority;
     _box        = collisionbox;
     _Style      = style;
 }