public class IlpDefaultPositionConverter extends Object implements IlpPositionConverter
Point2D
and Shape, whereas the view supports the classes
IlpPoint, IlpRect, IlpPolyline,
and IlpPolygon.| Constructor and Description |
|---|
IlpDefaultPositionConverter()
Creates a new instance which implements conversions between model
and view ideas of position/shape.
|
| Modifier and Type | Method and Description |
|---|---|
IlpPosition |
getModelPosition(IlpPosition viewLocation)
Converts a position/shape in the view to a user-defined position/shape.
|
IlpPosition |
getViewLocation(IlpPosition modelPosition)
Converts a user-defined position/shape to a position/shape for the view.
|
public IlpDefaultPositionConverter()
The model supports the Java2D types Point2D and Shape,
whereas the view supports the classes IlpPoint, IlpRect,
IlpPolyline and IlpPolygon.
public IlpPosition getViewLocation(IlpPosition modelPosition)
getViewLocation in interface IlpPositionConverterIlpPoint, IlpRect,
IlpPolyline, or IlpPolygonpublic IlpPosition getModelPosition(IlpPosition viewLocation)
getModelPosition in interface IlpPositionConverterviewLocation - An instance of IlpPoint,
IlpRect, IlpPolyline,
or IlpPolygon.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.