public class IlvMapLayoutParameters extends Object
Constructor and Description |
---|
IlvMapLayoutParameters()
Creates an
IlvMapLayoutParameters . |
Modifier and Type | Method and Description |
---|---|
double |
getDistFromOtherObstacles()
Retrieves the distance from the other obstacles.
|
double |
getHalfPathHeight()
Retrieves the half path height.
|
double |
getHalfPathWidth()
Retrieves the half path width.
|
double |
getLabelOffset()
Retrieves the label offset.
|
double |
getMaxDistFromPath()
Retrieves the max dist from path.
|
double |
getObstacleOffset()
Retrieves the obstacle offset.
|
int |
getObstacleShape()
Retrieves the obstacle shape.
|
static IlvMapLayoutParameters |
GetParameters(IlvManager manager)
Constructs an
IlvMapLayoutParameters from the properties attached
to an IlvManager . |
int |
getPreferredDirection()
Retrieves the preferred direction.
|
double |
getPreferredDistFromPath()
Retrieves the preferred dist from path.
|
boolean |
isUsingGraphicReference()
Tells if the labeler is using the
IlvGraphic reference of the
IlvAnchoredLabel as an obstacle or as a point. |
static void |
PutParameters(IlvManager manager,
IlvMapLayoutParameters parameters)
Attaches the parameters to a manager.
|
void |
setDistFromOtherObstacles(double d)
Set the distance from the other obstacles.
|
void |
setHalfPathHeight(double h)
Sets the half path height.
|
void |
setHalfPathWidth(double w)
Sets the half path width.
|
void |
setLabelOffset(double o)
Sets the label offset.
|
void |
setMaxDistFromPath(double m)
Set the max dist from path.
|
void |
setObstacleOffset(double o)
Sets the obstacle offset.
|
void |
setObstacleShape(int s)
Sets the obstacle shape.
|
void |
setPreferredDirection(int d)
Sets the preferred direction.
|
void |
setPreferredDistFromPath(double p)
Set the preferred dist from path.
|
void |
setUsingGraphicReference(boolean use)
Tells the labeler if it should use the
IlvGraphic reference
of the IlvAnchoredLabel reference as an
obstacle or as a point. |
String |
toString()
Pretty string representation.
|
public IlvMapLayoutParameters()
IlvMapLayoutParameters
.
The default values are the following ones :
public double getLabelOffset()
public void setLabelOffset(double o)
public double getObstacleOffset()
public void setObstacleOffset(double o)
public double getHalfPathWidth()
public void setHalfPathWidth(double w)
public double getHalfPathHeight()
public void setHalfPathHeight(double h)
public double getMaxDistFromPath()
public void setMaxDistFromPath(double m)
public double getPreferredDistFromPath()
public void setPreferredDistFromPath(double p)
public double getDistFromOtherObstacles()
public void setDistFromOtherObstacles(double d)
public int getPreferredDirection()
public void setPreferredDirection(int d)
public int getObstacleShape()
public void setObstacleShape(int s)
public void setUsingGraphicReference(boolean use)
IlvGraphic
reference
of the IlvAnchoredLabel
reference as an
obstacle or as a point.public boolean isUsingGraphicReference()
IlvGraphic
reference of the
IlvAnchoredLabel
as an obstacle or as a point.public static void PutParameters(IlvManager manager, IlvMapLayoutParameters parameters)
manager
- The manager.parameters
- The parameters to attach.public static IlvMapLayoutParameters GetParameters(IlvManager manager)
IlvMapLayoutParameters
from the properties attached
to an IlvManager
.
If no properties have been set, an IlvMapLayoutParameters
with default
values is returned.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.