public class IlpRelativePositionUtil extends Object
x,y
view coordinate into a relative position.It is used when dropping an object such as a shelf or a card within the boundaries of a container.
Compatibility Note: In JViews 8.0, this class was moved from
ilog.tgo.util.IltRelativePositionUtil
to ilog.cpl.graph.util
.
Constructor and Description |
---|
IlpRelativePositionUtil() |
Modifier and Type | Method and Description |
---|---|
static IlpPosition |
GetRelativePosition(IlpPoint point,
IlpRepresentationObject repObj,
IlpGraphView view)
Converts the given view position
point
into a position relative to the given representation object,
that can correspond to an
IltShelf , IltCardCarrier , or an
IltCardItemContainer business object. |
static IlpPosition |
GetRelativePosition(IlpPoint point,
IltObject obj,
IlpGraphView view)
Converts the given view position
point
into a position relative to the given representation object,
that can correspond to an
IltShelf , IltCardCarrier , or an
IltCardItemContainer business object. |
public static IlpPosition GetRelativePosition(IlpPoint point, IlpRepresentationObject repObj, IlpGraphView view)
point
into a position relative to the given representation object,
that can correspond to an
IltShelf
, IltCardCarrier
, or an
IltCardItemContainer
business object.point
- X
and Y
coordinates of the view.repObj
- The container representation object for position conversion.view
- The view where the container is.null
if the position cannot be retrieved.public static IlpPosition GetRelativePosition(IlpPoint point, IltObject obj, IlpGraphView view)
point
into a position relative to the given representation object,
that can correspond to an
IltShelf
, IltCardCarrier
, or an
IltCardItemContainer
business object.point
- X
and Y
coordinates of the view.obj
- The container business object for position conversion.view
- The view where the container is.null
if the position cannot be retrieved.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.