use of net.sf.latexdraw.view.pst.PSTCodeGenerator in project latexdraw by arnobl.
the class TestModifyLatexProperties method setUp.
@Override
@Before
public void setUp() {
super.setUp();
gen = new PSTCodeGenerator();
switch(property) {
case PACKAGES:
mementoCmd = () -> LaTeXGenerator.getPackages();
value = "pkg";
break;
case CAPTION:
mementoCmd = () -> gen.getCaption();
value = "mycaption";
break;
case LABEL:
mementoCmd = () -> gen.getLabel();
value = "mylabel";
break;
case POSITION_HORIZONTAL:
mementoCmd = () -> gen.isPositionHoriCentre();
value = true;
break;
case POSITION_VERTICAL:
mementoCmd = () -> gen.getPositionVertToken();
value = VerticalPosition.FLOATS_PAGE;
break;
case SCALE:
mementoCmd = () -> gen.getScale();
value = 1.1d;
break;
case COMMENT:
mementoCmd = () -> gen.getComment();
value = "comment";
break;
}
memento = mementoCmd.get();
}
Aggregations