Skip to content

Commit cb672e1

Browse files
committed
Removed non-ASCII chars from PShapeSVG.java
1 parent 55a55f8 commit cb672e1

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

app/src/processing/mode/javascript/JavaScriptEditor.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@ public void actionPerformed(ActionEvent e) {
7474

7575
public JMenu buildSketchMenu ()
7676
{
77-
JMenuItem startServerItem = Base.newJMenuItem("Start server", 'R');
77+
JMenuItem startServerItem = Base.newJMenuItem("Start Server", 'R');
7878
startServerItem.addActionListener(new ActionListener() {
7979
public void actionPerformed(ActionEvent e) {
8080
handleStartServer();
8181
}
8282
});
8383

84-
JMenuItem stopServerItem = new JMenuItem("Stop server");
84+
JMenuItem stopServerItem = new JMenuItem("Stop Server");
8585
stopServerItem.addActionListener(new ActionListener() {
8686
public void actionPerformed(ActionEvent e) {
8787
handleStopServer();
8888
}
8989
});
9090

91-
JMenuItem copyServerAddressItem = new JMenuItem("Copy server address");
91+
JMenuItem copyServerAddressItem = new JMenuItem("Copy Server Address");
9292
copyServerAddressItem.addActionListener(new ActionListener(){
9393
public void actionPerformed(ActionEvent e) {
9494
handleCopyServerAddress();
@@ -103,7 +103,7 @@ public void actionPerformed(ActionEvent e) {
103103
// }
104104
// );
105105

106-
JMenuItem setServerPortItem = new JMenuItem("Set server port");
106+
JMenuItem setServerPortItem = new JMenuItem("Set Server Port");
107107
setServerPortItem.addActionListener(new ActionListener(){
108108
public void actionPerformed (ActionEvent e) {
109109
handleSetServerPort();
@@ -120,7 +120,7 @@ public JMenu buildModeMenu() {
120120
JMenu menu = new JMenu("JavaScript");
121121
JMenuItem item;
122122

123-
item = new JMenuItem("Playback settings (directives)");
123+
item = new JMenuItem("Playback Settings (Directives)");
124124
item.addActionListener(new ActionListener() {
125125
public void actionPerformed(ActionEvent e) {
126126
handleShowDirectivesEditor();
@@ -130,15 +130,15 @@ public void actionPerformed(ActionEvent e) {
130130

131131
menu.addSeparator();
132132

133-
item = new JMenuItem("Start custom template");
133+
item = new JMenuItem("Start Custom Template");
134134
item.addActionListener(new ActionListener() {
135135
public void actionPerformed(ActionEvent e) {
136136
handleCreateCustomTemplate();
137137
}
138138
});
139139
menu.add(item);
140140

141-
item = new JMenuItem("Show custom template");
141+
item = new JMenuItem("Show Custom Template");
142142
item.addActionListener(new ActionListener() {
143143
public void actionPerformed(ActionEvent e) {
144144
handleOpenCustomTemplateFolder();

core/src/processing/core/PApplet.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5082,7 +5082,8 @@ header[17] image descriptor (packed bits)
50825082
* returned from <b>loadShape()</b> is null.
50835083
*
50845084
* ( end auto-generated )
5085-
* @webref shape:load_displaying
5085+
*
5086+
* @webref shape:loading_displaying
50865087
* @param filename name of the file to load
50875088
* @see PShape#PShape
50885089
* @see PGraphics#shape(PShape, float, float, float, float)

core/src/processing/core/PShape.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ public void disableStyle() {
300300
* joints.
301301
*
302302
* ( end auto-generated )
303+
*
303304
* @webref pshape:method
304305
* @usage web_application
305306
* @brief Enables the shape's style data and ignores the Processing styles
@@ -1098,10 +1099,14 @@ public void rotateX(float angle) {
10981099
* parameter for the <b>size()</b> function as shown in the example above.
10991100
*
11001101
* ( end auto-generated )
1102+
*
11011103
* @webref pshape:method
11021104
* @usage web_application
11031105
* @brief Rotates the shape around the y-axis
11041106
* @param angle angle of rotation specified in radians
1107+
* @see PShape#rotate(float)
1108+
* @see PShape#rotateX(float)
1109+
* @see PShape#rotateZ(float)
11051110
*/
11061111
public void rotateY(float angle) {
11071112
rotate(angle, 0, 1, 0);

core/src/processing/core/PShapeSVG.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -652,15 +652,15 @@ protected void parsePath() {
652652
break;
653653

654654
// S - curve to shorthand (absolute)
655-
// Draws a cubic Bézier curve from the current point to (x,y). The first
655+
// Draws a cubic Bezier curve from the current point to (x,y). The first
656656
// control point is assumed to be the reflection of the second control
657657
// point on the previous command relative to the current point.
658658
// (x2,y2) is the second control point (i.e., the control point
659659
// at the end of the curve). S (uppercase) indicates that absolute
660660
// coordinates will follow; s (lowercase) indicates that relative
661661
// coordinates will follow. Multiple sets of coordinates may be specified
662-
// to draw a polybézier. At the end of the command, the new current point
663-
// becomes the final (x,y) coordinate pair used in the polybézier.
662+
// to draw a polybezier. At the end of the command, the new current point
663+
// becomes the final (x,y) coordinate pair used in the polybezier.
664664
case 'S': {
665665
// (If there is no previous command or if the previous command was not
666666
// an C, c, S or s, assume the first control point is coincident with
@@ -714,12 +714,12 @@ protected void parsePath() {
714714
break;
715715

716716
// Q - quadratic curve to (absolute)
717-
// Draws a quadratic Bézier curve from the current point to (x,y) using
717+
// Draws a quadratic Bezier curve from the current point to (x,y) using
718718
// (x1,y1) as the control point. Q (uppercase) indicates that absolute
719719
// coordinates will follow; q (lowercase) indicates that relative
720720
// coordinates will follow. Multiple sets of coordinates may be specified
721-
// to draw a polybézier. At the end of the command, the new current point
722-
// becomes the final (x,y) coordinate pair used in the polybézier.
721+
// to draw a polybezier. At the end of the command, the new current point
722+
// becomes the final (x,y) coordinate pair used in the polybezier.
723723
case 'Q': {
724724
ctrlX = PApplet.parseFloat(pathTokens[i + 1]);
725725
ctrlY = PApplet.parseFloat(pathTokens[i + 2]);

java/examples/Topics/Simulate/Flocking/Flocking.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ void draw() {
2727

2828
// Add a new boid into the System
2929
void mousePressed() {
30-
flock.addBoid(new Boid(new PVector(mouseX,mouseY),2.0f,0.05f));
30+
flock.addBoid(new Boid(new PVector(mouseX,mouseY), 2.0, 0.05));
3131
}

0 commit comments

Comments
 (0)