deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.graphics.optimizers
Class LabelChoice

java.lang.Object
  extended by 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 $

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

Constructor Detail

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 -
Method Detail

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()

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net