|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapMode
Objects implementing this interface are responsible for mapping the units in the model to pixles. For an example of how to use this interface
org.eclipse.gmf.runtime.gef.ui.internal.figure.surface.mapmode.HiMetricMapMode
Method Summary | |
---|---|
int |
DPtoLP(int deviceUnit)
Convert a Device Unit into a Logical Unit |
Translatable |
DPtoLP(Translatable t)
Convert a Translatable to Logical Units (i.e. |
int |
LPtoDP(int logicalUnit)
Convert a Logical Unit into a Device Unit |
Translatable |
LPtoDP(Translatable t)
Convert a Translatable to Device Units (pixels) |
Method Detail |
---|
int LPtoDP(int logicalUnit)
logicalUnit
- the value to be converted
int DPtoLP(int deviceUnit)
deviceUnit
- the value to be converted
Translatable LPtoDP(Translatable t)
Translatable
to Device Units (pixels)
t
- the Translatable
to convert
t
that was scaled for convenience.Translatable DPtoLP(Translatable t)
t
- the Translatable to convert
t
that was scaled for convenience.
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.