RectangleBrushes.cs

Go to the documentation of this file.
00001 /*
00002 NPlot - A charting library for .NET
00003 
00004 RectangleBrushes.cs
00005 Copyright (C) 2005
00006 Matt Howlett
00007 
00008 Redistribution and use of NPlot or parts there-of in source and
00009 binary forms, with or without modification, are permitted provided
00010 that the following conditions are met:
00011 
00012 1. Re-distributions in source form must retain at the head of each
00013    source file the above copyright notice, this list of conditions
00014    and the following disclaimer.
00015 
00016 2. Any product ("the product") that makes use NPlot or parts 
00017    there-of must either:
00018   
00019     (a) allow any user of the product to obtain a complete machine-
00020         readable copy of the corresponding source code for the 
00021         product and the version of NPlot used for a charge no more
00022         than your cost of physically performing source distribution,
00023         on a medium customarily used for software interchange, or:
00024 
00025     (b) reproduce the following text in the documentation, about 
00026         box or other materials intended to be read by human users
00027         of the product that is provided to every human user of the
00028         product: 
00029    
00030               "This product includes software developed as 
00031               part of the NPlot library project available 
00032               from: http://www.nplot.com/" 
00033 
00034         The words "This product" may optionally be replace with 
00035         the actual name of the product.
00036 
00037 ------------------------------------------------------------------------
00038 
00039 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00040 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00041 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00042 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00043 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00045 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00046 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00047 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00048 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00049 
00050 */
00051 
00052 using System;
00053 using System.Drawing;
00054 using System.Drawing.Drawing2D;
00055 
00056 namespace NPlot
00057 {
00058 
00063         public interface IRectangleBrush
00064         {
00070                 Brush Get( Rectangle rectangle );
00071         }
00072 
00076         public class RectangleBrushes
00077         {
00078 
00082                 public class Solid : IRectangleBrush
00083                 {
00084                         Brush brush_;
00085 
00090                         public Solid( Color c )
00091                         {
00092                                 brush_ = new SolidBrush( c );
00093                         }
00094 
00100                         public Brush Get( Rectangle rectangle )
00101                         {
00102                                 return brush_;
00103                         }
00104 
00105                         #region Default Brushes
00109                         public static Solid AliceBlue
00110                         {
00111                                 get
00112                                 {
00113                                         return new Solid( Color.AliceBlue );
00114                                 }
00115                         }
00116 
00120                         public static Solid AntiqueWhite
00121                         {
00122                                 get
00123                                 {
00124                                         return new Solid( Color.AntiqueWhite );
00125                                 }
00126                         }
00127 
00131                         public static Solid Aqua
00132                         {
00133                                 get
00134                                 {
00135                                         return new Solid( Color.Aqua );
00136                                 }
00137                         }
00138 
00142                         public static Solid Aquamarine
00143                         {
00144                                 get
00145                                 {
00146                                         return new Solid( Color.Aquamarine );
00147                                 }
00148                         }
00149 
00153                         public static Solid Azure
00154                         {
00155                                 get
00156                                 {
00157                                         return new Solid( Color.Azure );
00158                                 }
00159                         }
00160 
00164                         public static Solid Beige
00165                         {
00166                                 get
00167                                 {
00168                                         return new Solid( Color.Beige );
00169                                 }
00170                         }
00171 
00175                         public static Solid Bisque
00176                         {
00177                                 get
00178                                 {
00179                                         return new Solid( Color.Bisque );
00180                                 }
00181                         }
00182 
00186                         public static Solid Black
00187                         {
00188                                 get
00189                                 {
00190                                         return new Solid( Color.Black );
00191                                 }
00192                         }
00193 
00197                         public static Solid BlanchedAlmond
00198                         {
00199                                 get
00200                                 {
00201                                         return new Solid( Color.BlanchedAlmond );
00202                                 }
00203                         }
00204 
00208                         public static Solid Blue
00209                         {
00210                                 get
00211                                 {
00212                                         return new Solid( Color.Blue );
00213                                 }
00214                         }
00215 
00219                         public static Solid BlueViolet
00220                         {
00221                                 get
00222                                 {
00223                                         return new Solid( Color.BlueViolet );
00224                                 }
00225                         }
00226 
00230                         public static Solid Brown
00231                         {
00232                                 get
00233                                 {
00234                                         return new Solid( Color.Brown );
00235                                 }
00236                         }
00237 
00241                         public static Solid BurlyWood
00242                         {
00243                                 get
00244                                 {
00245                                         return new Solid( Color.BurlyWood );
00246                                 }
00247                         }
00248 
00252                         public static Solid CadetBlue
00253                         {
00254                                 get
00255                                 {
00256                                         return new Solid( Color.CadetBlue );
00257                                 }
00258                         }
00259 
00263                         public static Solid Chartreuse
00264                         {
00265                                 get
00266                                 {
00267                                         return new Solid( Color.Chartreuse );
00268                                 }
00269                         }
00270 
00274                         public static Solid Chocolate
00275                         {
00276                                 get
00277                                 {
00278                                         return new Solid( Color.Chocolate );
00279                                 }
00280                         }
00281 
00285                         public static Solid Coral
00286                         {
00287                                 get
00288                                 {
00289                                         return new Solid( Color.Coral );
00290                                 }
00291                         }
00292 
00296                         public static Solid CornflowerBlue
00297                         {
00298                                 get
00299                                 {
00300                                         return new Solid( Color.CornflowerBlue );
00301                                 }
00302                         }
00303 
00307                         public static Solid Cornsilk
00308                         {
00309                                 get
00310                                 {
00311                                         return new Solid( Color.Cornsilk );
00312                                 }
00313                         }
00314 
00318                         public static Solid Crimson
00319                         {
00320                                 get
00321                                 {
00322                                         return new Solid( Color.Crimson );
00323                                 }
00324                         }
00325 
00329                         public static Solid Cyan
00330                         {
00331                                 get
00332                                 {
00333                                         return new Solid( Color.Cyan );
00334                                 }
00335                         }
00336 
00340                         public static Solid DarkBlue
00341                         {
00342                                 get
00343                                 {
00344                                         return new Solid( Color.DarkBlue );
00345                                 }
00346                         }
00347 
00351                         public static Solid DarkCyan
00352                         {
00353                                 get
00354                                 {
00355                                         return new Solid( Color.DarkCyan );
00356                                 }
00357                         }
00358 
00362                         public static Solid DarkGoldenrod
00363                         {
00364                                 get
00365                                 {
00366                                         return new Solid( Color.DarkGoldenrod );
00367                                 }
00368                         }
00369 
00373                         public static Solid DarkGray
00374                         {
00375                                 get
00376                                 {
00377                                         return new Solid( Color.DarkGray );
00378                                 }
00379                         }
00380 
00384                         public static Solid DarkGreen
00385                         {
00386                                 get
00387                                 {
00388                                         return new Solid( Color.DarkGreen );
00389                                 }
00390                         }
00391 
00395                         public static Solid DarkKhaki
00396                         {
00397                                 get
00398                                 {
00399                                         return new Solid( Color.DarkKhaki );
00400                                 }
00401                         }
00402 
00406                         public static Solid DarkMagenta
00407                         {
00408                                 get
00409                                 {
00410                                         return new Solid( Color.DarkMagenta );
00411                                 }
00412                         }
00413 
00417                         public static Solid DarkOliveGreen
00418                         {
00419                                 get
00420                                 {
00421                                         return new Solid( Color.DarkOliveGreen );
00422                                 }
00423                         }
00424 
00428                         public static Solid DarkOrange
00429                         {
00430                                 get
00431                                 {
00432                                         return new Solid( Color.DarkOrange );
00433                                 }
00434                         }
00435 
00439                         public static Solid DarkOrchid
00440                         {
00441                                 get
00442                                 {
00443                                         return new Solid( Color.DarkOrchid );
00444                                 }
00445                         }
00446 
00450                         public static Solid DarkRed
00451                         {
00452                                 get
00453                                 {
00454                                         return new Solid( Color.DarkRed );
00455                                 }
00456                         }
00457 
00461                         public static Solid DarkSalmon
00462                         {
00463                                 get
00464                                 {
00465                                         return new Solid( Color.DarkSalmon );
00466                                 }
00467                         }
00468 
00472                         public static Solid DarkSeaGreen
00473                         {
00474                                 get
00475                                 {
00476                                         return new Solid( Color.DarkSeaGreen );
00477                                 }
00478                         }
00479 
00483                         public static Solid DarkSlateBlue
00484                         {
00485                                 get
00486                                 {
00487                                         return new Solid( Color.DarkSlateBlue );
00488                                 }
00489                         }
00490 
00494                         public static Solid DarkSlateGray
00495                         {
00496                                 get
00497                                 {
00498                                         return new Solid( Color.DarkSlateGray );
00499                                 }
00500                         }
00501 
00505                         public static Solid DarkTurquoise
00506                         {
00507                                 get
00508                                 {
00509                                         return new Solid( Color.DarkTurquoise );
00510                                 }
00511                         }
00512 
00516                         public static Solid DarkViolet
00517                         {
00518                                 get
00519                                 {
00520                                         return new Solid( Color.DarkViolet );
00521                                 }
00522                         }
00523 
00527                         public static Solid DeepPink
00528                         {
00529                                 get
00530                                 {
00531                                         return new Solid( Color.DeepPink );
00532                                 }
00533                         }
00534 
00538                         public static Solid DeepSkyBlue
00539                         {
00540                                 get
00541                                 {
00542                                         return new Solid( Color.DeepSkyBlue );
00543                                 }
00544                         }
00545 
00549                         public static Solid DimGray
00550                         {
00551                                 get
00552                                 {
00553                                         return new Solid( Color.DimGray );
00554                                 }
00555                         }
00556 
00560                         public static Solid DodgerBlue
00561                         {
00562                                 get
00563                                 {
00564                                         return new Solid( Color.DodgerBlue );
00565                                 }
00566                         }
00567 
00571                         public static Solid Firebrick
00572                         {
00573                                 get
00574                                 {
00575                                         return new Solid( Color.Firebrick );
00576                                 }
00577                         }
00578 
00582                         public static Solid FloralWhite
00583                         {
00584                                 get
00585                                 {
00586                                         return new Solid( Color.FloralWhite );
00587                                 }
00588                         }
00589 
00593                         public static Solid ForestGreen
00594                         {
00595                                 get
00596                                 {
00597                                         return new Solid( Color.ForestGreen );
00598                                 }
00599                         }
00600 
00604                         public static Solid Fuchsia
00605                         {
00606                                 get
00607                                 {
00608                                         return new Solid( Color.Fuchsia );
00609                                 }
00610                         }
00611 
00615                         public static Solid Gainsboro
00616                         {
00617                                 get
00618                                 {
00619                                         return new Solid( Color.Gainsboro );
00620                                 }
00621                         }
00622 
00626                         public static Solid GhostWhite
00627                         {
00628                                 get
00629                                 {
00630                                         return new Solid( Color.GhostWhite );
00631                                 }
00632                         }
00633 
00637                         public static Solid Gold
00638                         {
00639                                 get
00640                                 {
00641                                         return new Solid( Color.Gold );
00642                                 }
00643                         }
00644 
00648                         public static Solid Goldenrod
00649                         {
00650                                 get
00651                                 {
00652                                         return new Solid( Color.Goldenrod );
00653                                 }
00654                         }
00655 
00659                         public static Solid Gray 
00660                         {
00661                                 get
00662                                 {
00663                                         return new Solid( Color.Gray );
00664                                 }
00665                         }
00666 
00670                         public static Solid Green
00671                         {
00672                                 get
00673                                 {
00674                                         return new Solid( Color.Green );
00675                                 }
00676                         }
00677 
00681                         public static Solid GreenYellow
00682                         {
00683                                 get
00684                                 {
00685                                         return new Solid( Color.GreenYellow );
00686                                 }
00687                         }
00688 
00692                         public static Solid Honeydew
00693                         {
00694                                 get
00695                                 {
00696                                         return new Solid( Color.Honeydew );
00697                                 }
00698                         }
00699 
00703                         public static Solid HotPink
00704                         {
00705                                 get
00706                                 {
00707                                         return new Solid( Color.HotPink );
00708                                 }
00709                         }
00710 
00714                         public static Solid IndianRed
00715                         {
00716                                 get
00717                                 {
00718                                         return new Solid( Color.IndianRed );
00719                                 }
00720                         }
00721 
00725                         public static Solid Indigo
00726                         {
00727                                 get
00728                                 {
00729                                         return new Solid( Color.Indigo );
00730                                 }
00731                         }
00732 
00736                         public static Solid Ivory
00737                         {
00738                                 get
00739                                 {
00740                                         return new Solid( Color.Ivory );
00741                                 }
00742                         }
00743 
00747                         public static Solid Khaki
00748                         {
00749                                 get
00750                                 {
00751                                         return new Solid( Color.Khaki );
00752                                 }
00753                         }
00754 
00758                         public static Solid Lavender
00759                         {
00760                                 get
00761                                 {
00762                                         return new Solid( Color.Lavender );
00763                                 }
00764                         }
00765 
00769                         public static Solid LavenderBlush
00770                         {
00771                                 get
00772                                 {
00773                                         return new Solid( Color.LavenderBlush );
00774                                 }
00775                         }
00776 
00780                         public static Solid LawnGreen
00781                         {
00782                                 get
00783                                 {
00784                                         return new Solid( Color.LawnGreen );
00785                                 }
00786                         }
00787 
00791                         public static Solid LemonChiffon
00792                         {
00793                                 get
00794                                 {
00795                                         return new Solid( Color.LemonChiffon );
00796                                 }
00797                         }
00798 
00802                         public static Solid LightBlue
00803                         {
00804                                 get
00805                                 {
00806                                         return new Solid( Color.LightBlue );
00807                                 }
00808                         }
00809 
00813                         public static Solid LightCoral
00814                         {
00815                                 get
00816                                 {
00817                                         return new Solid( Color.LightCoral );
00818                                 }
00819                         }
00820 
00824                         public static Solid LightCyan
00825                         {
00826                                 get
00827                                 {
00828                                         return new Solid( Color.LightCyan );
00829                                 }
00830                         }
00831 
00835                         public static Solid LightGoldenrodYellow
00836                         {
00837                                 get
00838                                 {
00839                                         return new Solid( Color.LightGoldenrodYellow );
00840                                 }
00841                         }
00842 
00846                         public static Solid LightGray
00847                         {
00848                                 get
00849                                 {
00850                                         return new Solid( Color.LightGray );
00851                                 }
00852                         }
00853 
00857                         public static Solid LightGreen
00858                         {
00859                                 get
00860                                 {
00861                                         return new Solid( Color.LightGreen );
00862                                 }
00863                         }
00864 
00868                         public static Solid LightPink
00869                         {
00870                                 get
00871                                 {
00872                                         return new Solid( Color.LightPink );
00873                                 }
00874                         }
00875 
00879                         public static Solid LightSalmon
00880                         {
00881                                 get
00882                                 {
00883                                         return new Solid( Color.LightSalmon );
00884                                 }
00885                         }
00886 
00890                         public static Solid LightSeaGreen
00891                         {
00892                                 get
00893                                 {
00894                                         return new Solid( Color.LightSeaGreen );
00895                                 }
00896                         }
00897 
00901                         public static Solid LightSkyBlue
00902                         {
00903                                 get
00904                                 {
00905                                         return new Solid( Color.LightSkyBlue );
00906                                 }
00907                         }
00908 
00912                         public static Solid LightSlateGray
00913                         {
00914                                 get
00915                                 {
00916                                         return new Solid( Color.LightSlateGray );
00917                                 }
00918                         }
00919 
00923                         public static Solid LightSteelBlue
00924                         {
00925                                 get
00926                                 {
00927                                         return new Solid( Color.LightSteelBlue );
00928                                 }
00929                         }
00930 
00934                         public static Solid LightYellow
00935                         {
00936                                 get
00937                                 {
00938                                         return new Solid( Color.LightYellow );
00939                                 }
00940                         }
00941 
00945                         public static Solid Lime
00946                         {
00947                                 get
00948                                 {
00949                                         return new Solid( Color.Lime );
00950                                 }
00951                         }
00952 
00956                         public static Solid LimeGreen
00957                         {
00958                                 get
00959                                 {
00960                                         return new Solid( Color.LimeGreen );
00961                                 }
00962                         }
00963 
00967                         public static Solid Linen
00968                         {
00969                                 get
00970                                 {
00971                                         return new Solid( Color.Linen );
00972                                 }
00973                         }
00974 
00978                         public static Solid Magenta
00979                         {
00980                                 get
00981                                 {
00982                                         return new Solid( Color.Magenta );
00983                                 }
00984                         }
00985 
00989                         public static Solid Maroon
00990                         {
00991                                 get
00992                                 {
00993                                         return new Solid( Color.Maroon );
00994                                 }
00995                         }
00996 
01000                         public static Solid MediumAquamarine
01001                         {
01002                                 get
01003                                 {
01004                                         return new Solid( Color.MediumAquamarine );
01005                                 }
01006                         }
01007 
01011                         public static Solid MediumBlue
01012                         {
01013                                 get
01014                                 {
01015                                         return new Solid( Color.MediumBlue );
01016                                 }
01017                         }
01018 
01022                         public static Solid MediumOrchid 
01023                         {
01024                                 get
01025                                 {
01026                                         return new Solid( Color.MediumOrchid );
01027                                 }
01028                         }
01029 
01033                         public static Solid MediumPurple
01034                         {
01035                                 get
01036                                 {
01037                                         return new Solid( Color.MediumPurple );
01038                                 }
01039                         }
01040 
01044                         public static Solid MediumSeaGreen
01045                         {
01046                                 get
01047                                 {
01048                                         return new Solid( Color.MediumSeaGreen );
01049                                 }
01050                         }
01051 
01055                         public static Solid MediumSlateBlue
01056                         {
01057                                 get
01058                                 {
01059                                         return new Solid( Color.MediumSlateBlue );
01060                                 }
01061                         }
01062 
01066                         public static Solid MediumSpringGreen
01067                         {
01068                                 get
01069                                 {
01070                                         return new Solid( Color.MediumSpringGreen );
01071                                 }
01072                         }
01073 
01077                         public static Solid MediumTurquoise
01078                         {
01079                                 get
01080                                 {
01081                                         return new Solid( Color.MediumTurquoise );
01082                                 }
01083                         }
01084 
01088                         public static Solid MediumVioletRed
01089                         {
01090                                 get
01091                                 {
01092                                         return new Solid( Color.MediumVioletRed );
01093                                 }
01094                         }
01095 
01099                         public static Solid MidnightBlue 
01100                         {
01101                                 get
01102                                 {
01103                                         return new Solid( Color.MidnightBlue );
01104                                 }
01105                         }
01106 
01110                         public static Solid MintCream
01111                         {
01112                                 get
01113                                 {
01114                                         return new Solid( Color.MintCream );
01115                                 }
01116                         }
01117 
01121                         public static Solid MistyRose
01122                         {
01123                                 get
01124                                 {
01125                                         return new Solid( Color.MistyRose );
01126                                 }
01127                         }
01128 
01132                         public static Solid Moccasin
01133                         {
01134                                 get
01135                                 {
01136                                         return new Solid( Color.Moccasin );
01137                                 }
01138                         }
01139 
01143                         public static Solid NavajoWhite
01144                         {
01145                                 get
01146                                 {
01147                                         return new Solid( Color.NavajoWhite );
01148                                 }
01149                         }
01150 
01154                         public static Solid Navy
01155                         {
01156                                 get
01157                                 {
01158                                         return new Solid( Color.Navy );
01159                                 }
01160                         }
01161 
01165                         public static Solid OldLace
01166                         {
01167                                 get
01168                                 {
01169                                         return new Solid( Color.OldLace );
01170                                 }
01171                         }
01172 
01176                         public static Solid Olive
01177                         {
01178                                 get
01179                                 {
01180                                         return new Solid( Color.Olive );
01181                                 }
01182                         }
01183 
01187                         public static Solid OliveDrab
01188                         {
01189                                 get
01190                                 {
01191                                         return new Solid( Color.OliveDrab );
01192                                 }
01193                         }
01194 
01198                         public static Solid Orange
01199                         {
01200                                 get
01201                                 {
01202                                         return new Solid( Color.Orange );
01203                                 }
01204                         }
01205 
01209                         public static Solid OrangeRed
01210                         {
01211                                 get
01212                                 {
01213                                         return new Solid( Color.OrangeRed );
01214                                 }
01215                         }
01216 
01220                         public static Solid Orchid
01221                         {
01222                                 get
01223                                 {
01224                                         return new Solid( Color.Orchid );
01225                                 }
01226                         }
01227 
01231                         public static Solid PaleGoldenrod
01232                         {
01233                                 get
01234                                 {
01235                                         return new Solid( Color.PaleGoldenrod );
01236                                 }
01237                         }
01238 
01242                         public static Solid PaleGreen
01243                         {
01244                                 get
01245                                 {
01246                                         return new Solid( Color.PaleGreen );
01247                                 }
01248                         }
01249 
01253                         public static Solid PaleTurquoise
01254                         {
01255                                 get
01256                                 {
01257                                         return new Solid( Color.PaleTurquoise );
01258                                 }
01259                         }
01260 
01264                         public static Solid PaleVioletRed
01265                         {
01266                                 get
01267                                 {
01268                                         return new Solid( Color.PaleVioletRed );
01269                                 }
01270                         }
01271 
01275                         public static Solid PapayaWhip
01276                         {
01277                                 get
01278                                 {
01279                                         return new Solid( Color.PapayaWhip );
01280                                 }
01281                         }
01282 
01286                         public static Solid PeachPuff
01287                         {
01288                                 get
01289                                 {
01290                                         return new Solid( Color.PeachPuff );
01291                                 }
01292                         }
01293 
01297                         public static Solid Peru
01298                         {
01299                                 get
01300                                 {
01301                                         return new Solid( Color.Peru );
01302                                 }
01303                         }
01304 
01308                         public static Solid Pink
01309                         {
01310                                 get
01311                                 {
01312                                         return new Solid( Color.Pink );
01313                                 }
01314                         }
01315 
01319                         public static Solid Plum
01320                         {
01321                                 get
01322                                 {
01323                                         return new Solid( Color.Plum );
01324                                 }
01325                         }
01326 
01330                         public static Solid PowderBlue
01331                         {
01332                                 get
01333                                 {
01334                                         return new Solid( Color.PowderBlue );
01335                                 }
01336                         }
01337 
01341                         public static Solid Purple
01342                         {
01343                                 get
01344                                 {
01345                                         return new Solid( Color.Purple );
01346                                 }
01347                         }
01348 
01352                         public static Solid Red
01353                         {
01354                                 get
01355                                 {
01356                                         return new Solid( Color.Red );
01357                                 }
01358                         }
01359 
01363                         public static Solid RosyBrown
01364                         {
01365                                 get
01366                                 {
01367                                         return new Solid( Color.RosyBrown );
01368                                 }
01369                         }
01370 
01374                         public static Solid RoyalBlue
01375                         {
01376                                 get
01377                                 {
01378                                         return new Solid( Color.RoyalBlue );
01379                                 }
01380                         }
01381 
01385                         public static Solid SaddleBrown
01386                         {
01387                                 get
01388                                 {
01389                                         return new Solid( Color.SaddleBrown );
01390                                 }
01391                         }
01392 
01396                         public static Solid Salmon
01397                         {
01398                                 get
01399                                 {
01400                                         return new Solid( Color.Salmon );
01401                                 }
01402                         }
01403 
01407                         public static Solid SandyBrown
01408                         {
01409                                 get
01410                                 {
01411                                         return new Solid( Color.SandyBrown );
01412                                 }
01413                         }
01414 
01418                         public static Solid SeaGreen
01419                         {
01420                                 get
01421                                 {
01422                                         return new Solid( Color.SeaGreen );
01423                                 }
01424                         }
01425 
01429                         public static Solid SeaShell
01430                         {
01431                                 get
01432                                 {
01433                                         return new Solid( Color.SeaShell );
01434                                 }
01435                         }
01436 
01440                         public static Solid Sienna
01441                         {
01442                                 get
01443                                 {
01444                                         return new Solid( Color.Sienna );
01445                                 }
01446                         }
01447 
01451                         public static Solid Silver
01452                         {
01453                                 get
01454                                 {
01455                                         return new Solid( Color.Silver );
01456                                 }
01457                         }
01458 
01462                         public static Solid SkyBlue
01463                         {
01464                                 get
01465                                 {
01466                                         return new Solid( Color.SkyBlue );
01467                                 }
01468                         }
01469 
01473                         public static Solid SlateBlue
01474                         {
01475                                 get
01476                                 {
01477                                         return new Solid( Color.SlateBlue );
01478                                 }
01479                         }
01480 
01484                         public static Solid SlateGray
01485                         {
01486                                 get
01487                                 {
01488                                         return new Solid( Color.SlateGray );
01489                                 }
01490                         }
01491 
01495                         public static Solid Snow
01496                         {
01497                                 get
01498                                 {
01499                                         return new Solid( Color.Snow );
01500                                 }
01501                         }
01502 
01506                         public static Solid SpringGreen
01507                         {
01508                                 get
01509                                 {
01510                                         return new Solid( Color.SpringGreen );
01511                                 }
01512                         }
01513 
01517                         public static Solid SteelBlue
01518                         {
01519                                 get
01520                                 {
01521                                         return new Solid( Color.SteelBlue );
01522                                 }
01523                         }
01524 
01528                         public static Solid Tan
01529                         {
01530                                 get
01531                                 {
01532                                         return new Solid( Color.Tan );
01533                                 }
01534                         }
01535 
01539                         public static Solid Teal
01540                         {
01541                                 get
01542                                 {
01543                                         return new Solid( Color.Teal );
01544                                 }
01545                         }
01546 
01550                         public static Solid Thistle
01551                         {
01552                                 get
01553                                 {
01554                                         return new Solid( Color.Thistle );
01555                                 }
01556                         }
01557 
01561                         public static Solid Tomato
01562                         {
01563                                 get
01564                                 {
01565                                         return new Solid( Color.Tomato );
01566                                 }
01567                         }
01568 
01572                         public static Solid Transparent
01573                         {
01574                                 get
01575                                 {
01576                                         return new Solid( Color.Transparent );
01577                                 }
01578                         }
01579 
01583                         public static Solid Turquoise
01584                         {
01585                                 get
01586                                 {
01587                                         return new Solid( Color.Turquoise );
01588                                 }
01589                         }
01590 
01594                         public static Solid Violet
01595                         {
01596                                 get
01597                                 {
01598                                         return new Solid( Color.Violet );
01599                                 }
01600                         }
01601 
01605                         public static Solid Wheat
01606                         {
01607                                 get
01608                                 {
01609                                         return new Solid( Color.Wheat );
01610                                 }
01611                         }
01612 
01616                         public static Solid White
01617                         {
01618                                 get
01619                                 {
01620                                         return new Solid( Color.White );
01621                                 }
01622                         }
01623 
01627                         public static Solid WhiteSmoke
01628                         {
01629                                 get
01630                                 {
01631                                         return new Solid( Color.WhiteSmoke );
01632                                 }
01633                         }
01634 
01638                         public static Solid Yellow
01639                         {
01640                                 get
01641                                 {
01642                                         return new Solid( Color.Yellow );
01643                                 }
01644                         }
01645 
01649                         public static Solid YellowGreen
01650                         {
01651                                 get
01652                                 {
01653                                         return new Solid( Color.YellowGreen );
01654                                 }
01655                         }
01656 
01657                         #endregion
01658 
01659                 }
01660 
01661 
01665                 public class Horizontal : IRectangleBrush
01666                 {
01667                         private Color c1_;
01668                         private Color c2_;
01669                         
01675                         public Horizontal( Color c1, Color c2 )
01676                         {
01677                                 c1_ = c1;
01678                                 c2_ = c2;
01679                         }
01680 
01686                         public Brush Get( Rectangle rectangle )
01687                         {
01688                                 return new LinearGradientBrush( rectangle, c1_, c2_, LinearGradientMode.Horizontal );
01689                         }
01690 
01691                         #region DefaultBrushes
01692 
01696                         public static Horizontal FaintBlueFade
01697                         {
01698                                 get
01699                                 {
01700                                         return new Horizontal( Color.FromArgb(200,200,255), Color.FromArgb(255,255,255) );
01701                                 }
01702                         }
01703 
01707                         public static Horizontal FaintRedFade
01708                         {
01709                                 get
01710                                 {
01711                                         return new Horizontal( Color.FromArgb(255,200,200), Color.FromArgb(255,255,255) );
01712                                 }
01713                         }
01714 
01718                         public static Horizontal FaintGreenFade
01719                         {
01720                                 get
01721                                 {
01722                                         return new Horizontal( Color.FromArgb(200,255,200), Color.FromArgb(255,255,255) );
01723                                 }
01724                         }
01725 
01726                         #endregion
01727 
01728                 }
01729 
01730 
01734                 public class Vertical : IRectangleBrush
01735                 {
01736                         private Color c1_;
01737                         private Color c2_;
01738                         
01744                         public Vertical( Color c1, Color c2 )
01745                         {
01746                                 c1_ = c1;
01747                                 c2_ = c2;
01748                         }
01749 
01755                         public Brush Get( Rectangle rectangle )
01756                         {
01757                                 return new LinearGradientBrush( rectangle, c1_, c2_, LinearGradientMode.Vertical );
01758                         }
01759 
01760 
01761                         #region DefaultBrushes
01762 
01766                         public static Vertical FaintBlueFade
01767                         {
01768                                 get
01769                                 {
01770                                         return new Vertical( Color.FromArgb(200,200,255), Color.FromArgb(255,255,255) );
01771                                 }
01772                         }
01773 
01777                         public static Vertical FaintRedFade
01778                         {
01779                                 get
01780                                 {
01781                                         return new Vertical( Color.FromArgb(255,200,200), Color.FromArgb(255,255,255) );
01782                                 }
01783                         }
01784 
01788                         public static Vertical FaintGreenFade
01789                         {
01790                                 get
01791                                 {
01792                                         return new Vertical( Color.FromArgb(200,255,200), Color.FromArgb(255,255,255) );
01793                                 }
01794                         }
01795 
01796                         #endregion
01797                 }
01798 
01799 
01803                 public class HorizontalCenterFade : IRectangleBrush
01804                 {
01805                         private Color c1_;
01806                         private Color c2_;
01807 
01813                         public HorizontalCenterFade( Color c1, Color c2 )
01814                         {
01815                                 c1_ = c1;
01816                                 c2_ = c2;
01817                         }
01818 
01824                         public Brush Get( Rectangle rectangle )
01825                         {
01826                                 LinearGradientBrush brush = new LinearGradientBrush( rectangle, c1_, c2_, LinearGradientMode.Horizontal );
01827                                 float[] relativeIntensities = { 0.0f, 0.9f, 1.0f, 0.9f, 0.0f };
01828                                 float[] relativePositions   = { 0.0f, 0.4f, 0.5f, 0.6f, 1.0f };
01829                                 Blend blend = new Blend();
01830                                 blend.Factors = relativeIntensities;
01831                                 blend.Positions = relativePositions;
01832                                 brush.Blend = blend;
01833                                 return brush;
01834                         }
01835 
01836                         #region DefaultBrushes
01837 
01841                         public static HorizontalCenterFade FaintBlueFade
01842                         {
01843                                 get
01844                                 {
01845                                         return new HorizontalCenterFade( Color.FromArgb(200,200,255), Color.FromArgb(255,255,255) );
01846                                 }
01847                         }
01848 
01852                         public static HorizontalCenterFade FaintRedFade
01853                         {
01854                                 get
01855                                 {
01856                                         return new HorizontalCenterFade( Color.FromArgb(255,200,200), Color.FromArgb(255,255,255) );
01857                                 }
01858                         }
01859 
01863                         public static HorizontalCenterFade FaintGreenFade
01864                         {
01865                                 get
01866                                 {
01867                                         return new HorizontalCenterFade( Color.FromArgb(200,255,200), Color.FromArgb(255,255,255) );
01868                                 }
01869                         }
01870 
01871                         #endregion
01872                 }
01873 
01874 
01875 
01879                 public class VerticalCenterFade : IRectangleBrush
01880                 {
01881                         private Color c1_;
01882                         private Color c2_;
01883 
01889                         public VerticalCenterFade( Color c1, Color c2 )
01890                         {
01891                                 c1_ = c1;
01892                                 c2_ = c2;
01893                         }
01894 
01900                         public Brush Get( Rectangle rectangle )
01901                         {
01902                                 LinearGradientBrush brush = new LinearGradientBrush( rectangle, c1_, c2_, LinearGradientMode.Vertical );
01903                                 float[] relativeIntensities = { 0.0f, 0.9f, 1.0f, 0.9f, 0.0f };
01904                                 float[] relativePositions   = { 0.0f, 0.4f, 0.5f, 0.6f, 1.0f };
01905                                 Blend blend = new Blend();
01906                                 blend.Factors = relativeIntensities;
01907                                 blend.Positions = relativePositions;
01908                                 brush.Blend = blend;
01909                                 return brush;
01910                         }
01911 
01912                         #region DefaultBrushes
01913 
01917                         public static VerticalCenterFade FaintBlueFade
01918                         {
01919                                 get
01920                                 {
01921                                         return new VerticalCenterFade( Color.FromArgb(200,200,255), Color.FromArgb(255,255,255) );
01922                                 }
01923                         }
01924 
01928                         public static VerticalCenterFade FaintRedFade
01929                         {
01930                                 get
01931                                 {
01932                                         return new VerticalCenterFade( Color.FromArgb(255,200,200), Color.FromArgb(255,255,255) );
01933                                 }
01934                         }
01935 
01939                         public static VerticalCenterFade FaintGreenFade
01940                         {
01941                                 get
01942                                 {
01943                                         return new VerticalCenterFade( Color.FromArgb(200,255,200), Color.FromArgb(255,255,255) );
01944                                 }
01945                         }
01946 
01947                         #endregion
01948 
01949                 }
01950 
01951 
01952         }
01953 }

Generated on Sat Nov 5 01:04:06 2005 for NPlot by  doxygen 1.4.5