Microsoft SDK for Java

Graphics.setCoordinateOrigin

Sets up the origin for a user-defined coordinate system.

Syntax

public final void setCoordinateOrigin( Point page, Point device )

Parameters

page

A Point object that specifies the page space coordinate origin. This value is always expressed in logical coordinates for the page. To leave this setting at its current value, this parameter should be null.

device

A Point object that specifies the device space coordinate origin. This value is always expressed in physical device coordinates. To leave this setting at its current value, this parameter should be null.

Remarks

This method can be used only if the current coordinate system for this Graphics object is CoordinateSystem.ISOTROPIC or CoordinateSystem.ANISOTROPIC.

See Also   setCoordinateScale, setCoordinateSystem

© 1999 Microsoft Corporation. All rights reserved. Terms of use.