org.deegree.graphics.optimizers
Class LabelChoice
java.lang.Object
org.deegree.graphics.optimizers.LabelChoice
public class LabelChoice
- extends Object
- Since:
- 2.0
- Version:
- $Revision: 6696 $, 1.0. $Revision: 6696 $, $Date: 2007-04-25 21:57:05 +0200 (Mi, 25 Apr 2007) $
- Author:
- Andreas Poth, last edited by: $Author: apoth $
LabelChoice
public LabelChoice(LabelDisplayElement element,
Label[] candidates,
float[] qualities,
int selected,
int maxX,
int maxY,
int minX,
int minY)
- Parameters:
element
- candidates
- qualities
- selected
- maxX
- maxY
- minX
- minY
-
selectLabelRandomly
public void selectLabelRandomly()
setSelected
public void setSelected(int selected)
- Parameters:
selected
-
getSelected
public int getSelected()
- Returns:
getQuality
public float getQuality()
- Returns:
getSelectedLabel
public Label getSelectedLabel()
- Returns:
getElement
public LabelDisplayElement getElement()
- Returns:
getMaxX
public int getMaxX()
- Returns:
getMaxY
public int getMaxY()
- Returns:
getMinX
public int getMinX()
- Returns:
getMinY
public int getMinY()
- Returns:
intersects
public boolean intersects(LabelChoice that)
- Determines if the LabelChoice can intersect another
LabelChoice by any chance, i.e. there are two
Labels from each choice that intersect.
- Parameters:
that
- LabelChoice to test
- Returns:
- true if the LabelChoices can intersect
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net