Commit 2137eeba authored by Eric Tobias's avatar Eric Tobias

Minor changes to the default behaviour of Content

parent 49fe9607
......@@ -47,10 +47,12 @@ OBJECTS_NODE=objects
RADIUS_NODE=radius
ROTATE_WITH_HANDLE_NODE=rotateWithHandle
SHAPE_NODE=shape
SPACE=\
SPIN_ON_CORONA_CENTRE_NODE=spinOnCoronaCentre
START_NODE=start
STEP_SIZE_NODE=stepSize
TEXT_NODE=text
TRIGGER_CONDITION_NODE=triggerCondition
TYPE_NODE=type
UPPER_BOUND_NODE=upperBound
UPPER_STOP_ANGLE_NODE=upperStopAngle
......
......@@ -75,7 +75,9 @@ public abstract class Content implements Comparable<Content> {
*
* @return The draw priority of this content instance.
*/
protected abstract int getDrawPriority();
protected int getDrawPriority() {
return drawPriority;
}
/**
* Simple getter method for identifier.
......@@ -93,7 +95,9 @@ public abstract class Content implements Comparable<Content> {
* @param order
* The variable determining order depending on the implementation.
*/
public abstract void updateDrawPriority(int order);
public void updateDrawPriority(int order) {
this.drawPriority = order;
}
/**
* Method used for initialising all fields necessary for the content to function.
......
......@@ -77,10 +77,12 @@ public class Externalization extends NLS {
public static String RADIUS_NODE;
public static String ROTATE_WITH_HANDLE_NODE;
public static String SHAPE_NODE;
public static String SPACE;
public static String SPIN_ON_CORONA_CENTRE_NODE;
public static String START_NODE;
public static String STEP_SIZE_NODE;
public static String TEXT_NODE;
public static String TRIGGER_CONDITION_NODE;
public static String TYPE_NODE;
public static String UPPER_BOUND_NODE;
public static String UPPER_STOP_ANGLE_NODE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment