001: package com.vividsolutions.jump.workbench.ui.renderer.style;
002:
003: import java.awt.Paint;
004:
005: import com.vividsolutions.jump.workbench.ui.images.IconLoader;
006:
007: public class FillPatternFactory {
008: /**
009: * You can add your own fill patterns to the Collection bearing this key on the
010: * Workbench Blackboard (create the Collection if necessary).
011: */
012: public static String CUSTOM_FILL_PATTERNS_KEY = FillPatternFactory.class
013: .getName()
014: + " - CUSTOM FILL PATTERNS";
015:
016: public Paint[] createFillPatterns() {
017: return new Paint[] {
018: WKTFillPattern.createDiagonalStripePattern(2, 2, false,
019: true),
020: WKTFillPattern.createDiagonalStripePattern(2, 4, false,
021: true),
022: WKTFillPattern.createDiagonalStripePattern(4, 2, false,
023: true),
024: WKTFillPattern.createDiagonalStripePattern(4, 4, false,
025: true),
026: WKTFillPattern.createDiagonalStripePattern(6, 2, false,
027: true),
028: WKTFillPattern.createDiagonalStripePattern(6, 4, false,
029: true),
030: WKTFillPattern.createDiagonalStripePattern(2, 2, true,
031: false),
032: WKTFillPattern.createDiagonalStripePattern(2, 4, true,
033: false),
034: WKTFillPattern.createDiagonalStripePattern(4, 2, true,
035: false),
036: WKTFillPattern.createDiagonalStripePattern(4, 4, true,
037: false),
038: WKTFillPattern.createDiagonalStripePattern(6, 2, true,
039: false),
040: WKTFillPattern.createDiagonalStripePattern(6, 4, true,
041: false),
042: WKTFillPattern.createDiagonalStripePattern(2, 2, true,
043: true),
044: WKTFillPattern.createDiagonalStripePattern(2, 4, true,
045: true),
046: WKTFillPattern.createDiagonalStripePattern(4, 2, true,
047: true),
048: WKTFillPattern.createDiagonalStripePattern(4, 4, true,
049: true),
050: WKTFillPattern.createDiagonalStripePattern(6, 2, true,
051: true),
052: WKTFillPattern.createDiagonalStripePattern(6, 4, true,
053: true),
054: WKTFillPattern.createVerticalHorizontalStripePattern(2,
055: 2, false, true),
056: WKTFillPattern.createVerticalHorizontalStripePattern(2,
057: 4, false, true),
058: WKTFillPattern.createVerticalHorizontalStripePattern(4,
059: 2, false, true),
060: WKTFillPattern.createVerticalHorizontalStripePattern(4,
061: 4, false, true),
062: WKTFillPattern.createVerticalHorizontalStripePattern(6,
063: 2, false, true),
064: WKTFillPattern.createVerticalHorizontalStripePattern(6,
065: 4, false, true),
066: WKTFillPattern.createVerticalHorizontalStripePattern(2,
067: 2, true, false),
068: WKTFillPattern.createVerticalHorizontalStripePattern(2,
069: 4, true, false),
070: WKTFillPattern.createVerticalHorizontalStripePattern(4,
071: 2, true, false),
072: WKTFillPattern.createVerticalHorizontalStripePattern(4,
073: 4, true, false),
074: WKTFillPattern.createVerticalHorizontalStripePattern(6,
075: 2, true, false),
076: WKTFillPattern.createVerticalHorizontalStripePattern(6,
077: 4, true, false),
078: WKTFillPattern.createVerticalHorizontalStripePattern(2,
079: 2, true, true),
080: WKTFillPattern.createVerticalHorizontalStripePattern(2,
081: 4, true, true),
082: WKTFillPattern.createVerticalHorizontalStripePattern(4,
083: 2, true, true),
084: WKTFillPattern.createVerticalHorizontalStripePattern(4,
085: 4, true, true),
086: WKTFillPattern.createVerticalHorizontalStripePattern(6,
087: 2, true, true),
088: WKTFillPattern.createVerticalHorizontalStripePattern(6,
089: 4, true, true),
090: new ImageFillPattern(IconLoader.class,
091: "40S-TWEED_C1_064_A_RGB.JPG"),
092: new ImageFillPattern(IconLoader.class,
093: "MICA_C5_064_B_RGB.JPG"),
094: new ImageFillPattern(IconLoader.class,
095: "CABLE-KNIT_C1_064_B_RGB.JPG"),
096: new ImageFillPattern(IconLoader.class,
097: "BLOWN-CEMENT_F2_064_A_RGB.JPG"),
098: new ImageFillPattern(IconLoader.class,
099: "JACK-FROST_C2_064_B_RGB.JPG"),
100: new ImageFillPattern(IconLoader.class,
101: "BLUE-PYRAMIDS_F2_064_B_RGB.JPG"),
102: new ImageFillPattern(IconLoader.class,
103: "BARK_E3_064_B_RGB.JPG"),
104: new ImageFillPattern(IconLoader.class,
105: "PORCELAIN_C2_064_B_RGB.JPG"),
106: new ImageFillPattern(IconLoader.class,
107: "PORCELAIN_C2_064_A_RGB.JPG"),
108: new ImageFillPattern(IconLoader.class,
109: "STARLIGHT_D1_064_A_RGB.JPG"),
110: new ImageFillPattern(IconLoader.class,
111: "LEATHER_C1_064_B_RGB.JPG"),
112: new ImageFillPattern(IconLoader.class,
113: "MUSLIN_C1_064_B_RGB.JPG"),
114: new ImageFillPattern(IconLoader.class,
115: "BATHROOM-TILES_F2_064_A_RGB.JPG"),
116: new ImageFillPattern(IconLoader.class,
117: "GLASS-BEADS_C2_064_B_RGB.JPG"),
118: new ImageFillPattern(IconLoader.class,
119: "LINOLEUM_F2_064_B_RGB.JPG"),
120: new ImageFillPattern(IconLoader.class,
121: "DECKING_F1_064_B_RGB.JPG"),
122: new ImageFillPattern(IconLoader.class,
123: "BASKET_A2_064_A_RGB.JPG"),
124: new ImageFillPattern(IconLoader.class,
125: "DECKING_F1_064_A_RGB.JPG"),
126: new ImageFillPattern(IconLoader.class,
127: "COLOR-HEXAGONS_A2_064_A_RGB.JPG"),
128: new ImageFillPattern(IconLoader.class,
129: "DISH-CLOTH_C1_064_B_RGB.JPG"),
130: new ImageFillPattern(IconLoader.class,
131: "THREAD-BEAR_C1_064_A_RGB.JPG"),
132: new ImageFillPattern(IconLoader.class,
133: "EMBOSSED-PAPER_C4_064_B_RGB.JPG"),
134: new ImageFillPattern(IconLoader.class,
135: "BLUE-CORN_E3_064_B_RGB.JPG"),
136: new ImageFillPattern(IconLoader.class,
137: "CRIMPLENE_C1_064_A_RGB.JPG"),
138: new ImageFillPattern(IconLoader.class,
139: "BACTERIA_E1_064_A_RGB.JPG"),
140: new ImageFillPattern(IconLoader.class,
141: "PLASTER-SWIRLS_F2_064_A_RGB.JPG"),
142: new ImageFillPattern(IconLoader.class,
143: "ROCK-STRATA_C5_064_A_RGB.JPG"),
144: new ImageFillPattern(IconLoader.class,
145: "PINK-STUCCO_F1_064_B_RGB.JPG"),
146: new ImageFillPattern(IconLoader.class,
147: "ELEPHANT-HIDE_E3_064_B_RGB.JPG"),
148: new ImageFillPattern(IconLoader.class,
149: "40S-TWEED_C1_064_B_RGB.JPG"),
150: new ImageFillPattern(IconLoader.class,
151: "HERRINGBONE_C1_064_A_RGB.JPG"),
152: new ImageFillPattern(IconLoader.class,
153: "MOLD_E1_064_B_RGB.JPG"),
154: new ImageFillPattern(IconLoader.class,
155: "PURPLE-HIDE_D1_064_B_RGB.JPG"),
156: new ImageFillPattern(IconLoader.class,
157: "ROMAN-ARMOR_C1_064_A_RGB.JPG"),
158: new ImageFillPattern(IconLoader.class,
159: "MICA_C5_064_A_RGB.JPG"),
160: new ImageFillPattern(IconLoader.class,
161: "BROWN-CELLS_E1_064_A_RGB.JPG"),
162: new ImageFillPattern(IconLoader.class,
163: "CANTEEN-FLOOR_F2_064_A_RGB.JPG"),
164: new ImageFillPattern(IconLoader.class,
165: "FIBER-MATTING_F2_064_B_RGB.JPG"),
166: new ImageFillPattern(IconLoader.class,
167: "LINOLEUM_F2_064_A_RGB.JPG"),
168: new ImageFillPattern(IconLoader.class,
169: "BARK_E3_064_A_RGB.JPG"),
170: new ImageFillPattern(IconLoader.class,
171: "SPECTRAL-CHECK_D1_064_B_RGB.JPG"),
172: new ImageFillPattern(IconLoader.class,
173: "LED-MATRIX_A2_064_A_RGB.JPG"),
174: new ImageFillPattern(IconLoader.class,
175: "SPECTRAL-CHECK_D1_064_A_RGB.JPG"),
176: new ImageFillPattern(IconLoader.class,
177: "ASPHALT_F1_064_A_RGB.JPG"),
178: new ImageFillPattern(IconLoader.class,
179: "BUBBLOID_D1_064_B_RGB.JPG"),
180: new ImageFillPattern(IconLoader.class,
181: "PURPLE-RENDER_F2_064_A_RGB.JPG"),
182: new ImageFillPattern(IconLoader.class,
183: "COLOR-HEXAGONS_A2_064_B_RGB.JPG"),
184: new ImageFillPattern(IconLoader.class,
185: "GRAY-RENDER_F1_064_A_RGB.JPG"),
186: new ImageFillPattern(IconLoader.class,
187: "DIRT-ROAD_F1_064_B_RGB.JPG"),
188: new ImageFillPattern(IconLoader.class,
189: "PAINT-SQUABS_D1_064_A_RGB.JPG"),
190: new ImageFillPattern(IconLoader.class,
191: "PEPPERMINTS_D1_064_A_RGB.JPG"),
192: new ImageFillPattern(IconLoader.class,
193: "BLUE-PYRAMIDS_F2_064_A_RGB.JPG"),
194: new ImageFillPattern(IconLoader.class,
195: "RAFFIA-WEAVE_C1_064_A_RGB.JPG"),
196: new ImageFillPattern(IconLoader.class,
197: "GREEN-STUCCO_F1_064_B_RGB.JPG"),
198: new ImageFillPattern(IconLoader.class,
199: "PLASTER-SWIRLS_F2_064_B_RGB.JPG"),
200: new ImageFillPattern(IconLoader.class,
201: "CHINESE-SILK_C1_064_B_RGB.JPG"),
202: new ImageFillPattern(IconLoader.class,
203: "BOBBLE-WEAVE_C1_064_B_RGB.JPG"),
204: new ImageFillPattern(IconLoader.class,
205: "GREEN-RENDER_F1_064_B_RGB.JPG"),
206: new ImageFillPattern(IconLoader.class,
207: "CHECK-A-BLOCK_C6_064_A_RGB.JPG"),
208: new ImageFillPattern(IconLoader.class,
209: "CRIMPLENE_C1_064_B_RGB.JPG"),
210: new ImageFillPattern(IconLoader.class,
211: "RUBBER-PEAKS_C1_064_A_RGB.JPG"),
212: new ImageFillPattern(IconLoader.class,
213: "JACK-FROST_C2_064_A_RGB.JPG"),
214: new ImageFillPattern(IconLoader.class,
215: "PINK-CELLS_E1_064_B_RGB.JPG"),
216: new ImageFillPattern(IconLoader.class,
217: "GLASS-DRIPS_C2_064_B_RGB.JPG"),
218: new ImageFillPattern(IconLoader.class,
219: "CRATOID_D1_064_A_RGB.JPG"),
220: new ImageFillPattern(IconLoader.class,
221: "BLUE-RIVET_C3_064_B_RGB.JPG"),
222: new ImageFillPattern(IconLoader.class,
223: "JELLY-BEANS_D1_064_B_RGB.JPG"),
224: new ImageFillPattern(IconLoader.class,
225: "BLOWN-CEMENT_F2_064_B_RGB.JPG"),
226: new ImageFillPattern(IconLoader.class,
227: "BOBBLE-WEAVE_C1_064_A_RGB.JPG"),
228: new ImageFillPattern(IconLoader.class,
229: "OP-ART_A2_064_B_RGB.JPG"),
230: new ImageFillPattern(IconLoader.class,
231: "GREEN-RENDER_F1_064_A_RGB.JPG"),
232: new ImageFillPattern(IconLoader.class,
233: "MUSLIN_C1_064_A_RGB.JPG"),
234: new ImageFillPattern(IconLoader.class,
235: "ROCK-STRATA_C5_064_B_RGB.JPG"),
236: new ImageFillPattern(IconLoader.class,
237: "RED-ZIGZAG_C1_064_B_RGB.JPG"),
238: new ImageFillPattern(IconLoader.class,
239: "COLLAGE_C4_064_A_RGB.JPG"),
240: new ImageFillPattern(IconLoader.class,
241: "JELLY-BEANS_D1_064_A_RGB.JPG"),
242: new ImageFillPattern(IconLoader.class,
243: "SECURITY-GLASS_C2_064_A_RGB.JPG"),
244: new ImageFillPattern(IconLoader.class,
245: "PEPPERMINTS_D1_064_B_RGB.JPG"),
246: new ImageFillPattern(IconLoader.class,
247: "RUBBER-MATTING_F2_064_B_RGB.JPG"),
248: new ImageFillPattern(IconLoader.class,
249: "ALLOY-TEARS_C3_064_A_RGB.JPG"),
250: new ImageFillPattern(IconLoader.class,
251: "CANTEEN-FLOOR_F2_064_B_RGB.JPG"),
252: new ImageFillPattern(IconLoader.class,
253: "RED-STUCCO_F1_064_A_RGB.JPG"),
254: new ImageFillPattern(IconLoader.class,
255: "COCONUT-HUSK_E3_064_B_RGB.JPG"),
256: new ImageFillPattern(IconLoader.class,
257: "METAL-MESH_C3_064_B_RGB.JPG"),
258: new ImageFillPattern(IconLoader.class,
259: "BLUE-CORN_E3_064_A_RGB.JPG"),
260: new ImageFillPattern(IconLoader.class,
261: "RUBBER-MATTING_F2_064_A_RGB.JPG"),
262: new ImageFillPattern(IconLoader.class,
263: "BROCADE_C1_064_B_RGB.JPG"),
264: new ImageFillPattern(IconLoader.class,
265: "RUSH-MATTING_F1_064_A_RGB.JPG"),
266: new ImageFillPattern(IconLoader.class,
267: "RED-ZIGZAG_C1_064_A_RGB.JPG"),
268: new ImageFillPattern(IconLoader.class,
269: "PURPLE-RENDER_F2_064_B_RGB.JPG"),
270: new ImageFillPattern(IconLoader.class,
271: "PINK-CELLS_E1_064_A_RGB.JPG"),
272: new ImageFillPattern(IconLoader.class,
273: "LAVA-FLOW_C5_064_B_RGB.JPG"),
274: new ImageFillPattern(IconLoader.class,
275: "SMOCKING_C1_064_B_RGB.JPG"),
276: new ImageFillPattern(IconLoader.class,
277: "CABLE-KNIT_C1_064_A_RGB.JPG"),
278: new ImageFillPattern(IconLoader.class,
279: "FOIL-PACK_D1_064_A_RGB.JPG"),
280: new ImageFillPattern(IconLoader.class,
281: "DIRT-ROAD_F1_064_A_RGB.JPG"),
282: new ImageFillPattern(IconLoader.class,
283: "PINK-STUCCO_F1_064_A_RGB.JPG"),
284: new ImageFillPattern(IconLoader.class,
285: "PEA-PODS_E3_064_A_RGB.JPG"),
286: new ImageFillPattern(IconLoader.class,
287: "CUNEIFORM_D1_064_A_RGB.JPG"),
288: new ImageFillPattern(IconLoader.class,
289: "BACTERIA_E1_064_B_RGB.JPG"),
290: new ImageFillPattern(IconLoader.class,
291: "GLASS-BEADS_C2_064_A_RGB.JPG"),
292: new ImageFillPattern(IconLoader.class,
293: "SMOCKING_C1_064_A_RGB.JPG"),
294: new ImageFillPattern(IconLoader.class,
295: "FIBER-MATTING_F2_064_A_RGB.JPG"),
296: new ImageFillPattern(IconLoader.class,
297: "COILS_C3_064_A_RGB.JPG"),
298: new ImageFillPattern(IconLoader.class,
299: "GREEN-ZIGZAG_A2_064_B_RGB.JPG"),
300: new ImageFillPattern(IconLoader.class,
301: "RUBBER-PEAKS_C1_064_B_RGB.JPG"),
302: new ImageFillPattern(IconLoader.class,
303: "CHINESE-SILK_C1_064_A_RGB.JPG"),
304: new ImageFillPattern(IconLoader.class,
305: "COCONUT-HUSK_E3_064_A_RGB.JPG"),
306: new ImageFillPattern(IconLoader.class,
307: "CRATOID_D1_064_B_RGB.JPG"),
308: new ImageFillPattern(IconLoader.class,
309: "OP-ART_A2_064_A_RGB.JPG"),
310: new ImageFillPattern(IconLoader.class,
311: "BOILERPLATE_C3_064_B_RGB.JPG"),
312: new ImageFillPattern(IconLoader.class,
313: "BLUE-RIVET_C3_064_A_RGB.JPG"),
314: new ImageFillPattern(IconLoader.class,
315: "RUSH-MATTING_F1_064_B_RGB.JPG"),
316: new ImageFillPattern(IconLoader.class,
317: "MOLD_E1_064_A_RGB.JPG"),
318: new ImageFillPattern(IconLoader.class,
319: "EMBOSSED-PAPER_C4_064_A_RGB.JPG"),
320: new ImageFillPattern(IconLoader.class,
321: "ELEPHANT-HIDE_E3_064_A_RGB.JPG"),
322: new ImageFillPattern(IconLoader.class,
323: "ASPHALT_F1_064_B_RGB.JPG"),
324: new ImageFillPattern(IconLoader.class,
325: "METAL-MESH_C3_064_A_RGB.JPG"),
326: new ImageFillPattern(IconLoader.class,
327: "GLASS-DRIPS_C2_064_A_RGB.JPG"),
328: new ImageFillPattern(IconLoader.class,
329: "CEILING-TILE_F2_064_A_RGB.JPG"),
330: new ImageFillPattern(IconLoader.class,
331: "HERRINGBONE_C1_064_B_RGB.JPG"),
332: new ImageFillPattern(IconLoader.class,
333: "BUBBLOID_D1_064_A_RGB.JPG"),
334: new ImageFillPattern(IconLoader.class,
335: "LEATHER_C1_064_A_RGB.JPG"),
336: new ImageFillPattern(IconLoader.class,
337: "LAVA-FLOW_C5_064_A_RGB.JPG"),
338: new ImageFillPattern(IconLoader.class,
339: "GREEN-STUCCO_F1_064_A_RGB.JPG"),
340: new ImageFillPattern(IconLoader.class,
341: "STARLIGHT_D1_064_B_RGB.JPG"),
342: new ImageFillPattern(IconLoader.class,
343: "RED-STUCCO_F1_064_B_RGB.JPG"),
344: new ImageFillPattern(IconLoader.class,
345: "BOILERPLATE_C3_064_A_RGB.JPG"),
346: new ImageFillPattern(IconLoader.class,
347: "BLUE-WEAVE_C1_064_A_RGB.JPG"),
348: new ImageFillPattern(IconLoader.class,
349: "PURPLE-HIDE_D1_064_A_RGB.JPG"),
350: new ImageFillPattern(IconLoader.class,
351: "SECURITY-GLASS_C2_064_B_RGB.JPG"),
352: new ImageFillPattern(IconLoader.class,
353: "PRESSED-ALLOY_C3_064_A_RGB.JPG"),
354: new ImageFillPattern(IconLoader.class,
355: "GRAY-RENDER_F1_064_B_RGB.JPG"),
356: new ImageFillPattern(IconLoader.class,
357: "BLUE-WEAVE_C1_064_B_RGB.JPG"),
358: new ImageFillPattern(IconLoader.class,
359: "DISH-CLOTH_C1_064_A_RGB.JPG"),
360: new ImageFillPattern(IconLoader.class,
361: "GREEN-ZIGZAG_A2_064_A_RGB.JPG"),
362: new ImageFillPattern(IconLoader.class,
363: "BASKET_A2_064_B_RGB.JPG"),
364: new ImageFillPattern(IconLoader.class,
365: "BROCADE_C1_064_A_RGB.JPG"),
366: new ImageFillPattern(IconLoader.class,
367: "THREAD-BEAR_C1_064_B_RGB.JPG"),
368: new ImageFillPattern(IconLoader.class,
369: "TIMBER-YARD_C6_064_A_RGB.JPG"),
370: new ImageFillPattern(IconLoader.class,
371: "TIMBER-YARD_C6_064_B_RGB.JPG"),
372: new ImageFillPattern(IconLoader.class,
373: "TORTOISE-SHELL_E3_064_A_RGB.JPG"),
374: new ImageFillPattern(IconLoader.class,
375: "TORTOISE-SHELL_E3_064_B_RGB.JPG"),
376: new ImageFillPattern(IconLoader.class,
377: "VELVET-BODICE_C1_064_A_RGB.JPG"),
378: new ImageFillPattern(IconLoader.class,
379: "VINE-LEAF_E3_064_A_RGB.JPG"),
380: new ImageFillPattern(IconLoader.class,
381: "VINE-LEAF_E3_064_B_RGB.JPG"),
382: new ImageFillPattern(IconLoader.class,
383: "WOOD-TILE_C6_064_A_RGB.JPG"),
384: new ImageFillPattern(IconLoader.class,
385: "WOOD-VENEER_F2_064_A_RGB.JPG"),
386: new ImageFillPattern(IconLoader.class,
387: "WOOD-VENEER_F2_064_B_RGB.JPG"),
388: new ImageFillPattern(IconLoader.class,
389: "WORM-CASTS_E3_064_A_RGB.JPG"),
390: new ImageFillPattern(IconLoader.class,
391: "WORM-CASTS_E3_064_B_RGB.JPG"),
392: new ImageFillPattern(IconLoader.class,
393: "warp-&-weft_C1_064_A_RGB.JPG") };
394: }
395: }
|