Package com.lowagie.rups.model

Examples of com.lowagie.rups.model.ObjectLoader


      list = new ArrayList<PdfPageTreeNode>();
      repaint();
      return;
    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      String[] pagelabels = PdfPageLabels.getPageLabels(loader.getReader());
      int i = 0;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfPagesTreeNode pages = (PdfPagesTreeNode)factory.getChildNode(catalog, PdfName.PAGES);
      if (pages == null) {
        return;
View Full Code Here


      setModel(new DefaultTreeModel(new OutlineTreeNode()));
      repaint();
      return;
    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfObjectTreeNode outline = factory.getChildNode(catalog, PdfName.OUTLINES);
      if (outline == null) {
        return;
View Full Code Here

      xfaTextArea.clear();
      repaint();
      return;
    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfObjectTreeNode form = factory.getChildNode(catalog, PdfName.ACROFORM);
      if (form == null) {
        return;
View Full Code Here

      repaint();
      return;
    }
    if (observable instanceof PdfReaderController
        && obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      objects = loader.getObjects();
      setModel(new JTableAutoModel(this));
      TableColumn col= getColumnModel().getColumn(0);
      col.setPreferredWidth(5);
    }
  }
View Full Code Here

   */
  public void startObjectLoader(PdfFile file) {
    setChanged();
    notifyObservers();
    setChanged();
    new ObjectLoader(this, file.getPdfReader());
  }
View Full Code Here

   * @see java.util.Observable#notifyObservers(java.lang.Object)
   */
  @Override
  public void notifyObservers(Object obj) {
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      nodes = loader.getNodes();
      PdfTrailerTreeNode root = pdfTree.getRoot();
      root.setTrailer(loader.getReader().getTrailer());
      root.setUserObject("PDF Object Tree");
      nodes.expandNode(root);
    }
    super.notifyObservers(obj);
  }
View Full Code Here

   */
  public void startObjectLoader(PdfFile file) {
    setChanged();
    notifyObservers();
    setChanged();
    new ObjectLoader(this, file.getPdfReader());
  }
View Full Code Here

      list = new ArrayList<PdfPageTreeNode>();
      repaint();
      return;
    }
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      String[] pagelabels = PdfPageLabels.getPageLabels(loader.getReader());
      int i = 0;
      TreeNodeFactory factory = loader.getNodes();
      PdfTrailerTreeNode trailer = controller.getPdfTree().getRoot();
      PdfObjectTreeNode catalog = factory.getChildNode(trailer, PdfName.ROOT);
      PdfPagesTreeNode pages = (PdfPagesTreeNode)factory.getChildNode(catalog, PdfName.PAGES);
      if (pages == null) {
        return;
View Full Code Here

   * @see java.util.Observable#notifyObservers(java.lang.Object)
   */
  @Override
  public void notifyObservers(Object obj) {
    if (obj instanceof ObjectLoader) {
      ObjectLoader loader = (ObjectLoader)obj;
      nodes = loader.getNodes();
      PdfTrailerTreeNode root = pdfTree.getRoot();
      root.setTrailer(loader.getReader().getTrailer());
      root.setUserObject("PDF Object Tree");
      nodes.expandNode(root);
    }
    super.notifyObservers(obj);
  }
View Full Code Here

TOP

Related Classes of com.lowagie.rups.model.ObjectLoader

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.