Пример #1
0
 public TopTextDrawer(NodeLevelsWithText eNodeLevelsWithText, int iMinNodeLevelWithText, int iMaxNodeLevelWithText, string sFontFamily, float fFontSizePt, int iMinimumTextHeight, Color oTextColor, Color oSelectedFontColor, Color oSelectedBackColor) : base(eNodeLevelsWithText, iMinNodeLevelWithText, iMaxNodeLevelWithText)
 {
     this.m_sFontFamily        = sFontFamily;
     this.m_fFontSizePt        = fFontSizePt;
     this.m_iMinimumTextHeight = iMinimumTextHeight;
     this.m_oTextColor         = oTextColor;
     this.m_oSelectedFontColor = oSelectedFontColor;
     this.m_oSelectedBackColor = oSelectedBackColor;
     this.AssertValid();
 }
Пример #2
0
 public CenterCenterTextDrawer(NodeLevelsWithText eNodeLevelsWithText, int iMinNodeLevelWithText, int iMaxNodeLevelWithText, string sFontFamily, float fFontMinSizePt, float fFontMaxSizePt, float fFontIncrementPt, Color oFontSolidColor, int iFontMinAlpha, int iFontMaxAlpha, int iFontAlphaIncrementPerLevel, Color oSelectedFontColor) : base(eNodeLevelsWithText, iMinNodeLevelWithText, iMaxNodeLevelWithText)
 {
     this.m_sFontFamily                 = sFontFamily;
     this.m_fFontMinSizePt              = fFontMinSizePt;
     this.m_fFontMaxSizePt              = fFontMaxSizePt;
     this.m_fFontIncrementPt            = fFontIncrementPt;
     this.m_oFontSolidColor             = oFontSolidColor;
     this.m_iFontMinAlpha               = iFontMinAlpha;
     this.m_iFontMaxAlpha               = iFontMaxAlpha;
     this.m_iFontAlphaIncrementPerLevel = iFontAlphaIncrementPerLevel;
     this.m_oSelectedFontColor          = oSelectedFontColor;
     this.AssertValid();
 }
Пример #3
0
 public TreemapGenerator()
 {
     this.m_oNodes = new Nodes(null);
     this.m_oNodes.TreemapGenerator = this;
     this.m_iPaddingPx = 5;
     this.m_iPaddingDecrementPerLevelPx = 1;
     this.m_iPenWidthPx = 3;
     this.m_iPenWidthDecrementPerLevelPx = 1;
     this.m_oBackColor                  = SystemColors.Window;
     this.m_oBorderColor                = SystemColors.WindowFrame;
     this.m_eNodeColorAlgorithm         = NodeColorAlgorithm.UseColorMetric;
     this.m_oMinColor                   = Color.Red;
     this.m_oMaxColor                   = Color.Green;
     this.m_fMinColorMetric             = -100f;
     this.m_fMaxColorMetric             = 100f;
     this.m_iDiscretePositiveColors     = 20;
     this.m_iDiscreteNegativeColors     = 20;
     this.m_sFontFamily                 = "Arial";
     this.m_fFontMinSizePt              = 8f;
     this.m_fFontMaxSizePt              = 100f;
     this.m_fFontIncrementPt            = 2f;
     this.m_oFontSolidColor             = SystemColors.WindowText;
     this.m_iFontMinAlpha               = 105;
     this.m_iFontMaxAlpha               = 255;
     this.m_iFontAlphaIncrementPerLevel = 50;
     this.m_oSelectedFontColor          = SystemColors.HighlightText;
     this.m_oSelectedBackColor          = SystemColors.Highlight;
     this.m_iNodeLevelsWithText         = NodeLevelsWithText.All;
     this.m_iMinNodeLevelWithText       = 0;
     this.m_iMaxNodeLevelWithText       = 999;
     this.m_eTextLocation               = TextLocation.Top;
     this.m_eEmptySpaceLocation         = EmptySpaceLocation.DeterminedByLayoutAlgorithm;
     this.m_oSelectedNode               = null;
     this.m_oSavedSelectedNodeBitmap    = null;
     this.m_bInBeginUpdate              = false;
     this.m_eLayoutAlgorithm            = LayoutAlgorithm.BottomWeightedSquarified;
 }
Пример #4
0
 public TextDrawerBase(NodeLevelsWithText eNodeLevelsWithText, int iMinNodeLevelWithText, int iMaxNodeLevelWithText)
 {
     m_eNodeLevelsWithText   = eNodeLevelsWithText;
     m_iMinNodeLevelWithText = iMinNodeLevelWithText;
     m_iMaxNodeLevelWithText = iMaxNodeLevelWithText;
 }