public class TLcdGXYFitGXYViewFromXYWorldBounds extends Object
ILcdGXYView
to fit into
given world bounds.Constructor and Description |
---|
TLcdGXYFitGXYViewFromXYWorldBounds() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Performs the fit.
|
static void |
fitGXYViewFromXYWorldBounds(ILcdGXYView aGXYViewSFCT,
ILcdBounds aXYWorldBounds)
Fits a specified area into a view.
|
static void |
fitGXYViewFromXYWorldBounds(ILcdGXYView aGXYViewSFCT,
ILcdBounds aXYWorldBounds,
Rectangle aRectangleToFitInto)
Fits a specified area into a view.
|
ILcdGXYView |
getGXYView() |
ILcdBounds |
getXYWorldBounds()
Gets the world bounds to fit in.
|
void |
setGXYView(ILcdGXYView newGXYView) |
void |
setXYWorldBounds(ILcdBounds newXYWorldBounds)
Sets the world bounds to fit in.
|
public void execute()
public static void fitGXYViewFromXYWorldBounds(ILcdGXYView aGXYViewSFCT, ILcdBounds aXYWorldBounds)
aGXYViewSFCT
- The ILcdGXYView to adapt.aXYWorldBounds
- The area to show. It is interpreted as a 2D bounds
(i.e. the depth will not be taken into account).public static void fitGXYViewFromXYWorldBounds(ILcdGXYView aGXYViewSFCT, ILcdBounds aXYWorldBounds, Rectangle aRectangleToFitInto)
aGXYViewSFCT
- The ILcdGXYView to adapt.aXYWorldBounds
- The area to show. It is interpreted as a 2D bounds
(i.e. the depth will not be taken into account).aRectangleToFitInto
- The rectangle (in view coordinates) to fit the
given bounds into, or null if the given area should take up the entire view.public void setXYWorldBounds(ILcdBounds newXYWorldBounds)
aBounds
will interpreted
as a 2D bounds (i.e. the depth will not be taken into account).public ILcdBounds getXYWorldBounds()
aBounds
will interpreted
as a 2D bounds (i.e. the depth will not be taken into account).public void setGXYView(ILcdGXYView newGXYView)
public ILcdGXYView getGXYView()