Package de.hpi.eworld.gui.util

Examples of de.hpi.eworld.gui.util.Pen.apply()


  @Override
  public void paint(mxGraphics2DCanvas canvas, mxCellState state) {
    canvas.getGraphics().setBackground(getFillColor(null, null));
    Pen pen = new Pen(getStrokeColor(null, null));
    pen.apply(canvas.getGraphics());
    canvas.getGraphics().translate(state.getX(), state.getY());
    canvas.getGraphics().draw(shape);
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.