Naanou.Vis
Class Line

Line which can be displayed from node to node, or node to circle

Field Summary
System.Drawing.Pen currentPen
Naanou.Vis.Effects effect
bool EffectLoop
         Is effect looped
int effectState
Naanou.Vis.Dot otherDot
System.Drawing.Pen Pen
         Pen
bool valid

Constructor Summary
Line(System.Drawing.Pen pen)
         Line drawn to center
Line(System.Drawing.Pen pen, Naanou.Vis.Dot Dot)
         Line drawn to another Dot

Property Summary
Naanou.Vis.Effects Effect
         Gets or sets effects
bool Valid
         Gets or sets if the line is valid -- visible to user

Method Summary
void Paint(Naanou.Vis.Circle c, Naanou.Vis.Dot n, System.Drawing.Graphics g)
         Paints the line according to properties and effects
void ResetEffects()
         Reset applied effects

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


Field Detail

currentPen

private System.Drawing.Pen currentPen


effect

private Naanou.Vis.Effects effect


EffectLoop

public bool EffectLoop

Is effect looped


effectState

private int effectState


otherDot

private Naanou.Vis.Dot otherDot


Pen

public System.Drawing.Pen Pen

Pen


valid

private bool valid

Constructor Detail

Line

public Line(System.Drawing.Pen pen)

Line drawn to center

Parameters:
pen - Pen

Line

public Line(System.Drawing.Pen pen,
            Naanou.Vis.Dot Dot)

Line drawn to another Dot

Parameters:
pen - Pen
Dot - Dot
Property Detail

Effect

public Naanou.Vis.Effects Effect

Gets or sets effects


Valid

public bool Valid

Gets or sets if the line is valid -- visible to user

Method Detail

Paint

public void Paint(Naanou.Vis.Circle c,
                  Naanou.Vis.Dot n,
                  System.Drawing.Graphics g)

Paints the line according to properties and effects

Parameters:
c - Circle
n - Dot
g - Graphics surface

ResetEffects

private void ResetEffects()

Reset applied effects