HanoiRingpublic 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 void | drawRing(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 int | getId()
return m_Id;
| public void | setRect(int x, int y, int width, int height)
m_X = x;
m_Y = y;
m_Width = width;
m_Height = height;
|
|