private FileTreeMapItem CreateMapItem(FileTreeItemRectangle pair)
        {
            var title = new TreeMapTitleDescription
            {
                Position = pair.AssociatedRectangle.Location,
                Size     = 16,
                Text     = pair.TreeItem.Title
            };

            var rectangle = new TreeMapRectangleDescription
            {
                Rectangle = pair.AssociatedRectangle,
                Brush     = ChooseBrush(pair.TreeItem)
            };

            return(new FileTreeMapItem(pair.TreeItem, title, rectangle));
        }
Beispiel #2
0
 public FileTreeMapItem(FileTreeItem treeItem, TreeMapTitleDescription titleDescription, TreeMapRectangleDescription rectangleDescription)
 {
     TreeItem             = treeItem;
     TitleDescription     = titleDescription;
     RectangleDescription = rectangleDescription;
 }