Пример #1
0
        // DrawMode() should be used in conjuction with DrawOutline()
        public static RenderParameter DrawMode()
        {
            if (m_DrawMode == null)
                m_DrawMode = CreateDrawMode();

            return m_DrawMode;
        }
Пример #2
0
 public void DrawScales(System.Drawing.Graphics gc, RenderParameter r, PointD thePoint, PointD theVector)
 {
 }
Пример #3
0
 public void DrawPositiveSpace(Graphics gc, GraphicsPath path, RenderParameter r)
 {
 }
Пример #4
0
 public void DrawHandles(Graphics gc, IToolFilter filter, RenderParameter r)
 {
 }
Пример #5
0
 protected static void CreateDrawMode(RenderParameter n)
 {
     n.RegionOutline = new Pen(Color.FromArgb(192, Color.Silver));
     n.RegionGuides = n.RegionOutline;
     n.StrokeOutline = n.RegionOutline;
     n.HandleOutline = Pens.Transparent;
     n.RegionInsideFill = Brushes.Transparent; // new SolidBrush(Color.FromArgb(127, Color.White));
     n.RegionOutsideFill = null;
     n.FontType = new Font(System.Drawing.FontFamily.GenericSansSerif, 8);
 }
Пример #6
0
 public static RenderParameter DetailedMode()
 {
     if (m_DetailedMode == null)
         m_DetailedMode = CreateDetailedMode();
     return m_DetailedMode;
 }
Пример #7
0
 private static RenderParameter CreateDrawMode()
 {
     RenderParameter n = new RenderParameter();
     CreateDrawMode(n);
     return n;
 }
Пример #8
0
 private static RenderParameter CreateDetailedMode()
 {
     RenderParameter n = new RenderParameter();
     n.RegionOutline = new Pen(Color.Black, 1);
     n.RegionGuides = new Pen(Color.Black, 1);
     n.StrokeOutline = new Pen(Color.Black, 1);
     n.HandleOutline = new Pen(Color.DarkBlue, 1);
     n.HandleFill = new SolidBrush(Color.LightBlue);
     n.StrokeFill = new SolidBrush(Color.FromArgb(127, Color.White));
     n.RegionInsideFill = new SolidBrush(Color.FromArgb(127, Color.White));
     n.RegionOutsideFill = null;
     n.FontType = new Font(System.Drawing.FontFamily.GenericSansSerif, 8);
     return n;
 }
 public void DrawPositiveSpace(Graphics gc, GraphicsPath path, RenderParameter r)
 {
     // do nothing here
 }
 public void DrawHandles(Graphics gc, IToolFilter filter, RenderParameter r)
 {
     // do nothing here
 }
 public void DrawArrow(System.Drawing.Graphics gc, RenderParameter r, PointD thePoint, PointD theVector)
 {
     // do nothing here
 }