class DrawObjectClass
{
private java.awt.Rectangle m_rect ;
private int m_lineWidth ;
private int m_shape ;
private int m_lineColorRed ;
private int m_lineColorGreen ;
private int m_lineColorBlue ;
public void DrawShape(java.awt.Graphics g)
{
switch (m_shape)
{
case DefaultManagerClass.LINESHAPE:
DrawShapeClass.DrawLineShapeAt( g, m_rect.x, m_rect.y,
m_rect.x + m_rect.width,
m_rect.y + m_rect.height ,
m_lineWidth,
m_lineColorRed, m_lineColorGreen, m_lineColorBlue ) ;
break;
case DefaultManagerClass.RECTSHAPE:
DrawShapeClass.DrawRectangleShapeAt( g, m_rect.x, m_rect.y,
m_rect.x + m_rect.width,
m_rect.y + m_rect.height ,
m_lineWidth,
m_lineColorRed, m_lineColorGreen, m_lineColorBlue ,
false ) ;
break;
case DefaultManagerClass.ROUNDRECTSHAPE:
DrawShapeClass.DrawRoundRectShapeAt( g, m_rect.x, m_rect.y,
m_rect.x + m_rect.width,
m_rect.y + m_rect.height ,
m_lineWidth,
m_lineColorRed, m_lineColorGreen, m_lineColorBlue ,
false , 10 , 10 ) ;
break;
case DefaultManagerClass.ELLIPSESHAPE:
DrawShapeClass.DrawEllipseShapeAt( g, m_rect.x, m_rect.y,
m_rect.x + m_rect.width,
m_rect.y + m_rect.height ,
m_lineWidth, m_lineColorRed, m_lineColorGreen,
m_lineColorBlue ,
false) ;
break;
}
}
}
|