Package net.sf.latexdraw.glib.models.interfaces.prop.IDotProp

Examples of net.sf.latexdraw.glib.models.interfaces.prop.IDotProp.DotStyle


  @Override
  public void updateCache(final IPoint origin, final float ppc) {
    final double x         = shape.getX() - origin.getX();
    final double y         = origin.getY() - shape.getY();
    final DotStyle style     = shape.getDotStyle();
    final StringBuilder params  = getPropertiesCode(ppc);
    final StringBuilder rotation= getRotationHeaderCode(ppc, origin);

    emptyCache();

    if(style!=DotStyle.DOT)
      params.append(", dotstyle=").append(style.getPSTToken()); //$NON-NLS-1$

    params.append(", dotsize=").append((float)LNumber.getCutNumber(shape.getDiametre()/ppc)); //$NON-NLS-1$

    if(rotation!=null)
      cache.append(rotation);
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.glib.models.interfaces.prop.IDotProp.DotStyle

Copyright © 2018 www.massapicom. 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.