Naanou.Vis
Class Dot

Dot which appears on a circle

Field Summary
double Angle
         Angle
System.Drawing.RectangleF area
System.Drawing.Brush brush
         Brush
System.Drawing.Brush currentBrush
System.Drawing.Pen currentPen
System.Drawing.SolidBrush currentTextBrush
int DEFAULT_SIZE
Naanou.Vis.Effects effect
int effectFadeOutAlphaChange
bool EffectLoop
         Is effect looped
int effectState
int effectTextFadeOutAlphaChange
bool hovered
string Label
         User label
int lineCount
Naanou.Vis.Line[] lines
System.Drawing.Pen pen
         Pen
int size
object Tag
         Tag
System.Drawing.Color textColour
int textFadeStage

Constructor Summary
Dot(double degrees)
         Constructor
Dot(string label, double degrees, System.Drawing.Pen pen)
         Constructor

Property Summary
System.Drawing.RectangleF Area
         Area
System.Drawing.Color Colour
         Gets or sets the pen colour. Setting pen colour also changes text colour
Naanou.Vis.Effects Effect
         Gets or sets effects
bool Hovered
         Gets or sets hovered property
int Size
         Gets or sets the size (width)
System.Drawing.Color TextColour
         Gets or sets text colour. Setting pen colour will change text colour to match

Method Summary
void Add(Naanou.Vis.Line line)
         Adds a line
System.Drawing.Pen GetEffectPen(System.Drawing.Pen currentPen, Naanou.Vis.Effects effect, int effectState)
         Gets a effect pen
void Paint(Naanou.Vis.Circle c, Naanou.Vis.Viewer viewer, System.Drawing.Graphics g)
         Paints Dot
void PaintDot(Naanou.Vis.Circle c, System.Drawing.Graphics g)
void PaintLines(Naanou.Vis.Circle c, System.Drawing.Graphics g)
         Paints lines
void PaintText(Naanou.Vis.Viewer v, System.Drawing.Graphics g)
         Paints text if required
void ResetEffects()
         Reset applied effects
void SetColourSize(System.Drawing.Color colour, int width)
         Sets the colour and size

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

Angle

public double Angle

Angle


area

private System.Drawing.RectangleF area


brush

private System.Drawing.Brush brush

Brush


currentBrush

private System.Drawing.Brush currentBrush


currentPen

private System.Drawing.Pen currentPen


currentTextBrush

private System.Drawing.SolidBrush currentTextBrush


DEFAULT_SIZE

private int DEFAULT_SIZE


effect

private Naanou.Vis.Effects effect


effectFadeOutAlphaChange

private int effectFadeOutAlphaChange


EffectLoop

public bool EffectLoop

Is effect looped


effectState

private int effectState


effectTextFadeOutAlphaChange

private int effectTextFadeOutAlphaChange


hovered

private bool hovered


Label

public string Label

User label


lineCount

private int lineCount


lines

private Naanou.Vis.Line[] lines


pen

public System.Drawing.Pen pen

Pen


size

private int size


Tag

public object Tag

Tag


textColour

private System.Drawing.Color textColour


textFadeStage

private int textFadeStage

Constructor Detail

Dot

public Dot(double degrees)

Constructor

Parameters:
degrees - Degrees

Dot

public Dot(string label,
           double degrees,
           System.Drawing.Pen pen)

Constructor

Parameters:
label - Label
degrees - Degrees
pen - Pen
Property Detail

Area

public System.Drawing.RectangleF Area

Area


Colour

public System.Drawing.Color Colour

Gets or sets the pen colour. Setting pen colour also changes text colour


Effect

public Naanou.Vis.Effects Effect

Gets or sets effects


Hovered

public bool Hovered

Gets or sets hovered property


Size

public int Size

Gets or sets the size (width)


TextColour

public System.Drawing.Color TextColour

Gets or sets text colour. Setting pen colour will change text colour to match

Method Detail

Add

public void Add(Naanou.Vis.Line line)

Adds a line

Parameters:
line - Line

GetEffectPen

public System.Drawing.Pen GetEffectPen(System.Drawing.Pen currentPen,
                                       Naanou.Vis.Effects effect,
                                       int effectState)

Gets a effect pen

Parameters:
currentPen - Pen
effect - Effect
effectState - STate
Returns:
New pen

Paint

public void Paint(Naanou.Vis.Circle c,
                  Naanou.Vis.Viewer viewer,
                  System.Drawing.Graphics g)

Paints Dot

Parameters:
c - Circle
viewer - Viewer
g - Graphics

PaintDot

private void PaintDot(Naanou.Vis.Circle c,
                      System.Drawing.Graphics g)


PaintLines

private void PaintLines(Naanou.Vis.Circle c,
                        System.Drawing.Graphics g)

Paints lines

Parameters:
c -
g -

PaintText

private void PaintText(Naanou.Vis.Viewer v,
                       System.Drawing.Graphics g)

Paints text if required

Parameters:
v - viewer
g - Graphics surface

ResetEffects

private void ResetEffects()

Reset applied effects


SetColourSize

public void SetColourSize(System.Drawing.Color colour,
                          int width)

Sets the colour and size

Parameters:
colour - Colour
width - Size