Package org.pdfclown.documents.contents.objects

Examples of org.pdfclown.documents.contents.objects.Operation


  private void showContentAttributes(
    ContentObject content,
    DefaultTableModel model
    )
  {
    Operation operation;
    if(content instanceof Operation)
    {operation = (Operation)content;}
    else if(content instanceof CompositeObject)
    {operation = ((CompositeObject)content).getHeader();}
    else
    {operation = null;}
    if(operation == null)
      return;

    model.addRow(
      new Object[]
      {
        "(operator)",
        operation.getOperator()
      }
      );

    List<PdfDirectObject> operands = operation.getOperands();
    if(operands != null)
    {
      for(int index = 0, length = operands.size(); index < length; index++)
      {
        PdfDirectObject operand = operands.get(index);
View Full Code Here


    @since 0.0.4
  */
  public ContentObject parseContentObject(
    ) throws FileFormatException
  {
    final Operation operation = parseOperation();
    if(operation instanceof PaintXObject) // External object.
      return new XObject((PaintXObject)operation);
    else if(operation instanceof PaintShading) // Shading.
      return new Shading((PaintShading)operation);
    else if(operation instanceof BeginSubpath
View Full Code Here

      operations.add(beginOperation);
      long position = getPosition();
      boolean closeable = false;
      while(moveNext())
      {
        Operation operation = parseOperation();
        // Multiple-operation graphics object closeable?
        if(operation instanceof PaintPath) // Painting operation.
        {closeable = true;}
        else if(closeable) // Past end (first non-painting operation).
        {
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.contents.objects.Operation

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.