Package com.ms.ui Previous
Previous
Contents
Contents
Index
Index
Next
Next

Class UILine

Constructors , Methods

public class UILine extends UICanvas
{
  // Constructors
  public UILine();

  // Methods
  public Dimension preferredSize();
  public Dimension minimumSize();
  public void paint(Graphics g);

}

A class that implements painting a single line.


Constructors


UILine

public UILine();

Create a UILine object.


Methods


preferredSize

public Dimension preferredSize();

Determines the preferred size of the line control.

Return Value:

Returns a Dimension object containing the preferred size.


minimumSize

public Dimension minimumSize();

Determines the preferred size of the line control.

Return Value:

Returns a Dimension object containing the minimum size.

Remarks:

By default, this method returns the preferred size as determined by preferredSize.


paint

public void paint(Graphics g);

Draws the line control.

Return Value:

No return value.

ParameterDescription
g The graphics context.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.