public override void DrawCharacterInBounds(char character, MusicFontStyles fontStyle, Point location, Size size, Color color, MusicalSymbol owner)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
 public static FontFamily Get(MusicFontStyles style)
 {
     return(_fonts[style]);
 }
Ejemplo n.º 3
0
 public static double GetSize(MusicFontStyles style)
 {
     return(_fontSizes[style]);
 }
 public void SetFont(MusicFontStyles style, string fontName, float fontSize, FontStyle fontStyle = FontStyle.Regular)
 {
     fonts[style] = new Font(fontName, fontSize, fontStyle, GraphicsUnit.Pixel);
 }
 public void SetFont(MusicFontStyles style, FontFamily family, float fontSize, FontStyle fontStyle = FontStyle.Regular)
 {
     fonts[style] = new Font(family, fontSize, fontStyle, GraphicsUnit.Pixel);
 }
Ejemplo n.º 6
0
 public abstract void DrawStringInBounds(string text, MusicFontStyles fontStyle, Point location, Size size, Color color, MusicalSymbol owner);
 public Font GetFont(MusicFontStyles style)
 {
     return(fonts[style]);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Draws text (i.e. note heads, lyrics, articulation symbols) in default color in proper location with proper fontStyle.
 /// </summary>
 /// <remarks>
 /// Be aware of owner.IsVisible property. You should decide how to implement invisibility, for example
 /// not draw anything at all, draw in transparent color, etc.
 /// </remarks>
 /// <param name="text">Text to draw</param>
 /// <param name="fontStyle">Fontstyle of text</param>
 /// <param name="location">Location of text block</param>
 /// <param name="owner">Owning MusicalSymbol</param>
 public void DrawString(string text, MusicFontStyles fontStyle, Point location, MusicalSymbol owner)
 {
     DrawString(text, fontStyle, location, CoalesceColor(owner), owner);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Draws text (i.e. note heads, lyrics, articulation symbols) in given color in proper location with proper fontStyle.
 /// </summary>
 /// <remarks>
 /// Be aware of owner.IsVisible property. You should decide how to implement invisibility, for example
 /// not draw anything at all, draw in transparent color, etc.
 /// </remarks>
 /// <param name="text">Text to draw</param>
 /// <param name="fontStyle">Fontstyle of text</param>
 /// <param name="location">Location of text block</param>
 /// <param name="color">Color of text</param>
 /// <param name="owner">Owning MusicalSymbol</param>
 public abstract void DrawString(string text, MusicFontStyles fontStyle, Point location, Color color, MusicalSymbol owner);
Ejemplo n.º 10
0
 /// <summary>
 /// Draws text (i.e. note heads, lyrics, articulation symbols) in default color in proper location with proper fontStyle.
 /// </summary>
 /// <remarks>
 /// Be aware of owner.IsVisible property. You should decide how to implement invisibility, for example
 /// not draw anything at all, draw in transparent color, etc.
 /// </remarks>
 /// <param name="text">Text to draw</param>
 /// <param name="fontStyle">Fontstyle of text</param>
 /// <param name="owner">Owning MusicalSymbol</param>
 public void DrawString(string text, MusicFontStyles fontStyle, double x, double y, MusicalSymbol owner)
 {
     DrawString(text, fontStyle, new Point(x, y), CoalesceColor(owner), owner);
 }
 public override void DrawStringInBounds(string text, MusicFontStyles fontStyle, Point location, Size size, Color color, Model.MusicalSymbol owner)
 {
 }
Ejemplo n.º 12
0
 public static FontInfo Get(MusicFontStyles style)
 {
     return(_fonts[style]);
 }
 public override void DrawCharacterInBounds(char character, MusicFontStyles fontStyle, Point location, Size size, Color color, Model.MusicalSymbol owner)
 {
 }
Ejemplo n.º 14
0
 public override void DrawStringInBounds(string text, MusicFontStyles fontStyle, Primitives.Point location, Primitives.Size size, Primitives.Color color, MusicalSymbol owner)
 {
 }