public override void DrawCharacterInBounds(char character, MusicFontStyles fontStyle, Point location, Size size, Color color, MusicalSymbol owner) { throw new NotImplementedException(); }
public static FontFamily Get(MusicFontStyles style) { return(_fonts[style]); }
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); }
public abstract void DrawStringInBounds(string text, MusicFontStyles fontStyle, Point location, Size size, Color color, MusicalSymbol owner);
public Font GetFont(MusicFontStyles style) { return(fonts[style]); }
/// <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); }
/// <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);
/// <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) { }
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) { }
public override void DrawStringInBounds(string text, MusicFontStyles fontStyle, Primitives.Point location, Primitives.Size size, Primitives.Color color, MusicalSymbol owner) { }