author | William Roberts <williamr@symbian.org> |
Mon, 23 Aug 2010 16:33:54 +0100 | |
changeset 62 | 9d831841012d |
parent 61 | bf7ee68962da |
permissions | -rw-r--r-- |
62
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
1 |
/******************************************************************************* |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
2 |
* Copyright (c) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies). |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
3 |
* All rights reserved. This program and the accompanying materials |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
5 |
* which accompanies this distribution, and is available at |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
6 |
* http://www.eclipse.org/legal/epl-v10.html |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
7 |
* |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
8 |
* Contributors: |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
9 |
* Nokia Corporation - initial implementation |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
10 |
*******************************************************************************/ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
11 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
12 |
package org.eclipse.swt.internal.qt.graphics; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
13 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
14 |
import java.util.Vector; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
15 |
import java.util.Enumeration; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
16 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
17 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
18 |
* This class implements a command buffer that can be bound by GraphicsContext |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
19 |
* to collect the drawing operations. Contents of the command buffer can be replayed to |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
20 |
* GraphicsContext target with GraphicsContext.render() method. |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
21 |
* * When JavaCommandBuffer is set as the target of GraphicsContext some of the methods |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
22 |
* provided by GraphicsContext are not supported, e.g. getters, since the JavaCommandBuffer |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
23 |
* does not have a real rendering target from which to query related data. To find out what is |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
24 |
* supported see the methods of this class. In principal GraphicsContext supports all draw and set operations, |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
25 |
* when JavaCommandBuffer is set as rendering target. */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
26 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
27 |
public final class JavaCommandBuffer { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
28 |
// All collected drawing operations and their parameters |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
29 |
private int[] intParams; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
30 |
private int intCount; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
31 |
private StringBuffer strParams; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
32 |
// Container for images |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
33 |
private Vector images; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
34 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
35 |
// Container for rgbData |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
36 |
private Vector rgbData; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
37 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
38 |
// This flag is indicates if this buffer is bound by some GraphicsContext |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
39 |
private boolean bound; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
40 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
41 |
// This flag indicates if this buffer is empty or not |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
42 |
private boolean containsData; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
43 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
44 |
// This flag indicates if this buffer has any draw commands in it |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
45 |
private boolean containsPrimitiveData; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
46 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
47 |
// Memory management configuration constants |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
48 |
private static final int INT_BUF_GRANULARITY = 2560; // 10kB |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
49 |
private static final int INT_BUF_INITIAL_SIZE = 256; // 1kB |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
50 |
private static final int IMAGE_BUF_INITIAL_SIZE = 256; // 1kB |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
51 |
private static final int IMAGE_BUF_GRANULARITY = 256; // 1kB |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
52 |
private static final int STRING_BUFFER_INITIAL_SIZE = 256; // 1kB |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
53 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
54 |
// Prefixes for different categories of op codes, stored in MSB |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
55 |
final static int DRAW_PREFIX = 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
56 |
final static int FILL_PREFIX = 1; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
57 |
final static int SET_PREFIX = 2; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
58 |
final static int MISC_PREFIX = 3; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
59 |
|
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
60 |
// Unique operation codes for all the gc operations that can be buffered. |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
61 |
static final int OP_DRAWARC = ((DRAW_PREFIX << 24) | 1); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
62 |
static final int OP_DRAWFOCUS = ((DRAW_PREFIX << 24) | 2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
63 |
static final int OP_DRAWIMAGE1 = ((DRAW_PREFIX << 24) | 3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
64 |
static final int OP_DRAWIMAGE2 = ((DRAW_PREFIX << 24) | 4); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
65 |
static final int OP_DRAWLINE = ((DRAW_PREFIX << 24) | 5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
66 |
static final int OP_DRAWELLIPSE = ((DRAW_PREFIX << 24) | 6); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
67 |
static final int OP_DRAWPOINT = ((DRAW_PREFIX << 24) | 7); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
68 |
static final int OP_DRAWPOLYGON = ((DRAW_PREFIX << 24) | 8); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
69 |
static final int OP_DRAWPOLYLINE = ((DRAW_PREFIX << 24) | 9); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
70 |
static final int OP_DRAWRECT = ((DRAW_PREFIX << 24) | 10); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
71 |
static final int OP_DRAWRGB_INT = ((DRAW_PREFIX << 24) | 11); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
72 |
static final int OP_DRAWRGB_BYTE = ((DRAW_PREFIX << 24) | 12); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
73 |
static final int OP_DRAWRGB_SHORT = ((DRAW_PREFIX << 24) | 13); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
74 |
static final int OP_DRAWROUNDRECT = ((DRAW_PREFIX << 24) | 14); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
75 |
static final int OP_DRAWSTRING = ((DRAW_PREFIX << 24) | 15); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
76 |
static final int OP_FILLARC = ((FILL_PREFIX << 24) | 16); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
77 |
static final int OP_FILLGRADIENTRECT = ((FILL_PREFIX << 24) | 17); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
78 |
static final int OP_FILLELLIPSE = ((FILL_PREFIX << 24) | 18); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
79 |
static final int OP_FILLPOLYGON = ((FILL_PREFIX << 24) | 19); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
80 |
static final int OP_FILLRECT = ((FILL_PREFIX << 24) | 20); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
81 |
static final int OP_FILLROUNDRECT = ((FILL_PREFIX << 24) | 21); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
82 |
static final int OP_SETBACKGROUNDALPHA = ((SET_PREFIX << 24) | 22); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
83 |
static final int OP_SETBACKGROUNDCOLOR = ((SET_PREFIX << 24) | 23); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
84 |
static final int OP_SETBLENDINGMODE = ((SET_PREFIX << 24) | 24); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
85 |
static final int OP_SETCLIP = ((SET_PREFIX << 24) | 25); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
86 |
static final int OP_CANCELCLIPPING = ((SET_PREFIX << 24) | 26); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
87 |
static final int OP_SETFONT = ((SET_PREFIX << 24) | 27); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
88 |
static final int OP_SETFOREGROUNDALPHA = ((SET_PREFIX << 24) | 28); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
89 |
static final int OP_SETFOREGROUNDCOLOR = ((SET_PREFIX << 24) | 29); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
90 |
static final int OP_SETSTROKESTYLE = ((SET_PREFIX << 24) | 30); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
91 |
static final int OP_SETSTROKEWIDTH = ((SET_PREFIX << 24) | 31); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
92 |
static final int OP_TRANSLATE = ((MISC_PREFIX << 24) | 32); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
93 |
static final int OP_SCALE = ((MISC_PREFIX << 24) | 33); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
94 |
static final int OP_RESETTRANSFORM = ((MISC_PREFIX << 24) | 34); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
95 |
static final int OP_COPYAREA1 = ((MISC_PREFIX << 24) | 35); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
96 |
static final int OP_COPYAREA2 = ((MISC_PREFIX << 24) | 36); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
97 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
98 |
* Constructs empty command buffer with defined buffer sizes. */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
99 |
public JavaCommandBuffer() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
100 |
intParams = new int[INT_BUF_INITIAL_SIZE]; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
101 |
strParams = new StringBuffer(STRING_BUFFER_INITIAL_SIZE); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
102 |
images = new Vector(IMAGE_BUF_INITIAL_SIZE, IMAGE_BUF_GRANULARITY); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
103 |
rgbData = new Vector(IMAGE_BUF_INITIAL_SIZE, IMAGE_BUF_GRANULARITY); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
104 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
105 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
106 |
* Resets the buffer, i.e. removes all recorded commands and related data. The integer array containing |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
107 |
* the actual operation codes is not deleted, only the index pointer is rested, thus the memory consumption of that is not freed. |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
108 |
* CommandBuffer can be reseted only if it is not bound by any GraphicsContext |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
109 |
* @throws IllegalStateException if this CommandBuffer is bound while calling reset */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
110 |
public void reset() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
111 |
if(bound) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
112 |
throw new IllegalStateException("CommandBuffer is still bound by gc"); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
113 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
114 |
intCount = 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
115 |
strParams.setLength(0); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
116 |
Enumeration allImages = images.elements(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
117 |
while(allImages.hasMoreElements()) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
118 |
Image image = (Image)allImages.nextElement(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
119 |
if(image != null) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
120 |
image.freeCommandBufferCopy(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
121 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
122 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
123 |
images.removeAllElements(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
124 |
rgbData.removeAllElements(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
125 |
containsData = false; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
126 |
containsPrimitiveData = false; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
127 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
128 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
129 |
* Checks that does this buffer contain any commands |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
130 |
* @return true if any command has been written to buffer otherwise false */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
131 |
public boolean containsData() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
132 |
return containsData; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
133 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
134 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
135 |
* Checks that does this buffer contain any draw commands, i.e. any setters etc. |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
136 |
* that does to cause any pixels to be rendered are ignored |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
137 |
* @return true if any draw command has been written to buffer otherwise false */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
138 |
public boolean containsDrawnPrimitives() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
139 |
return containsPrimitiveData; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
140 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
141 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
142 |
* Binds this buffer */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
143 |
void bind() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
144 |
bound = true; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
145 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
146 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
147 |
* Provides the binding status of this buffer |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
148 |
* @return true if this buffer has been already bound otherwise false */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
149 |
boolean isBound() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
150 |
return bound; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
151 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
152 |
/** |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
153 |
* Releases this buffer, i.e. it can be bound by some other GraphicsContext */ |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
154 |
void release() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
155 |
bound = false; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
156 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
157 |
private void ensureIntArraySpace(final int items) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
158 |
if( intParams.length < intCount + items) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
159 |
int[] dst = new int[intParams.length + Math.max(INT_BUF_GRANULARITY, items)]; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
160 |
System.arraycopy(intParams, 0, dst, 0, intParams.length); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
161 |
intParams = dst; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
162 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
163 |
containsData = true; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
164 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
165 |
private void reportNotSupported() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
166 |
throw new RuntimeException("Intenal: Operation not supported with JavaCommandBuffer"); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
167 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
168 |
// private void printBufferInfo() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
169 |
// System.out.println("CommandBuffer Info: " +this); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
170 |
// System.out.println("intParamCount: " + intCount); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
171 |
// System.out.println("intBuffer Size: " + intParams.length); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
172 |
// System.out.println("StringBuffer Size: " + strParams.length()); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
173 |
// } |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
174 |
private void raisePrimitiveFlag() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
175 |
containsPrimitiveData = true; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
176 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
177 |
int[] intParams() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
178 |
return intParams; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
179 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
180 |
int intParamCount() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
181 |
return intCount; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
182 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
183 |
Vector rgbParams() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
184 |
return rgbData; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
185 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
186 |
Vector images() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
187 |
return images; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
188 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
189 |
String strParams() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
190 |
return strParams.toString(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
191 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
192 |
void drawArc (final int x, final int y, final int width, final int height, final int startAngle, final int arcAngle) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
193 |
ensureIntArraySpace(7); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
194 |
intParams[intCount++] = OP_DRAWARC; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
195 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
196 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
197 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
198 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
199 |
intParams[intCount++] = startAngle; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
200 |
intParams[intCount++] = arcAngle; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
201 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
202 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
203 |
void drawFocus (final int x, final int y, final int width, final int height) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
204 |
ensureIntArraySpace(5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
205 |
intParams[intCount++] = OP_DRAWFOCUS; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
206 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
207 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
208 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
209 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
210 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
211 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
212 |
// Must be called from UI thread as images cannot be creates outside that |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
213 |
void drawImage(final Image image, final int x, final int y) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
214 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
215 |
intParams[intCount++] = OP_DRAWIMAGE1; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
216 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
217 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
218 |
// creating copy of image here uses implicit data sharing, |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
219 |
// thus only a shallow copy is made |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
220 |
images.addElement(image.getCommandBufferCopy()); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
221 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
222 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
223 |
// must be called from UI thread as images cannot be creates outside that |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
224 |
void drawImage(final Image image, final int tx, final int ty, final int tw, final int th, final int sx, final int sy, final int sw, final int sh, final int manipulation) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
225 |
ensureIntArraySpace(10); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
226 |
intParams[intCount++] = OP_DRAWIMAGE2; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
227 |
intParams[intCount++] = tx; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
228 |
intParams[intCount++] = ty; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
229 |
intParams[intCount++] = tw; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
230 |
intParams[intCount++] = th; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
231 |
intParams[intCount++] = sx; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
232 |
intParams[intCount++] = sy; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
233 |
intParams[intCount++] = sw; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
234 |
intParams[intCount++] = sh; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
235 |
intParams[intCount++] = manipulation; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
236 |
// creating copy of image here uses implicit data sharing, |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
237 |
// thus only a shallow copy is made |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
238 |
images.addElement(image.getCommandBufferCopy()); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
239 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
240 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
241 |
void drawLine (final int x1, final int y1, final int x2, final int y2) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
242 |
ensureIntArraySpace(5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
243 |
intParams[intCount++] = OP_DRAWLINE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
244 |
intParams[intCount++] = x1; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
245 |
intParams[intCount++] = y1; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
246 |
intParams[intCount++] = x2; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
247 |
intParams[intCount++] = y2; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
248 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
249 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
250 |
void drawEllipse (final int x, final int y, final int width, final int height) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
251 |
ensureIntArraySpace(5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
252 |
intParams[intCount++] = OP_DRAWELLIPSE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
253 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
254 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
255 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
256 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
257 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
258 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
259 |
void drawPoint (final int x, final int y) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
260 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
261 |
intParams[intCount++] = OP_DRAWPOINT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
262 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
263 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
264 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
265 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
266 |
void drawPolygon(final int[] pointArray) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
267 |
ensureIntArraySpace(2 + pointArray.length); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
268 |
intParams[intCount++] = OP_DRAWPOLYGON; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
269 |
intParams[intCount++] = pointArray.length; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
270 |
for(int i = 0; i < pointArray.length; ++i) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
271 |
intParams[intCount++] = pointArray[i]; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
272 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
273 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
274 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
275 |
void drawPolyline(final int[] pointArray) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
276 |
ensureIntArraySpace(2 + pointArray.length); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
277 |
intParams[intCount++] = OP_DRAWPOLYLINE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
278 |
intParams[intCount++] = pointArray.length; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
279 |
for(int i = 0; i < pointArray.length; ++i) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
280 |
intParams[intCount++] = pointArray[i]; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
281 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
282 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
283 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
284 |
void drawRect (final int x, final int y, final int width, final int height) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
285 |
ensureIntArraySpace(5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
286 |
intParams[intCount++] = OP_DRAWRECT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
287 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
288 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
289 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
290 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
291 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
292 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
293 |
void drawRGB(final int[] rgb, final int offset, final int scanlength, final int x, final int y, final int width, final int height, final boolean processAlpha, final int manipulation) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
294 |
ensureIntArraySpace(9); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
295 |
intParams[intCount++] = OP_DRAWRGB_INT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
296 |
intParams[intCount++] = offset; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
297 |
intParams[intCount++] = scanlength; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
298 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
299 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
300 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
301 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
302 |
intParams[intCount++] = processAlpha? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
303 |
intParams[intCount++] = manipulation; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
304 |
rgbData.addElement(rgb); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
305 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
306 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
307 |
void drawRGB(final byte[] rgb, final byte[] transparencyMask, final int offset, final int scanlength, final int x, final int y, final int width, final int height, final int manipulation, final int format) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
308 |
ensureIntArraySpace(9); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
309 |
intParams[intCount++] = OP_DRAWRGB_BYTE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
310 |
intParams[intCount++] = offset; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
311 |
intParams[intCount++] = scanlength; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
312 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
313 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
314 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
315 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
316 |
intParams[intCount++] = manipulation; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
317 |
intParams[intCount++] = format; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
318 |
rgbData.addElement(rgb); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
319 |
rgbData.addElement(transparencyMask); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
320 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
321 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
322 |
void drawRGB(final short[] rgb, final int offset, final int scanlength, final int x, final int y, final int width, final int height, final boolean processAlpha, final int manipulation, final int format) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
323 |
ensureIntArraySpace(10); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
324 |
intParams[intCount++] = OP_DRAWRGB_SHORT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
325 |
intParams[intCount++] = offset; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
326 |
intParams[intCount++] = scanlength; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
327 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
328 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
329 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
330 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
331 |
intParams[intCount++] = processAlpha? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
332 |
intParams[intCount++] = manipulation; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
333 |
intParams[intCount++] = format; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
334 |
rgbData.addElement(rgb); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
335 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
336 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
337 |
void drawRoundRect (final int x, final int y, final int width, final int height, final int arcWidth, final int arcHeight) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
338 |
ensureIntArraySpace(7); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
339 |
intParams[intCount++] = OP_DRAWROUNDRECT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
340 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
341 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
342 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
343 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
344 |
intParams[intCount++] = arcWidth; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
345 |
intParams[intCount++] = arcHeight; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
346 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
347 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
348 |
void drawString(final String string, final int x, final int y, final int width, final int height, final int alignments, final int flags, final boolean isTransparent) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
349 |
ensureIntArraySpace(9); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
350 |
intParams[intCount++] = OP_DRAWSTRING; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
351 |
intParams[intCount++] = string.length(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
352 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
353 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
354 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
355 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
356 |
intParams[intCount++] = alignments; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
357 |
intParams[intCount++] = flags; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
358 |
intParams[intCount++] = isTransparent? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
359 |
strParams.append(string); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
360 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
361 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
362 |
void fillArc (final int x, final int y, final int width, final int height, final int startAngle, final int arcAngle) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
363 |
ensureIntArraySpace(7); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
364 |
intParams[intCount++] = OP_FILLARC; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
365 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
366 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
367 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
368 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
369 |
intParams[intCount++] = startAngle; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
370 |
intParams[intCount++] = arcAngle; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
371 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
372 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
373 |
void fillGradientRect(final int x, final int y, final int width, final int height, final boolean vertical, final boolean swapColors) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
374 |
ensureIntArraySpace(7); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
375 |
intParams[intCount++] = OP_FILLGRADIENTRECT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
376 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
377 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
378 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
379 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
380 |
intParams[intCount++] = vertical ? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
381 |
intParams[intCount++] = swapColors ? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
382 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
383 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
384 |
void fillEllipse (final int x, final int y, final int width, final int height) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
385 |
ensureIntArraySpace(5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
386 |
intParams[intCount++] = OP_FILLELLIPSE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
387 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
388 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
389 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
390 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
391 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
392 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
393 |
void fillPolygon (final int[] pointArray) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
394 |
ensureIntArraySpace(2 + pointArray.length); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
395 |
intParams[intCount++] = OP_FILLPOLYGON; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
396 |
intParams[intCount++] = pointArray.length; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
397 |
for(int i = 0; i < pointArray.length; ++i) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
398 |
intParams[intCount++] = pointArray[i]; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
399 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
400 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
401 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
402 |
void fillRect (final int x, final int y, final int width, final int height) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
403 |
ensureIntArraySpace(5); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
404 |
intParams[intCount++] = OP_FILLRECT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
405 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
406 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
407 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
408 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
409 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
410 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
411 |
void fillRoundRectangle (final int x, final int y, final int width, final int height, final int arcWidth, final int arcHeight) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
412 |
ensureIntArraySpace(7); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
413 |
intParams[intCount++] = OP_FILLROUNDRECT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
414 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
415 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
416 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
417 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
418 |
intParams[intCount++] = arcWidth; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
419 |
intParams[intCount++] = arcHeight; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
420 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
421 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
422 |
public void setBackgroundAlpha(final int alpha) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
423 |
ensureIntArraySpace(2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
424 |
intParams[intCount++] = OP_SETBACKGROUNDALPHA; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
425 |
intParams[intCount++] = alpha; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
426 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
427 |
void setBackgroundColor(final int argb, final boolean updateAlpha) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
428 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
429 |
intParams[intCount++] = OP_SETBACKGROUNDCOLOR; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
430 |
intParams[intCount++] = argb; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
431 |
intParams[intCount++] = updateAlpha? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
432 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
433 |
void setBlendingMode(final int mode) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
434 |
ensureIntArraySpace(2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
435 |
intParams[intCount++] = OP_SETBLENDINGMODE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
436 |
intParams[intCount++] = mode; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
437 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
438 |
void setClip(final int x, final int y, final int width, final int height, final boolean intersects) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
439 |
ensureIntArraySpace(6); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
440 |
intParams[intCount++] = OP_SETCLIP; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
441 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
442 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
443 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
444 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
445 |
intParams[intCount++] = intersects? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
446 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
447 |
void cancelClipping () { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
448 |
ensureIntArraySpace(1); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
449 |
intParams[intCount++] = OP_CANCELCLIPPING; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
450 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
451 |
void setFont(final int fontHandle) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
452 |
ensureIntArraySpace(2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
453 |
intParams[intCount++] = OP_SETFONT; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
454 |
intParams[intCount++] = fontHandle; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
455 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
456 |
void setForegroundAlpha(final int alpha) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
457 |
ensureIntArraySpace(2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
458 |
intParams[intCount++] = OP_SETFOREGROUNDALPHA; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
459 |
intParams[intCount++] = alpha; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
460 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
461 |
void setForegroundColor(final int argb, final boolean updateAlpha) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
462 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
463 |
intParams[intCount++] = OP_SETFOREGROUNDCOLOR; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
464 |
intParams[intCount++] = argb; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
465 |
intParams[intCount++] = updateAlpha? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
466 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
467 |
void setStrokeStyle(final int style) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
468 |
ensureIntArraySpace(2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
469 |
intParams[intCount++] = OP_SETSTROKESTYLE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
470 |
intParams[intCount++] = style; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
471 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
472 |
void setStrokeWidth(final int width) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
473 |
ensureIntArraySpace(2); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
474 |
intParams[intCount++] = OP_SETSTROKEWIDTH; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
475 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
476 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
477 |
void translate(final int x, final int y) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
478 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
479 |
intParams[intCount++] = OP_TRANSLATE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
480 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
481 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
482 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
483 |
void scale(final int x, final int y) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
484 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
485 |
intParams[intCount++] = OP_SCALE; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
486 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
487 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
488 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
489 |
void resetTransform() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
490 |
ensureIntArraySpace(1); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
491 |
intParams[intCount++] = OP_RESETTRANSFORM; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
492 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
493 |
void copyArea(final Image image, final int x, final int y) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
494 |
ensureIntArraySpace(3); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
495 |
intParams[intCount++] = OP_COPYAREA1; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
496 |
intParams[intCount++] = x; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
497 |
intParams[intCount++] = y; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
498 |
// TODO does this need flushing on the image |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
499 |
images.addElement(new Image(image)); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
500 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
501 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
502 |
void copyArea(final int srcX, final int srcY, final int width, final int height, final int destX, final int destY, final boolean paint) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
503 |
ensureIntArraySpace(8); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
504 |
intParams[intCount++] = OP_COPYAREA2; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
505 |
intParams[intCount++] = srcX; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
506 |
intParams[intCount++] = srcY; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
507 |
intParams[intCount++] = width; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
508 |
intParams[intCount++] = height; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
509 |
intParams[intCount++] = destX; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
510 |
intParams[intCount++] = destY; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
511 |
intParams[intCount++] = paint? 1 : 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
512 |
raisePrimitiveFlag(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
513 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
514 |
// Unsupported operations |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
515 |
int getAdvancedCharacterWidth(final char ch, final boolean isAdvanced) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
516 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
517 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
518 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
519 |
void getFontMetricsData(final int[] data, final int fontHandle) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
520 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
521 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
522 |
int getBackgroundAlpha() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
523 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
524 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
525 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
526 |
int getBackgroundColor() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
527 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
528 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
529 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
530 |
int getBlendingMode() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
531 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
532 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
533 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
534 |
void getClip(final int[] clip) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
535 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
536 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
537 |
int getForegroundAlpha() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
538 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
539 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
540 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
541 |
int getForegroundColor() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
542 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
543 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
544 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
545 |
void getTextBoundingBox(final int[] boundingBox, final String string, final int alignments, final int flags, final int rectX, final int rectY, final int rectWidth, final int rectHeight) { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
546 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
547 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
548 |
int getStrokeWidth() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
549 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
550 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
551 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
552 |
int getStrokeStyle() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
553 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
554 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
555 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
556 |
int getTranslateX() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
557 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
558 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
559 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
560 |
int getTranslateY() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
561 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
562 |
return 0; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
563 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
564 |
boolean hasClipping() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
565 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
566 |
return false; |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
567 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
568 |
void saveSettings() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
569 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
570 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
571 |
void restoreSettings() { |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
572 |
reportNotSupported(); |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
573 |
} |
9d831841012d
Repair the line endings in the latest version of JavaCommandBuffer.java - Bug 3276
William Roberts <williamr@symbian.org>
parents:
61
diff
changeset
|
574 |
} |