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

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


  }


  @Test
  public void testDotStyleDiamond() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=diamond]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.DIAMOND, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here


  }


  @Test
  public void testDotStyleSquareStar() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=square*]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.FSQUARE, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleSquare() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=square]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.SQUARE, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleBar() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=|]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.BAR, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleOtimes() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=otimes]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.OTIMES, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleOplus() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=oplus]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.OPLUS, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleAsterisk() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=asterisk]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.ASTERISK, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStylePlus() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=+]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.PLUS, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleX() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=x]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.X, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

  }


  @Test
  public void testDotStyleo() throws ParseException {
    IDot dot =  (IDot)parser.parsePSTCode("\\"+getCommandName()+"[dotstyle=o]"+getBasicCoordinates()).get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(DotStyle.O, dot.getDotStyle());
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

TOP

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

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.