DisplayRules

References
[IoId("00000000-08c9-4c81-9652-f4e3c90c6f06")] public sealed class DisplayRules : IEquatable<DisplayRules>, IStorable
A collection of DisplayRule where later rules override earlier ones.

Constructors

DisplayRules

#
public DisplayRules(IReader reader)
reader (IReader)

DisplayRules

#
public DisplayRules(params DisplayRule[] rules)
Create a new rule set.
rules (params DisplayRule[])

Fields

Empty

#
public static readonly DisplayRules Empty
Gets empty display rules.

Properties

CitesOtherRules

#
public bool CitesOtherRules { get; }
Gets whether these rules cite another rule set by name.

ContainsCurveRules

#
public bool ContainsCurveRules { get; }
Gets whether at least one of the rules affects the visual properties of curves.

ContainsHideRules

#
public bool ContainsHideRules { get; }
Gets whether at least one of the rules is a RuleCommand.Hide instruction.

ContainsPointRules

#
public bool ContainsPointRules { get; }
Gets whether at least one of the rules affects the visual properties of points.

ContainsShowRules

#
public bool ContainsShowRules { get; }
Gets whether at least one of the rules is a RuleCommand.Hide instruction.

ContainsTintRules

#
public bool ContainsTintRules { get; }
Gets whether at least one of the rules affects the visual properties of values.

Count

#
public int Count { get; }
Gets the number of rules in this ruleset.

IsBlank

#
public bool IsBlank { get; }
Gets whether this ruleset contains either no rules, or only non-functional rules.

IsEmpty

#
public bool IsEmpty { get; }
Gets whether this ruleset is empty.

Indexers

this[]

#
public DisplayRule this[int index] { get; }
index (int)

Methods

Compile

#
Compile this ruleset by inserting the rules of other rulesets at CITE instructions, and by removing all non-functional rules.
pool (IDictionary<string, DisplayRules>)

DoesDash

#
public bool DoesDash(MetaData meta, out Dash8 pattern)
Test whether this rule sets a curve dash pattern for a given value.
meta (MetaData)
pattern (out Dash8)
True if the meta implies shaping as per these rules.

DoesHide

#
public bool DoesHide(MetaData meta)
Test whether this rule set hides the given value.
meta (MetaData)Meta data to test.
True if the pear is hidden as per these rules.

DoesIcon

#
public bool DoesIcon(MetaData meta, out PointStyle style, out float angle)
Test whether this rule sets a point symbol for a given value.
meta (MetaData)
style (out PointStyle)
angle (out float)
True if the meta implies shaping as per these rules.

DoesSize

#
public bool DoesSize(MetaData meta, out float size)
Test whether this rule sets a point symbol radius for a given value.
meta (MetaData)
size (out float)
True if the meta implies shaping as per these rules.

DoesTint

#
public bool DoesTint(MetaData meta, out Color colour)
Test whether this rule set tints the given value.
meta (MetaData)
colour (out Color)
True if the meta implies tinting as per these rules.

DoesWide

#
public bool DoesWide(MetaData meta, out float width)
Test whether this rule sets a curve thickness for a given value.
meta (MetaData)
width (out float)
True if the meta implies shaping as per these rules.

Equals

#
public bool Equals(DisplayRules other)
Test for exact equality.
other (DisplayRules)

Equals

#
public override bool Equals(object obj)
obj (object)
Object.Equals

EqualsFunctional

#
public bool EqualsFunctional(DisplayRules other)
Test for functional equality. Comments and other non-functional notation such as whitespace may in fact differ.
other (DisplayRules)

GetHashCode

#
public override int GetHashCode()
Explicit

IStorable.Store

#
void IStorable.Store(IWriter writer)
writer (IWriter)
Store

Parse

#
public static DisplayRules Parse(string text)
text (string)

ToString

#
public override string ToString()
Object.ToString