use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class LineObject method addDefaultAttributes.
public void addDefaultAttributes() {
// addAttribute(new EnumeratedAttribute(ORIENTATION, LEFT_TOP, false, false, orientations));
addAttribute(new BooleanAttribute(HORIZONTALLY_FLIPPED, false, false, false));
addAttribute(new BooleanAttribute(VERTICALLY_FLIPPED, false, false, false));
addAttribute(new IntegerAttribute(LINE_THICKNESS, 1, 1, 20, true, false));
addAttribute(new ColorAttribute(LINE_COLOR, Color.BLACK, true, false));
addAction(FLIP_HORIZONTALLY);
addAction(FLIP_VERTICALLY);
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class MathObject method addGenericDefaultAttributes.
public void addGenericDefaultAttributes() {
addAttribute(new IntegerAttribute(X_POS, 0, 0, 610, false, false));
addAttribute(new IntegerAttribute(Y_POS, 0, 0, 790, false, false));
addAttribute(new IntegerAttribute(WIDTH, 1, 1, 610, false, false));
addAttribute(new IntegerAttribute(HEIGHT, 1, 1, 790, false, false));
addAttribute(new UUIDAttribute(OBJECT_ID, UUID.randomUUID(), false, false));
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class PolygonObject method addPolygonAttributes.
private void addPolygonAttributes() {
addAttribute(new IntegerAttribute(LINE_THICKNESS, 1, 1, 20));
addAttribute(new ColorAttribute(FILL_COLOR));
addAttribute(new BooleanAttribute(HORIZONTALLY_FLIPPED, false, false));
getAttributeWithName(HORIZONTALLY_FLIPPED).setValue(false);
addAttribute(new BooleanAttribute(VERTICALLY_FLIPPED, false, false));
getAttributeWithName(VERTICALLY_FLIPPED).setValue(false);
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class TextObject method addDefaultAttributes.
@Override
public void addDefaultAttributes() {
addAttribute(new StringAttribute(TEXT, ""));
addAttribute(new IntegerAttribute(FONT_SIZE, 12, 1, 50));
addAttribute(new BooleanAttribute(SHOW_BOX, false));
addAttribute(new EnumeratedAttribute(ALIGNMENT, LEFT, alignments));
addAction(MathObject.MAKE_INTO_PROBLEM);
}
use of doc.attributes.IntegerAttribute in project OpenNotebook by jaltekruse.
the class Document method addAttributes.
private void addAttributes() {
addAttribute(new StringAttribute(FILENAME));
addAttribute(new StringAttribute(AUTHOR));
addAttribute(new DateAttribute(DATE));
addAttribute(new IntegerAttribute(LAST_PROBLEM_NUMBER, 1));
addAttribute(new DoubleAttribute(X_MARGIN, .5, .5, 3));
addAttribute(new DoubleAttribute(Y_MARGIN, .5, .5, 3));
}
Aggregations