FileDocCategorySizeDatePackage
HanoiRing.javaAPI DocJ2ME MIDP 2.01084Thu Nov 07 12:02:20 GMT 2002example.hanoi

HanoiRing

public class HanoiRing extends Object

Fields Summary
public static final int
RING_BASE_COLOUR
public static final int
RING_OUTLINE_COLOUR
private int
m_Id
private int
m_Pos
private int
m_X
private int
m_Y
private int
m_Width
private int
m_Height
Constructors Summary
public HanoiRing(int id, int pos)


         
        m_Id  = id;
        m_Pos = pos;
    
Methods Summary
public voiddrawRing(javax.microedition.lcdui.Graphics g)

        g.setColor(HanoiRing.RING_BASE_COLOUR);
        g.fillRect(m_X, m_Y, m_Width, m_Height);
        g.setColor(HanoiRing.RING_OUTLINE_COLOUR);
        g.drawRect(m_X, m_Y, m_Width, m_Height);
    
public intgetId()

        return m_Id;
    
public voidsetRect(int x, int y, int width, int height)

        m_X      = x;
        m_Y      = y;
        m_Width  = width;
        m_Height = height;