| Line | |
|---|
| 1 | package charts.series.dots {
|
|---|
| 2 |
|
|---|
| 3 | public class dot_factory {
|
|---|
| 4 |
|
|---|
| 5 | public static function make( index:Number, style:Properties ):PointDotBase {
|
|---|
| 6 |
|
|---|
| 7 | // tr.aces( 'dot factory type', style.get('type'));
|
|---|
| 8 |
|
|---|
| 9 | switch( style.get('type') )
|
|---|
| 10 | {
|
|---|
| 11 | case 'star':
|
|---|
| 12 | return new star(index, style);
|
|---|
| 13 | break;
|
|---|
| 14 |
|
|---|
| 15 | case 'bow':
|
|---|
| 16 | return new bow(index, style);
|
|---|
| 17 | break;
|
|---|
| 18 |
|
|---|
| 19 | case 'anchor':
|
|---|
| 20 | return new anchor(index, style);
|
|---|
| 21 | break;
|
|---|
| 22 |
|
|---|
| 23 | case 'dot':
|
|---|
| 24 | return new Point(index, style);
|
|---|
| 25 | break;
|
|---|
| 26 |
|
|---|
| 27 | case 'solid-dot':
|
|---|
| 28 | return new PointDot(index, style);
|
|---|
| 29 | break;
|
|---|
| 30 |
|
|---|
| 31 | case 'hollow-dot':
|
|---|
| 32 | return new Hollow(index, style);
|
|---|
| 33 | break;
|
|---|
| 34 |
|
|---|
| 35 | default:
|
|---|
| 36 | //
|
|---|
| 37 | // copy out the bow tie and then remove
|
|---|
| 38 | //
|
|---|
| 39 | return new Point(index, style);
|
|---|
| 40 | // return new scat(style);
|
|---|
| 41 | break;
|
|---|
| 42 | }
|
|---|
| 43 | }
|
|---|
| 44 | }
|
|---|
| 45 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.