use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class ConeObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
addAttribute(new IntegerAttribute(LINE_THICKNESS, 1, 1, 20));
addAttribute(new ColorAttribute(FILL_COLOR, null));
addAttribute(new BooleanAttribute(VERTICALLY_FLIPPED, false, false));
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class ExpressionObject method addDefaultAttributes.
@Override
protected void addDefaultAttributes() {
addAttribute(new StringAttribute(EXPRESSION));
addList(new ListAttribute<>(CORRECT_ANSWERS, new StringAttribute(""), 20, true, false));
addList(new ListAttribute<>(STEPS, new StringAttribute("val"), false));
addAttribute(new IntegerAttribute(FONT_SIZE, 1, 50));
addAttribute(new ColorAttribute(FILL_COLOR));
addAttribute(new BooleanAttribute(ALWAYS_SHOW_STEPS, true, true, false));
getAttributeWithName(EXPRESSION).setValue("");
getAttributeWithName(FONT_SIZE).setValue(12);
getAttributeWithName(FILL_COLOR).setValue(null);
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class AnswerBoxObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
//this.addAction(GRADE);
addAttribute(new StringAttribute(STUDENT_ANSWER, "", true, true));
addList(new ListAttribute<>(CORRECT_ANSWERS, new StringAttribute(""), 20, true, false));
addAttribute(new IntegerAttribute(FONT_SIZE, 12, 1, 50, true, false));
addAttribute(new IntegerAttribute(TOTAL_POINTS, 5, 1, 100, true, false));
addAttribute(new IntegerAttribute(STUDENT_SCORE, 5, 0, 100, true, false));
addAttribute(new EnumeratedAttribute(ANSWER_TYPE, PLAIN_TEXT, ANSWER_TYPES));
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class CubeObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
addAttribute(new IntegerAttribute(LINE_THICKNESS, 1, 1, 20));
addAttribute(new ColorAttribute(FILL_COLOR, null));
addAttribute(new BooleanAttribute(HORIZONTALLY_FLIPPED, false, false));
addAttribute(new BooleanAttribute(VERTICALLY_FLIPPED, false, false));
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class CylinderObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
addAttribute(new IntegerAttribute(LINE_THICKNESS, 1, 1, 20));
addAttribute(new ColorAttribute(FILL_COLOR, null));
BooleanAttribute flipped = new BooleanAttribute(VERTICALLY_FLIPPED, false);
flipped.setUserEditable(false);
addAttribute(flipped);
}
Aggregations