AxisStyle

References
public class AxisStyle
Bundles axial display properties.

Constructors

AxisStyle

#
public AxisStyle(float thickness, Color negativeColour, Color positiveColour, LineType negativeType, LineType positiveType)
Create a new grid axis.
thickness (float)Thickness of axis.
negativeColour (Color)Colour for negative part of axis.
positiveColour (Color)Colour for positive part of axis.
negativeType (LineType)Style for negative part of axis.
positiveType (LineType)Style for positive part of axis.

Properties

Default

#
public static AxisStyle Default { get; }
Gets the default axis properties.

DefaultTight

#
public static AxisStyle DefaultTight { get; }
Gets the default axis properties for tight grids.

DefaultX

#
public static AxisStyle DefaultX { get; }
Gets the default x-axis properties.

DefaultY

#
public static AxisStyle DefaultY { get; }
Gets the default y-axis properties.

NegativeColour

#
public Color NegativeColour { get; }
Gets the colour of the negative portion of this axis.

NegativeType

#
public LineType NegativeType { get; }
Gets the display style for the negative portion of this axis.

PositiveColour

#
public Color PositiveColour { get; }
Gets the colour of the positive portion of this axis.

PositiveType

#
public LineType PositiveType { get; }
Gets the display style for the positive portion of this axis.

Thickness

#
public float Thickness { get; }
Gets the thickness of the axis.

Methods

CreateNegativePen

#
public Pen CreateNegativePen()
Create the edge to use for the negative portion of the axis.
Pen or null if style is hidden.

CreatePositivePen

#
public Pen CreatePositivePen()
Create the edge to use for the positive portion of the axis.
Pen or null if style is hidden.

WithColour

#
public AxisStyle WithColour(Color colour)
Override both the negative and positive axis colours.
colour (Color)

WithColours

#
public AxisStyle WithColours(Color negative, Color positive)
Override both the negative and positive axis colours.
negative (Color)
positive (Color)

WithThickness

#
public AxisStyle WithThickness(float thickness)
Override the axis thickness.
thickness (float)

WithType

#
public AxisStyle WithType(LineType type)
Override both the negative and positive axis line types.
type (LineType)

WithTypes

#
public AxisStyle WithTypes(LineType negative, LineType positive)
Override both the negative and positive axis line types.
negative (LineType)
positive (LineType)