Microsoft Visual J++. Java


- 2


public String[][] getParameterInfo()

{

String[][] info =

{

{ PARAM_str, "String", "String to draw" },

{ PARAM_font, "String", "Font name" },

{ PARAM_style, "String", "Font style" },

{ PARAM_size, "String", "Font size" },

{ PARAM_color, "String", "String color" },

{ PARAM_delay, "int", "Output delay" },

};

return info;

}

 

// -------------------------------------------------------

// init

// ,

// -------------------------------------------------------

public void init()

{

//

String param;

 

//

param = getParameter(PARAM_str);

if (param != null)

m_Str = param;

 

param = getParameter(PARAM_font);

if (param != null)

m_Fnt = param;

 

param = getParameter(PARAM_style);

if (param != null)

m_style = param;

 

param = getParameter(PARAM_size);

if (param != null)

m_size = Integer.parseInt(param);

 

param = getParameter(PARAM_color);

if (param != null)

m_color = param;

 

param = getParameter(PARAM_delay);

if (param != null)

m_delay = Integer.parseInt(param);

}

 

// -------------------------------------------------------

// paint

// paint,

// -------------------------------------------------------

public void paint(Graphics g)

{

//

Dimension dimAppWndDimension = size();

 

//

dimAppWndDimension = size();

//

g.setColor(Color.yellow);

//