~ubuntu-branches/ubuntu/maverick/electric/maverick

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/redisplay/AbstractDrawing.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
    public static AbstractDrawing createDrawing(EditWindow wnd, AbstractDrawing drawing, Cell cell) {
55
55
        boolean isLayerDrawing = User.getDisplayAlgorithm() == 2 && cell != null && cell.getTechnology().isLayout();
56
 
        if (isLayerDrawing)
 
56
        if (isLayerDrawing) {
57
57
            drawing = new LayerDrawing.Drawing(wnd);
58
 
        else
 
58
        } else {
59
59
            drawing = new PixelDrawing.Drawing(wnd);
 
60
        }
60
61
        return drawing;
61
62
    }
62
63
 
63
64
    public abstract boolean paintComponent(Graphics2D g, LayerVisibility lv, Dimension sz);
64
65
 
65
 
    public abstract void render(Dimension sz, WindowFrame.DisplayAttributes da, GraphicsPreferences gp, boolean fullInstantiate, Rectangle2D bounds);
 
66
    public abstract void render(Dimension sz, WindowFrame.DisplayAttributes da, GraphicsPreferences gp, DrawingPreferences dp, boolean fullInstantiate, Rectangle2D bounds);
66
67
 
67
68
    public void abortRendering() {
68
69
    }
78
79
        return true;
79
80
    }
80
81
 
81
 
    public boolean hasOpacity() { return false; }
 
82
    public boolean hasOpacity() {
 
83
        return false;
 
84
    }
82
85
 
83
86
    public void testJogl() {
84
87
    }
85
88
 
86
 
        /**
87
 
         * Method to clear the cache of expanded subcells.
88
 
         * This is used by layer visibility which, when changed, causes everything to be redrawn.
89
 
         */
90
 
        public static void clearSubCellCache(boolean layerAlso)
91
 
        {
 
89
    /**
 
90
     * Method to clear the cache of expanded subcells.
 
91
     * This is used by layer visibility which, when changed, causes everything to be redrawn.
 
92
     */
 
93
    public static void clearSubCellCache(boolean layerAlso) {
92
94
        PixelDrawing.clearSubCellCache();
93
 
        if (layerAlso)
 
95
        if (layerAlso) {
94
96
            LayerDrawing.clearSubCellCache();
95
 
        }
 
97
        }
 
98
    }
96
99
 
97
 
        public static void forceRedraw(Cell cell)
98
 
        {
 
100
    public static void forceRedraw(Cell cell) {
99
101
        PixelDrawing.forceRedraw(cell);
100
102
        LayerDrawing.forceRedraw(cell);
101
 
        }
 
103
    }
102
104
 
103
 
        /**
104
 
         * Method to draw polygon "poly", transformed through "trans".
105
 
         */
 
105
    /**
 
106
     * Method to draw polygon "poly", transformed through "trans".
 
107
     */
106
108
    public static void drawShapes(Graphics2D g, GraphicsPreferences gp, int imgX, int imgY, double scale, VectorCache.VectorBase[] shapes,
107
109
            PixelDrawing offscreen, Rectangle entryRect) {
108
110
        if (User.getDisplayAlgorithm() < 2 || User.isLegacyComposite()) {
143
145
            inverseAlpha = 0;
144
146
        }
145
147
    }
 
148
 
 
149
    public static class DrawingPreferences {
 
150
 
 
151
        boolean gridAxesShown = User.isGridAxesShown();
 
152
        double gridXBoldFrequency = User.getDefGridXBoldFrequency();
 
153
        double gridYBoldFrequency = User.getDefGridYBoldFrequency();
 
154
        double globalTextScale = User.getGlobalTextScale();
 
155
    }
146
156
}