ch.tatool.core.data
Class Points

java.lang.Object
  extended by ch.tatool.core.data.Points

public class Points
extends Object

Helper Class with getter and setter methods for properties concerning points.

Author:
Michael Ruflin

Field Summary
static String PROPERTY_MAX_POINTS
          Property name used to set a maxPoints value.
static String PROPERTY_MIN_POINTS
          Property name used to set a minPoints value.
static String PROPERTY_POINTS
          Property name used to set a points value.
static String PROPERTY_TOTAL_MAX_POINTS
          Property name used to set a totalMaxPoints value.
static String PROPERTY_TOTAL_MIN_POINTS
          Property name used to set a totalMinPoints value.
static String PROPERTY_TOTAL_POINTS
          Property name used to set a totalPoints value.
 
Method Summary
static IntegerProperty getMaxPointsProperty()
          Gets the maxPointsProperty as a IntegerProperty.
static IntegerProperty getMinPointsProperty()
          Gets the minPointsProperty as a IntegerProperty.
static IntegerProperty getPointsProperty()
          Gets the pointsProperty as a IntegerProperty.
static IntegerProperty getTotalMaxPointsProperty()
          Gets the totalMaxPointsProperty as a IntegerProperty.
static IntegerProperty getTotalMinPointsProperty()
          Gets the totalMinPointsProperty as a IntegerProperty.
static IntegerProperty getTotalPointsProperty()
          Gets the totalPointsProperty as a IntegerProperty.
static void setMaxPointsProperty(IntegerProperty maxPointsProperty)
          Sets the maxPointsProperty as an IntegerProperty.
static void setMinMaxPoints(Node node, int minPoints, int maxPoints)
          Helper method to set the min and max points of a element at once.
static void setMinPointsProperty(IntegerProperty minPointsProperty)
          Sets the minPointsProperty as an IntegerProperty.
static void setPointsProperty(IntegerProperty pointsProperty)
          Sets the pointsProperty as an IntegerProperty.
static void setTotalMaxPointsProperty(IntegerProperty totalMaxPointsProperty)
          Sets the totalMaxPointsProperty as an IntegerProperty.
static void setTotalMinPointsProperty(IntegerProperty totalMinPointsProperty)
          Sets the totalMinPointsProperty as an IntegerProperty.
static void setTotalPointsProperty(IntegerProperty totalPointsProperty)
          Sets the totalPointsProperty as an IntegerProperty.
static void setZeroOneMinMaxPoints(Node node)
          Helper method to set the min and max points of a element at once to (0, 1).
static void setZeroOnePoints(Node node, boolean outcome)
          Helper Method which sets the pointsProperty according to a boolean to 0=false or 1=true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_MIN_POINTS

public static final String PROPERTY_MIN_POINTS
Property name used to set a minPoints value.

See Also:
Constant Field Values

PROPERTY_POINTS

public static final String PROPERTY_POINTS
Property name used to set a points value.

See Also:
Constant Field Values

PROPERTY_MAX_POINTS

public static final String PROPERTY_MAX_POINTS
Property name used to set a maxPoints value.

See Also:
Constant Field Values

PROPERTY_TOTAL_MIN_POINTS

public static final String PROPERTY_TOTAL_MIN_POINTS
Property name used to set a totalMinPoints value.

See Also:
Constant Field Values

PROPERTY_TOTAL_POINTS

public static final String PROPERTY_TOTAL_POINTS
Property name used to set a totalPoints value.

See Also:
Constant Field Values

PROPERTY_TOTAL_MAX_POINTS

public static final String PROPERTY_TOTAL_MAX_POINTS
Property name used to set a totalMaxPoints value.

See Also:
Constant Field Values
Method Detail

getMinPointsProperty

public static IntegerProperty getMinPointsProperty()
Gets the minPointsProperty as a IntegerProperty.

Returns:
minPointsProperty

getPointsProperty

public static IntegerProperty getPointsProperty()
Gets the pointsProperty as a IntegerProperty.

Returns:
pointsProperty

getMaxPointsProperty

public static IntegerProperty getMaxPointsProperty()
Gets the maxPointsProperty as a IntegerProperty.

Returns:
maxPointsProperty

setMinPointsProperty

public static void setMinPointsProperty(IntegerProperty minPointsProperty)
Sets the minPointsProperty as an IntegerProperty.

Parameters:
minPointsProperty - the IntegerProperty that will be set

setPointsProperty

public static void setPointsProperty(IntegerProperty pointsProperty)
Sets the pointsProperty as an IntegerProperty.

Parameters:
pointsProperty - the IntegerProperty that will be set

setMaxPointsProperty

public static void setMaxPointsProperty(IntegerProperty maxPointsProperty)
Sets the maxPointsProperty as an IntegerProperty.

Parameters:
maxPointsProperty - the IntegerProperty that will be set

getTotalMinPointsProperty

public static IntegerProperty getTotalMinPointsProperty()
Gets the totalMinPointsProperty as a IntegerProperty.

Returns:
totalMinPointsProperty

getTotalPointsProperty

public static IntegerProperty getTotalPointsProperty()
Gets the totalPointsProperty as a IntegerProperty.

Returns:
totalPointsProperty

getTotalMaxPointsProperty

public static IntegerProperty getTotalMaxPointsProperty()
Gets the totalMaxPointsProperty as a IntegerProperty.

Returns:
totalMaxPointsProperty

setTotalMinPointsProperty

public static void setTotalMinPointsProperty(IntegerProperty totalMinPointsProperty)
Sets the totalMinPointsProperty as an IntegerProperty.

Parameters:
totalMinPointsProperty - the IntegerProperty that will be set

setTotalPointsProperty

public static void setTotalPointsProperty(IntegerProperty totalPointsProperty)
Sets the totalPointsProperty as an IntegerProperty.

Parameters:
totalPointsProperty - the IntegerProperty that will be set

setTotalMaxPointsProperty

public static void setTotalMaxPointsProperty(IntegerProperty totalMaxPointsProperty)
Sets the totalMaxPointsProperty as an IntegerProperty.

Parameters:
totalMaxPointsProperty - the IntegerProperty that will be set

setMinMaxPoints

public static void setMinMaxPoints(Node node,
                                   int minPoints,
                                   int maxPoints)
Helper method to set the min and max points of a element at once.

Parameters:
node -
minPoints -
maxPoints -

setZeroOneMinMaxPoints

public static void setZeroOneMinMaxPoints(Node node)
Helper method to set the min and max points of a element at once to (0, 1).

Parameters:
node -

setZeroOnePoints

public static void setZeroOnePoints(Node node,
                                    boolean outcome)
Helper Method which sets the pointsProperty according to a boolean to 0=false or 1=true.

Parameters:
node -
outcome -


Copyright © 2012. All Rights Reserved.