SummaryEntryDisplay

Base implementation for ISummaryEntryDisplay which draws the meta name and little else.

Constructors

SummaryEntryDisplay

#
protected SummaryEntryDisplay(ISummaryEntry entry, IEnumerable<string> suffixFragments)
Create a new display.
entry (ISummaryEntry)Entry to contain.
suffixFragments (IEnumerable<string>)Optional text to append to the meta name.

Properties

Bounds

#
public Rectangle Bounds { get; }
Gets the bounds of this container.
Bounds

Entry

#
public ISummaryEntry Entry { get; }
Gets the entry hostd in this container.
Entry

Height

#
public int Height { get; }
Gets the ideal height of this container for the current width.
Height

LabelWidth

#
protected int LabelWidth { get; }
Gets the width of the label text.

Location

#
public Point Location { get; set; }
Gets or sets the location of the upper left corner of this container.
Location

Width

#
public int Width { get; set; }
Gets or sets the width of this container.
Width

Methods

ComputeHeight

#
protected virtual int ComputeHeight(int width)
Compute the height for a given width. The default implementation computes the height based only on the textual part of the display.
width (int)

Draw

#
public void Draw(Context context, Color back, Color text, Color fill)
context (Context)
back (Color)
text (Color)
fill (Color)
Draw

Draw

#
protected abstract void Draw(Context context, Rectangle frame, Color back, Color text, Color fill)
context (Context)
frame (Rectangle)
back (Color)
text (Color)
fill (Color)

ShowTooltip

#
public virtual bool ShowTooltip(PointF location)
location (PointF)
ShowTooltip