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

Class UISystem

Methods , Fields

public class UISystem
{
  // Fields
  public static final int TREE_LAYOUT;
  public static final int CXBORDER;
  public static final int CYBORDER;
  public static final int CXEDGE;
  public static final int CYEDGE;
  public static final int CXTREE_INDENT;
  public static final int CHECKBOX_SIZE;

  // Methods
  public final static UILayoutManager getLayout(int index);
  public final static int getMetric(int index);

}

A class that handles the retrieving of system properties. UISystem manages a collection of layout managers and metrics, and cannot be instantiated.


Methods


getLayout

public final static UILayoutManager getLayout(int index);

Retrieves the layout manager at the specified index.

Return Value:

Returns the layout manager.

ParameterDescription
index The index of the layout manager to be retrieved. TREE_LAYOUT is the only supported value.

Remarks:

By default, the layout manager defined at the TREE_LAYOUT index is UITreeLayout.


getMetric

public final static int getMetric(int index);

Retrieves the metric value at the specified index.

Return Value:

Returns the specified metric value.

ParameterDescription
index The index of the metric value to be retrieved. Specify one of the following values.


Fields

CHECKBOX_SIZE
A system metrics index that identifies the size of a check box. The default size is defined to be 13 pixels.
CXBORDER
A system metrics index that identifies a horizontal border. The default horizontal border is defined to be 1 pixel.
CXEDGE
A system metrics index that identifies a horizontal edge. The default horizontal edge is defined to be twice the horizontal border.
CYBORDER
A system metrics index that identifies a vertical border. The default vertical border is defined to be 1 pixel.
CYEDGE
A system metrics index that identifies a vertical edge. The default vertical edge is defined to be twice the vertical border.
CXTREE_INDENT
A system metrics index that identifies the indent for laying out children of a tree node. The default indent is defined to be 16 pixels.
TREE_LAYOUT
A system layout index that identifies the layout manager for tree nodes. The default layout manager is defined to be UITreeLayout.


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