Package History

Examples of History.Memento


  {
    try
    {
      ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));
      HistoryStackSer stack = (HistoryStackSer) ois.readObject();
      Memento memento = new Memento();
      memento.setStack(stack.getHistoryStack());
      ois.close();

      return memento;
    } catch (Exception e)
    {
View Full Code Here


  public ImageTab(BufferedImage img, String name)
  {
    super();
    imgpan_ = new ImagePanel(img, this);
    name_ = name;
    memento_ = new Memento();
  }
View Full Code Here

  private JarLoader loader_;
  public JButton cancel_;

  public GUI(BufferedImage img)
  {
    memento_ = new Memento();
    button_control_ = new ButtonController(this);
    filter_control_ = new FilterMenuController(this);
    filter_menu_ = new FilterMenu("Filters");
    imgpan = null;
    tabpan_ = new JTabbedPane();
View Full Code Here

    {
      JFileChooser fc = new JFileChooser();
      fc.showOpenDialog(null);
      if (fc.getSelectedFile() != null)
      {
        Memento memento = Serializer.Deserialize(fc.getSelectedFile());
        ImageTab imgtab = new ImageTab(memento.getImage(), fc.getSelectedFile()
            .getName());
        imgtab.setMemento(memento);
        gui_.addTab(imgtab);
        //gui_.getCurrentTab().setMemento(Serializer.Deserialize(fc.getSelectedFile()));
        //gui_.getCurrentTab().updateImage(gui_.getCurrentTab().getMemento().getImage());
View Full Code Here

TOP

Related Classes of History.Memento

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.