private RenderThemeHandler(IGraphicFactory graphicFactory, DisplayModel displayModel, string relativePathPrefix, IXmlRenderTheme xmlRenderTheme, XmlReader reader) : base()
 {
     this.reader             = reader;
     this.graphicFactory     = graphicFactory;
     this.displayModel       = displayModel;
     this.relativePathPrefix = relativePathPrefix;
     this.xmlRenderTheme     = xmlRenderTheme;
 }
Пример #2
0
        private static IPaint createPaintFront(IGraphicFactory graphicFactory, DisplayModel displayModel)
        {
            IPaint paint = graphicFactory.CreatePaint();

            paint.Color       = Color.RED;
            paint.StrokeWidth = 2 * displayModel.ScaleFactor;
            paint.Style       = Style.STROKE;
            return(paint);
        }
Пример #3
0
        public LineSymbol(IGraphicFactory graphicFactory, DisplayModel displayModel, string elementName, XmlReader reader, string relativePathPrefix) : base(graphicFactory, displayModel)
        {
            this.display            = Display.IFSPACE;
            this.rotate             = true;
            this.relativePathPrefix = relativePathPrefix;
            this.dyScaled           = new Dictionary <sbyte?, float?>();

            ExtractValues(elementName, reader);
        }
        public static RenderTheme GetRenderTheme(IGraphicFactory graphicFactory, DisplayModel displayModel, IXmlRenderTheme xmlRenderTheme)
        {
            XmlReader reader = null;

            RenderThemeHandler renderThemeHandler = new RenderThemeHandler(graphicFactory, displayModel, xmlRenderTheme.RelativePathPrefix, xmlRenderTheme, reader);

            using (System.IO.Stream inputStream = xmlRenderTheme.RenderThemeAsStream)
            {
                reader = XmlReader.Create(inputStream);
                renderThemeHandler.ProcessRenderTheme();
                return(renderThemeHandler.renderTheme);
            }
        }
Пример #5
0
        public PathText(IGraphicFactory graphicFactory, DisplayModel displayModel, string elementName, XmlReader reader) : base(graphicFactory, displayModel)
        {
            this.fill           = graphicFactory.CreatePaint();
            this.fill.Color     = Color.BLACK;
            this.fill.Style     = Style.FILL;
            this.fill.TextAlign = Align.CENTER;
            this.fills          = new Dictionary <sbyte?, IPaint>();

            this.stroke           = graphicFactory.CreatePaint();
            this.stroke.Color     = Color.BLACK;
            this.stroke.Style     = Style.STROKE;
            this.stroke.TextAlign = Align.CENTER;
            this.strokes          = new Dictionary <sbyte?, IPaint>();
            this.dyScaled         = new Dictionary <sbyte?, float?>();
            this.display          = Display.IFSPACE;

            ExtractValues(graphicFactory, displayModel, elementName, reader);
        }