org.deegree_impl.graphics.optimizers
Class LabelChoice
java.lang.Object
org.deegree_impl.graphics.optimizers.LabelChoice
- public class LabelChoice
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
element
private LabelDisplayElement element
selected
private int selected
candidates
private Label[] candidates
qualities
private float[] qualities
maxX
private int maxX
maxY
private int maxY
minX
private int minX
minY
private int minY
LabelChoice
public LabelChoice(LabelDisplayElement element,
Label[] candidates,
float[] qualities,
int selected,
int maxX,
int maxY,
int minX,
int minY)
selectLabelRandomly
public void selectLabelRandomly()
setSelected
public void setSelected(int selected)
getSelected
public int getSelected()
getQuality
public float getQuality()
getSelectedLabel
public Label getSelectedLabel()
getElement
public LabelDisplayElement getElement()
getMaxX
public int getMaxX()
getMaxY
public int getMaxY()
getMinX
public int getMinX()
getMinY
public int getMinY()
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 java.lang.String toString()