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

Examples of net.sf.latexdraw.glib.models.interfaces.prop.IArcProp.ArcStyle


    final SVGDefsElement defs  = doc.getFirstChild().getDefs();
    final double rotationAngle = shape.getRotationAngle();
    final double startAngle    = shape.getAngleStart()%(2.*Math.PI);
    final double endAngle      = shape.getAngleEnd()%(2.*Math.PI);
    final ArcStyle type      = shape.getArcStyle();
        final SVGElement root    = new SVGGElement(doc);
        final IPoint start      = shape.getStartPoint();
        final IPoint end        = shape.getEndPoint();
        final double radius      = shape.getWidth()/2.0;
        final boolean largeArcFlag = Math.abs(startAngle-endAngle)>=Math.PI || startAngle>endAngle;
View Full Code Here



  @Override
  protected void update(final IGroup shape) {
    if(shape.isTypeOf(IArcProp.class)) {
      final ArcStyle type = shape.getArcStyle();
      arcB.setSelected(type==ArcStyle.ARC);
      wedgeB.setSelected(type==ArcStyle.WEDGE);
      chordB.setSelected(type==ArcStyle.CHORD);
      startAngleS.setValueSafely(Math.toDegrees(shape.getAngleStart()));
      endAngleS.setValueSafely(Math.toDegrees(shape.getAngleEnd()));
View Full Code Here

  }

  @Override
  public void initAction() {
    final Object button = interaction.getButton();
    final ArcStyle style;

    if(button==instrument.arcB)
       style = ArcStyle.ARC;
    else if(button==instrument.chordB)
       style=ArcStyle.CHORD;
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.glib.models.interfaces.prop.IArcProp.ArcStyle

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.