Package org.jfree.layouting

Examples of org.jfree.layouting.StateException


        }
      }
      catch (CloneNotSupportedException cne)
      {
        throw new StateException("Cloning failed.", cne);
      }
    }
View Full Code Here


        fmb.contentGenerator = (ContentGenerator) contentGeneratorState.restore(layoutProcess);
        return fmb;
      }
      catch (CloneNotSupportedException e)
      {
        throw new StateException("Clone failed", e);
      }
    }
View Full Code Here

        this.counterStore = (CounterStore) context.counterStore.clone();
        this.stringStore = (StringStore) context.stringStore.clone();
      }
      catch (CloneNotSupportedException e)
      {
        throw new StateException("Clone failed.");
      }
    }
View Full Code Here

        return rpc;
      }
      catch (CloneNotSupportedException e)
      {
        throw new StateException("Clone failed.");
      }
    }
View Full Code Here

          this.fontSizeProducer = (FontSizeProducer) factory.fontSizeProducer.clone();
        }
      }
      catch(CloneNotSupportedException cne)
      {
        throw new StateException("Failed to save state", cne);
      }
    }
View Full Code Here

        return factory;
      }
      catch(CloneNotSupportedException cne)
      {
        throw new StateException("Restoring the state failed", cne);
      }
    }
View Full Code Here

        this.elementsStore = (ContentStore) renderer.elementsStore.clone();
        this.pendingStore = (ContentStore) renderer.pendingStore.clone();
      }
      catch (CloneNotSupportedException e)
      {
        throw new StateException();
      }

      final FastStack renderFlowContexts = renderer.flowContexts;
      this.flowContexts = new FlowContext.FlowContextState
          [renderFlowContexts.size()];
View Full Code Here

        renderer.elementsStore = (ContentStore) this.elementsStore.clone();
        renderer.pendingStore = (ContentStore) this.pendingStore.clone();
      }
      catch (CloneNotSupportedException e)
      {
        throw new StateException();
      }
      renderer.boxDefinitionFactory = this.boxDefinitionFactory;
      if (pageContext != null)
      {
        renderer.pageContext = (RenderPageContext)
            this.pageContext.restore(layoutProcess);
      }
      if (logicalPageBox != null)
      {
        renderer.logicalPageBox = (LogicalPageBox)
            this.logicalPageBox.derive(true);
      }

      renderer.flowContexts = new FastStack();
      for (int i = 0; i < flowContexts.length; i++)
      {
        final FlowContext.FlowContextState state = flowContexts[i];
        final Object currentFlowId = state.getCurrentFlowId();
        final State textFactoryState = state.getTextFactoryState();
        final RenderableTextFactory textFactory =
            (RenderableTextFactory) textFactoryState.restore(layoutProcess);
        final NormalFlowRenderBox box = (NormalFlowRenderBox)
            renderer.logicalPageBox.findNodeById(currentFlowId);
        if (box == null)
        {
          throw new StateException("No Such normal flow.");
        }
        renderer.flowContexts.push(new FlowContext(textFactory, box));
      }
    }
View Full Code Here

          this.fontSizeProducer = (FontSizeProducer) factory.fontSizeProducer.clone();
        }
      }
      catch(CloneNotSupportedException cne)
      {
        throw new StateException("Failed to save state", cne);
      }
    }
View Full Code Here

        return factory;
      }
      catch(CloneNotSupportedException cne)
      {
        throw new StateException("Restoring the state failed", cne);
      }
    }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.StateException

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.