| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sourceforge.espro.elicitation.ScalePointSet
public class ScalePointSet
ScalePointSet is a set of points on a scale. This is how you can create you own scale by just calculating the scale points.
ScalePoint| Constructor Summary | |
|---|---|
| ScalePointSet() | |
| Method Summary | |
|---|---|
|  void | add(double distance,
    double size)Adds a scale point (withouth a label). | 
|  void | add(double distance,
    double size,
    double label)Adds a scale point with a label. | 
|  int | count()Counts the number of points in the set. | 
|  org.sourceforge.espro.elicitation.ScalePoint | get(int i)Returns a ScalePointfrom the list by the given position. | 
|  double | getMax()Returns the max. | 
|  double | getMin()Returns the min. | 
|  double | getRange()Returns the range. | 
|  org.sourceforge.espro.elicitation.ScalePoint | getScaled(int i)Returns a scaled ScalePoint. | 
|  double | getScaledDist(int pos)Returns only the scaled dist. | 
|  double | graphicsToValue(double pointer)Descales a value to the scale. | 
|  double | scale(org.sourceforge.espro.elicitation.ScalePoint p)Tells the ScalePointSet to scale the ScalePoint. | 
|  void | setRange(double range)Sets the range | 
|  double | valueToGraphics(double value)Scales a real value to the scale. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ScalePointSet()
| Method Detail | 
|---|
public void add(double distance,
                double size)
distance - The distance to the base of the scale.size - The size of the line.
public void add(double distance,
                double size,
                double label)
distance - The distance to the base of the scale.size - The size of the line.label - The label to use with this scale point.public int count()
public org.sourceforge.espro.elicitation.ScalePoint get(int i)
ScalePoint from the list by the given position.
i - The position in the list. (Start with 0)
ScalePointpublic double getMax()
public double getMin()
public double getRange()
public org.sourceforge.espro.elicitation.ScalePoint getScaled(int i)
ScalePoint.  This first scales the scale
 point and returns it then.
i - The position of the scale point (starting by 0)
getScaledDist(int)public double getScaledDist(int pos)
pos - The position of the scale point.
getScaled(int)public double graphicsToValue(double pointer)
pointer - The position of the scale.
valueToGraphics(double)public double scale(org.sourceforge.espro.elicitation.ScalePoint p)
ScalePoint.
p - The ScalePoint
public void setRange(double range)
range - The range to set.public double valueToGraphics(double value)
graphicsToValue(double).
value - The real value inside the scale.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||