public void addMark(Mark mark) { if (mark == null) { return; } marks.add(mark); symbols.add(mark); mark.setSize(size); mark.setRotation(rotation); }
public Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation) { Mark mark = new MarkImpl(); if (wellKnownName == null) { throw new IllegalArgumentException( "WellKnownName can not be null in mark"); } mark.setWellKnownName(wellKnownName); mark.setStroke(stroke); mark.setFill(fill); if (size == null) { throw new IllegalArgumentException("Size can not be null in mark"); } mark.setSize(size); if (rotation == null) { throw new IllegalArgumentException( "Rotation can not be null in mark"); } mark.setRotation(rotation); return mark; }
public void apply() { if (mark != null) { mark.setFill(guiFill.getEdited()); mark.setRotation(guiRotation.getExpression()); mark.setSize(guiSize.getExpression()); mark.setStroke(guiStroke.getEdited()); mark.setWellKnownName(guiWKN.getExpression()); } }
copy.setFill(fillCopy); copy.setRotation((Expression) rotationCopy); copy.setSize((Expression) sizeCopy); copy.setStroke(strokeCopy); copy.setWellKnownName((Expression) wellKnownNameCopy);
copy.setFill(fillCopy); copy.setRotation(rotationCopy); copy.setSize(sizeCopy); copy.setStroke(strokeCopy); copy.setWellKnownName(wellKnownNameCopy);