Class ColorBar
An axis panel which displays a colormap and range of values
public class ColorBar : IPanel
- Inheritance
-
ColorBar
- Implements
- Inherited Members
- Extension Methods
Constructors
ColorBar(IHasColorAxis, Edge)
An axis panel which displays a colormap and range of values
public ColorBar(IHasColorAxis source, Edge edge = Edge.Right)
Parameters
source
IHasColorAxisedge
Edge
Properties
Axis
Axis (spine, ticks, label, etc) for the colorbar
public IAxis Axis { get; }
Property Value
Edge
Indicates which edge of the data rectangle this panel lays on
public Edge Edge { get; set; }
Property Value
IsVisible
If false, the panel will not be displayed or report any size
public bool IsVisible { get; set; }
Property Value
Label
Title for the colorbar, displayed outside the ticks.
public string Label { get; set; }
Property Value
LabelStyle
Title for the colorbar, displayed outside the ticks.
public LabelStyle LabelStyle { get; }
Property Value
MaximumSize
Disallow the panel to be larger than this
public float MaximumSize { get; set; }
Property Value
MinimumSize
Disallow the panel to be smaller than this
public float MinimumSize { get; set; }
Property Value
ShowDebugInformation
Enable this to display extra information on the axis to facilitate development
public bool ShowDebugInformation { get; set; }
Property Value
Source
public IHasColorAxis Source { get; set; }
Property Value
Width
Thickness of the colorbar image (in pixels)
public float Width { get; set; }
Property Value
Methods
GetPanelRect(PixelRect, float, float)
Return a rectangle encapsulating the colormap bitmap plus the axis and ticks.
public PixelRect GetPanelRect(PixelRect dataRect, float size, float offset)
Parameters
Returns
Measure()
Return the size (in pixels) of the panel in the dimension perpendicular to the edge it lays on
public float Measure()
Returns
Render(RenderPack, float, float)
Draw this panel on a canvas
public void Render(RenderPack rp, float size, float offset)
Parameters
rp
RenderPacksize
floatsize of this panel (pixel units)
offset
floatdistance from the edge of this panel to the edge of the data area