Package net.sf.latexdraw.glib.models.interfaces.shape

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IArrowableShape


   */
  protected StringBuilder getArrowsParametersCode() {
    StringBuilder code = null;

    if(shape instanceof IArrowableShape) {//FIXME scala trait
      final IArrowableShape arr = (IArrowableShape)shape;
      final ArrowStyle style1 = arr.getArrowStyle(0);
      final ArrowStyle style2 = arr.getArrowStyle(-1);

      if(style1==ArrowStyle.NONE) {
        if(style2!=ArrowStyle.NONE)
          code = getArrowParametersCode(arr.getArrowAt(-1));
      } else
        if(style2==ArrowStyle.NONE)
          code = getArrowParametersCode(arr.getArrowAt(0));
        else
          if(style1.isSameKind(style2))
            code = getArrowParametersCode(arr.getArrowAt(0));
          else {
            code = getArrowParametersCode(arr.getArrowAt(0));
            code.append(',').append(getArrowParametersCode(arr.getArrowAt(-1)));
          }
    }

    return code;
  }
View Full Code Here


   */
  protected StringBuilder getArrowsStyleCode() {
    final StringBuilder code;

    if(shape instanceof IArrowableShape) {//FIXME scala trait
      final IArrowableShape arr = (IArrowableShape)shape;
      final ArrowStyle style1 = arr.getArrowStyle(0);
      final ArrowStyle style2 = arr.getArrowStyle(-1);

      if(style1==ArrowStyle.NONE && style2==ArrowStyle.NONE)
        code = null;
      else
        code = new StringBuilder().append('{').append(style1.getPSTToken()).append('-').append(style2.getPSTToken()).append('}');
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.glib.models.interfaces.shape.IArrowableShape

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.