|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.graph.IlpDefaultPositionConverter
public class IlpDefaultPositionConverter
This class implements conversions between model and view ideas of
position/shape. The model supports the Java2D types Point2D
and Shape, whereas the view supports the classes
IlpPoint, IlpRect, IlpPolyline,
and IlpPolygon.
| Constructor Summary | |
|---|---|
IlpDefaultPositionConverter()
Creates a new instance which implements conversions between model and view ideas of position/shape. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlpDefaultPositionConverter()
The model supports the Java2D types Point2D and Shape,
whereas the view supports the classes IlpPoint, IlpRect,
IlpPolyline and IlpPolygon.
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||