Package research

Examples of research.Drawing


          Set set = informationMap.get(id);

          if (set != null) {
            Iterator valueIterator = set.iterator();
            while (valueIterator.hasNext()) {
              Drawing drawing = (Drawing) valueIterator.next();
              store.store(bufferStream, drawing);
              ZipEntry drawingEntry = new ZipEntry(id + "\\"
                  + drawing.getTitle() + ".draw");
              zipOutStream.putNextEntry(drawingEntry);
              bufferStream.writeTo(zipOutStream);
              zipOutStream.closeEntry();

              bufferStream.reset();
View Full Code Here


        @Override
        public boolean isEnabled() {
            if (!super.isEnabled()) return false;

            String viewName = (String) this.getValue(ConstantDefinition.VIEW_NAME);
            Drawing drawing = (Drawing) this.getValue(ConstantDefinition.DRAWING);

            if ((viewName == null) && (drawing == null)) return false;

            return true;
        }
View Full Code Here

            if (isDoing) return;

            isDoing = true;

            String viewName = (String) this.getValue(ConstantDefinition.VIEW_NAME);
            Drawing drawing = (Drawing) this.getValue(ConstantDefinition.DRAWING);

            SaturnDrawingView view = createDrawingView();

            if (drawing == null) {
                drawing = createDrawing();
                drawing.setTitle(viewName);
            }

            view.setDrawing(drawing);

            DrawingEditor drawingEditor = (DrawingEditor) getValue(ConstantDefinition.DRAWING_EDITOR);
View Full Code Here

        public boolean isEnabled() {
            if (!super.isEnabled()) return false;

            String viewName = (String) this.getValue(ConstantDefinition.VIEW_NAME);
            Drawing drawing = (Drawing) this.getValue(ConstantDefinition.DRAWING);

            if ((viewName == null) && (drawing == null)) return false;

            return true;
        }
View Full Code Here

            if (isDoing) return;

            isDoing = true;

            String viewName = (String) this.getValue(ConstantDefinition.VIEW_NAME);
            Drawing drawing = (Drawing) this.getValue(ConstantDefinition.DRAWING);

            SaturnDrawingView view = createDrawingView();

            if (drawing == null) {
                drawing = createDrawing();
                drawing.setTitle(viewName);
            }

            view.setDrawing(drawing);

            DrawingEditor drawingEditor = (DrawingEditor) getValue(ConstantDefinition.DRAWING_EDITOR);
View Full Code Here

                if (index > 0) {
                    try {
                        String id = entryName.substring(0, index);
                        InputStream inputStream = zipFile.getInputStream(entry);
                        Drawing drawing = reader.restore(inputStream);
                        informationMap.add(id, drawing);
                    } catch (Exception exception) {
                        errorInfo = "Exception occurs when read information.\n" + exception;
                        exception.printStackTrace();
                        return false;
View Full Code Here

                    Set set = informationMap.get(id);

                    if (set != null) {
                        Iterator valueIterator = set.iterator();
                        while (valueIterator.hasNext()) {
                            Drawing drawing = (Drawing) valueIterator.next();
                            store.store(bufferStream, drawing);
                            ZipEntry drawingEntry = new ZipEntry(id + "\\" + drawing.getTitle() + ".draw");
                            zipOutStream.putNextEntry(drawingEntry);
                            bufferStream.writeTo(zipOutStream);
                            zipOutStream.closeEntry();

                            bufferStream.reset();
View Full Code Here

TOP

Related Classes of research.Drawing

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.