Platforms to show: All Mac Windows Linux Cross-Platform
CDLegendBoxMBS class
Super class: CDTextBoxMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | ChartDirector | MBS ChartDirector Plugin | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Subclass of the CDTextBoxMBS class.
This is a subclass of an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 15 methods
- method addKey(pos as Integer, text as string, colorvalue as color, lineWidth as Integer = -1, drawarea as CDDrawAreaMBS=nil)
- method addKey(pos as Integer, text as string, colorvalue as Integer, lineWidth as Integer = -1, drawarea as CDDrawAreaMBS=nil)
- method addKey(text as string, colorvalue as color, lineWidth as Integer = -1, drawarea as CDDrawAreaMBS=nil)
- method addKey(text as string, colorvalue as Integer, lineWidth as Integer = -1, drawarea as CDDrawAreaMBS=nil)
- method addText(pos as Integer, text as string)
- method addText(text as string)
- method getHTMLImageMap(url as string, queryFormat as string = "", extraAttr as string = "", offsetX as Integer = 0, offsetY as Integer = 0) as string
- method getImageCoor(dataItem as Integer, offsetX as Integer = 0, offsetY as Integer = 0) as string
- method setCols(noOfCols as Integer)
- method setKeyBorder(edgeColor as color, raisedEffect as Integer = 0)
- method setKeyBorder(edgeColor as Integer, raisedEffect as Integer = 0)
- method setKeySize(width as Integer = -1, height as Integer = -1, gap as Integer = -1)
- method setKeySpacing(keySpacing as Integer, lineSpacing as Integer = -1)
- method setLineStyleKey(b as boolean=true)
- method setReverse(b as boolean=true)
Super class CDTextBoxMBS
- 13 methods
- method setAlignment(a as Integer)
- method setFontAngle(angle as Double, vertical as boolean=false)
- method setFontColor(colorvalue as color)
- method setFontColor(colorvalue as Integer)
- method setFontSize(fontHeight as Double, fontWidth as Double = 0)
- method setFontStyle(font as string, fontIndex as Integer = 0)
- method setHeight(height as Integer)
- method setMargin(leftMargin as Integer, rightMargin as Integer, topMargin as Integer, bottomMargin as Integer)
- method setMargin(m as Integer)
- method setMaxWidth(width as Integer)
- method setText(text as string)
- method setTruncate(maxWidth as Integer, maxLines as Integer = 1)
- method setWidth(width as Integer)
Super class CDBoxMBS
- 11 methods
- method Constructor Private
- method getHeight as Integer
- method getImageCoor(OffsetX as Integer = 0, OffsetY as Integer = 0) as string
- method getLeftX as Integer
- method getTopY as Integer
- method getWidth as Integer
- method setBackground(colorvalue as color, edgeColor as color, raisedEffect as Integer = 0)
- method setBackground(colorvalue as Integer, edgeColor as Integer = -1, raisedEffect as Integer = 0)
- method setPos(x as Integer, y as Integer)
- method setRoundedCorners(r1 as Integer = 10, r2 as Integer = -1, r3 as Integer = -1, r4 as Integer = -1)
- method setSize(w as Integer, h as Integer)
Super class CDDrawObjMBS
- 3 methods
- method Constructor Private
- method paint(d as CDDrawAreaMBS)
- method setZOrder(z as Integer)
This class has no sub classes.
Some methods using this class:
- CDBaseChartMBS.addLegend(x as Integer, y as Integer, noOfCols as Integer, font as string = "", fontsize as Double = 10) as CDLegendBoxMBS
- CDBaseChartMBS.addLegend(x as Integer, y as Integer, vertical as boolean=true, font as string = "", fontsize as Double = 10) as CDLegendBoxMBS
- CDBaseChartMBS.getLegend as CDLegendBoxMBS
- CDBaseChartMBS.layoutLegend as CDLegendBoxMBS
Some examples using this class:
- /ChartDirector/colorgantt
- /ChartDirector/multiradar
- /ChartDirector/multishapebar iOS
- /ChartDirector/overlapbar
- /ChartDirector/Place PDF Chart with DynaPDF
- /ChartDirector/softmultibar
- /ChartDirector/stackradar
- /ChartDirector/treemapcolors
- /ChartDirector/yzonecolor
- /ChartDirector/yzonecolor extreme
Blog Entries
Xojo Developer Magazine
- 7.5, page 32: Easy Charts and Graphs Part 2, Using the ChartDirector Plugin
- 7.4, page 34: Easy Charts and Graphs, Using the ChartDirector Plugin
- 20.4, page 40: PDF Pie Charts, Adding Xojo Charts to Your PDFs by Stefanie Juchmes
- 20.1, page 46: Cool Charts and Heatmaps, Using Monkeybread Software's ChartDirector Plugin by Stefanie Juchmes
- 18.5, page 71: Xojo Charts, Charts in Xojo with the MBS Xojo ChartDirector plugin by Stefanie Juchmes
The items on this page are in the following plugins: MBS ChartDirector Plugin.