Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
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.
public UILine();Create a UILine object.
public Dimension preferredSize();Determines the preferred size of the line control.
Return Value:
Returns a Dimension object containing the preferred size.
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.
public void paint(Graphics g);Draws the line control.
Return Value:
No return value.
Parameter Description g The graphics context.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.