Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.ui   Previous This
Package
Next

 


Class UILine

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

  // Methods
  public Dimension getMinimumSize();
  public Dimension getPreferredSize();
  public int getRoleCode();
  public void paint(FxGraphics g);
}

This class implements painting a single separator line.

UIComponent
  |
  +--UIStateComponent
    |
    +--UICanvas
      |
      +--UILine

Constructors

UILine

public UILine();

Creates a separator line control.

Methods

getMinimumSize

public Dimension getMinimumSize();

Retrieves the minimum size (in pixels) 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 getPreferredSize.

getPreferredSize

public Dimension getPreferredSize();

Retrieves the preferred size (in pixels) of the line control.

Return Value:

Returns a Dimension object containing the preferred size.

getRoleCode

public int getRoleCode();

Retrieves the ROLE_SYSTEM code that best describes the role of the line control.

Return Value:

Returns the ROLE_SYSTEM_TOOLBAR code.

paint

public void paint(FxGraphics g);

Draws the line control.

Return Value:

No return value.

ParameterDescription
g The graphics context.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.