|
// *****************************************************************************
//
// (c) NextWave Software 2007
// All rights reserved. The software and associated documentation
// supplied hereunder are the proprietary information of NextWave Software
// Limited, Kuala Lumpur , Malaysia and are supplied subject to
// licence terms.
//
// Version 0.9 www.nextwavesoft.com
// *****************************************************************************
using System;
using System.Drawing;
namespace NextUI.Bar
{
public abstract class SignalLight
{
private Rectangle _size;
private Color _color = Color.YellowGreen;
private Color _nonLitColor = Color.Black;
private bool _lit = false;
private bool _haloEffect = false;
public Color MainColor
{
get { return _color; }
set { _color = value; }
}
public Color NonlitColor
{
get { return _nonLitColor; }
set { _nonLitColor = value; }
}
public bool Lit
{
get { return _lit; }
set { _lit = value; }
}
public bool HaloEffect
{
get { return _haloEffect; }
set { _haloEffect = value; }
}
public Rectangle ClientRect
{
get{ return _size;}
set { _size = value;}
}
public SignalLight()
{
_size = new Rectangle(0,0,10,10);
}
public abstract void Draw(Graphics e);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here