| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -61,7 +61,9 @@ public class XML implements Serializable { | |||
| 61 | 61 | /** Child elements, once loaded. */ | |
| 62 | 62 | protected XML[] children; | |
| 63 | 63 | ||
| 64 | - | ||
| 64 | + /** | ||
| 65 | + * @nowebref | ||
| 66 | + */ | ||
| 65 | 67 | protected XML() { } | |
| 66 | 68 | ||
| 67 | 69 | ||
@@ -81,6 +83,8 @@ protected XML() { } | |||
| 81 | 83 | ||
| 82 | 84 | /** | |
| 83 | 85 | * Advanced users only; see loadXML() in PApplet. | |
| 86 | + * | ||
| 87 | + * @nowebref | ||
| 84 | 88 | */ | |
| 85 | 89 | public XML(File file) throws IOException, ParserConfigurationException, SAXException { | |
| 86 | 90 | this(file, null); | |
@@ -89,12 +93,16 @@ public XML(File file) throws IOException, ParserConfigurationException, SAXExcep | |||
| 89 | 93 | ||
| 90 | 94 | /** | |
| 91 | 95 | * Advanced users only; see loadXML() in PApplet. | |
| 96 | + * | ||
| 97 | + * @nowebref | ||
| 92 | 98 | */ | |
| 93 | 99 | public XML(File file, String options) throws IOException, ParserConfigurationException, SAXException { | |
| 94 | 100 | this(PApplet.createReader(file), options); | |
| 95 | 101 | } | |
| 96 | 102 | ||
| 97 | - | ||
| 103 | + /** | ||
| 104 | + * @nowebref | ||
| 105 | + */ | ||
| 98 | 106 | public XML(InputStream input) throws IOException, ParserConfigurationException, SAXException { | |
| 99 | 107 | this(input, null); | |
| 100 | 108 | } | |
@@ -104,6 +112,8 @@ public XML(InputStream input) throws IOException, ParserConfigurationException, | |||
| 104 | 112 | * Shouldn't be part of main p5 reference, this is for advanced users. | |
| 105 | 113 | * Note that while it doesn't accept anything but UTF-8, this is preserved | |
| 106 | 114 | * so that we have some chance of implementing that in the future. | |
| 115 | + * | ||
| 116 | + * @nowebref | ||
| 107 | 117 | */ | |
| 108 | 118 | public XML(InputStream input, String options) throws IOException, ParserConfigurationException, SAXException { | |
| 109 | 119 | this(PApplet.createReader(input), options); | |
@@ -112,6 +122,8 @@ public XML(InputStream input, String options) throws IOException, ParserConfigur | |||
| 112 | 122 | ||
| 113 | 123 | /** | |
| 114 | 124 | * Advanced users only; see loadXML() in PApplet. | |
| 125 | + * | ||
| 126 | + * @nowebref | ||
| 115 | 127 | */ | |
| 116 | 128 | public XML(Reader reader) throws IOException, ParserConfigurationException, SAXException { | |
| 117 | 129 | this(reader, null); | |
@@ -120,6 +132,8 @@ public XML(Reader reader) throws IOException, ParserConfigurationException, SAXE | |||
| 120 | 132 | ||
| 121 | 133 | /** | |
| 122 | 134 | * Advanced users only; see loadXML() in PApplet. | |
| 135 | + * | ||
| 136 | + * @nowebref | ||
| 123 | 137 | */ | |
| 124 | 138 | public XML(Reader reader, String options) throws IOException, ParserConfigurationException, SAXException { | |
| 125 | 139 | DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); | |
@@ -166,6 +180,8 @@ public XML(Reader reader, String options) throws IOException, ParserConfiguratio | |||
| 166 | 180 | ||
| 167 | 181 | /** | |
| 168 | 182 | * @param name description TBD | |
| 183 | + * | ||
| 184 | + * @nowebref | ||
| 169 | 185 | */ | |
| 170 | 186 | public XML(String name) { | |
| 171 | 187 | try { | |
@@ -181,7 +197,9 @@ public XML(String name) { | |||
| 181 | 197 | } | |
| 182 | 198 | } | |
| 183 | 199 | ||
| 184 | - | ||
| 200 | + /** | ||
| 201 | + * @nowebref | ||
| 202 | + */ | ||
| 185 | 203 | protected XML(XML parent, Node node) { | |
| 186 | 204 | this.node = node; | |
| 187 | 205 | this.parent = parent; | |
@@ -197,12 +215,15 @@ protected XML(XML parent, Node node) { | |||
| 197 | 215 | * @throws SAXException | |
| 198 | 216 | * @throws ParserConfigurationException | |
| 199 | 217 | * @throws IOException | |
| 218 | + * @nowebref | ||
| 200 | 219 | */ | |
| 201 | 220 | static public XML parse(String data) throws IOException, ParserConfigurationException, SAXException { | |
| 202 | 221 | return XML.parse(data, null); | |
| 203 | 222 | } | |
| 204 | 223 | ||
| 205 | - | ||
| 224 | + /** | ||
| 225 | + * @nowebref | ||
| 226 | + */ | ||
| 206 | 227 | static public XML parse(String data, String options) throws IOException, ParserConfigurationException, SAXException { | |
| 207 | 228 | return new XML(new StringReader(data), null); | |
| 208 | 229 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,6 @@ | |||
| 5 | 5 | * setting the font, and then drawing the letters. | |
| 6 | 6 | */ | |
| 7 | 7 | ||
| 8 | - // The next line is needed if running in JavaScript Mode with Processing.js | ||
| 9 | - /* @pjs font="Courier.ttf"; */ | ||
| 10 | - | ||
| 11 | 8 | PFont f; | |
| 12 | 9 | ||
| 13 | 10 | void setup() { | |
@@ -16,7 +13,7 @@ void setup() { | |||
| 16 | 13 | ||
| 17 | 14 | // Create the font | |
| 18 | 15 | println(PFont.list()); | |
| 19 | - f = createFont("Monospaced", 24); | ||
| 16 | + f = createFont("Georgia", 24); | ||
| 20 | 17 | textFont(f); | |
| 21 | 18 | textAlign(CENTER, CENTER); | |
| 22 | 19 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,6 @@ | |||
| 5 | 5 | * The letters can be aligned left, center, or right with the | |
| 6 | 6 | * textAlign() function. | |
| 7 | 7 | */ | |
| 8 | - | ||
| 9 | - // The next line is needed if running in JavaScript Mode with Processing.js | ||
| 10 | - /* @pjs font="Georgia.ttf"; */ | ||
| 11 | 8 | ||
| 12 | 9 | PFont f; | |
| 13 | 10 | ||
@@ -16,7 +13,7 @@ void setup() { | |||
| 16 | 13 | ||
| 17 | 14 | // Create the font | |
| 18 | 15 | println(PFont.list()); | |
| 19 | - f = createFont("Serif", 24); | ||
| 16 | + f = createFont("Georgia", 24); | ||
| 20 | 17 | textFont(f); | |
| 21 | 18 | } | |
| 22 | 19 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments