Platforms to show: All Mac Windows Linux Cross-Platform
The class CDAngularMeterMBS
class CDAngularMeterMBS
MBS REALbasic ChartDirector Plugin (ChartDirector5), super class: CDBaseMeterMBS
class, ChartDirector, MBS REALbasic ChartDirector Plugin (ChartDirector5), class CDAngularMeterMBS, Console safe, Plugin version: 8.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The AngularMeter class represents angular meters.
Example:
Notes: Subclass of the CDBaseMeterMBS class.
Function: The AngularMeter class represents angular meters.
Example:
// The value to display on the meter
const value = 27.48
// Create an AngularMeter object of size 200 x 115 pixels, with silver background
// color, black border, 2 pixel 3D border border and rounded corners
dim m as new CDAngularMeterMBS(200, 115, CDBaseChartMBS.silverColor, &h000000, 2)
m.setRoundedFrame
// Set the meter center at (100, 100), with radius 85 pixels, and span from -90
// to +90 degress (semi-circle)
m.setMeter(100, 100, 85, -90, 90)
// Meter scale is 0 - 100, with major tick every 20 units, minor tick every 10
// units, and micro tick every 5 units
m.setScale(0, 100, 20, 10, 5)
// Set 0 - 60 as green (66FF66) zone
m.addZone(0, 60, 0, 85, &h66ff66)
// Set 60 - 80 as yellow (FFFF33) zone
m.addZone(60, 80, 0, 85, &hffff33)
// Set 80 - 100 as red (FF6666) zone
m.addZone(80, 100, 0, 85, &hff6666)
// Add a text label centered at (100, 60) with 12 pts Arial Bold font
call m.addText(100, 60, "PSI", "arialbd.ttf", 12, CDBaseChartMBS.kTextColor, CDBaseChartMBS.kCenter)
// Add a text box at the top right corner of the meter showing the value
// formatted to 2 decimal places, using white text on a black background, and
// with 1 pixel 3D depressed border
m.addText(156, 8, m.formatValue(value, "2"), "arial.ttf", 8, &hffffff).setBackground(&h000000, 0, -1)
// Add a semi-transparent blue (40666699) pointer with black border at the
// specified value
call m.addPointer(value, &h40666699, &h000000)
// Output the chart
Backdrop=m.makeChartPicture
- method addRing(startRadius as integer, endRadius as integer, fillColor as integer, edgeColor as integer=-1)
- method addRingSector(startRadius as integer, endRadius as integer, a1 as double, a2 as double, fillColor as integer, edgeColor as integer=-1)
- method addZone(startValue as double, endValue as double, fillColor as integer, edgeColor as integer=-1)
- method addZone(startValue as double, endValue as double, startRadius as integer, endRadius as integer, fillColor as integer, edgeColor as integer=-1)
- method Constructor(width as integer, height as integer, bgColor as integer=&hffff0000, edgeColor as integer=&hff000000, raisedEffect as integer=0)
- method setCap(radius as integer, fillColor as integer, edgeColor as integer=&hffff0001)
- method setMeter(cx as integer, cy as integer, radius as integer, startAngle as double, endAngle as double)
Methods, properties and events inherited from super classes:
- class class CDBaseMeterMBS
- method getLabel(v as double) as string
- method getTicks as CDArrayMBS
- method getCoor(v as double) as integer
- method setScale(lowerLimit as double, upperLimit as double, labels() as string)
- method setScale(lowerLimit as double, upperLimit as double, labels() as double, formatstring as string="")
- method setScale(lowerLimit as double, upperLimit as double, majorTickInc as double=0, minorTickInc as double=0, microTickInc as double=0)
- method setTickLength(majorLen as integer)
- method setTickLength(majorLen as integer, minorLen as integer, microLen as integer)
- method setTickLength(majorLen as integer, minorLen as integer)
- method setLabelPos(labelInside as boolean, labelOffset as integer=0)
- method setLabelStyle(font as string="", fontsize as double=-1, fontcolor as integer=&hffff0002, fontAngle as double=0) as CDTextBoxMBS
- method setLabelFormat(mainLabelFormat as string)
- method addPointer(value as double, fillColor as integer=&hffff0001, edgeColor as integer=-1) as CDMeterPointerMBS
- method addLabel(v as double, label as string)
- method setMeterColors(axisColor as integer, labelColor as integer=-1, tickColor as integer=-1)
- method setLineWidth(axisWidth as integer, majorTickWidth as integer=1, minorTickWidth as integer=1, microTickWidth as integer=1)
- const kAggregateMax = 5
- const kAggregateLast = 8
- class class CDBaseChartMBS
- shared method GetPath(path as folderitem) as string
- shared method greenMetalGradient as integer()
- method setSize(width as integer, height as integer)
- shared method LoadLibrary(path as folderitem) as boolean
- shared method getVersion as integer
- shared method LoadLibrary(path as string) as boolean
- const kAggregateMin = 3
- const kAggregateMed = 4
- shared method SelectItemFilter(item as integer) as integer
- method formatValue(value as double, formatstring as string) as string
- shared method CrossShape(width as double=0.5) as integer
- method getHTMLImageMap(url as string, queryFormat as string="", extraAttr as string="", offsetX as integer=0, offsetY as integer=0) as string
- method setRoundedFrame(extColor as integer=&hFFFFFF, r1 as integer=10, r2 as integer=-1, r3 as integer=-1, r4 as integer=-1)
- method makeChartPicture as picture
- method getHeight as integer
- const kAggregateCount = 9
- method makeChart(format as integer) as string
- method getLegend as CDLegendBoxMBS
- method makeChart(path as folderitem) as boolean
- const kAggregateFirst = 7
- method makeChart as CDDrawAreaMBS
- method patternColor(file as folderitem, startX as integer=0, startY as integer=0) as integer
- method patternColor(colorvalues() as integer, height as integer, startX as integer=0, startY as integer=0) as integer
- shared method kTickInc as double
- method getColor(index as integer) as integer
- shared method getChartYMD(t as double) as integer
- method getChartMetrics as string
- shared method getChartWeekDay(t as double) as integer
- const kAggregateAvg = 1
- method getDrawArea as CDDrawAreaMBS
- shared method getCopyright as string
- shared method getDescription as string
- method setSearchPath(path as string)
- const kHammingFilter = 11
- const kHanningFilter = 10
- const kGlobalGradientShading = 3
- const kGridLinesZ = &h2000
- const kHermiteFilter = 4
- const kHLOCUpDown = 2
- const kHLOCDefault = 0
- const kHLOCOpenClose = 1
- const kFlatShading = 1
- const kForcePalette = 1
- const kGlassSphere2Shape = 16
- const kGlassSphereShape = 15
- const kGaussianFilter = 9
- const kGIF = 1
- const kLineColor = &hFFFF0001
- const kLinePointer = 4
- const kLinearRegression = 1
- shared method kLinearTick as double
- const kLocalGradientShading = 2
- shared method kMicroTickOnly as double
- shared method kMinorTickOnly as double
- const kLogarithmicRegression = -2
- shared method kLogTick as double
- const kJPG = 2
- const kLanczosFilter = 8
- const kInvertedTriangleShape = 6
- const kInvertedTriangleSymbol = 6
- const kLeft = 4
- const kLeftTriangleSymbol = 5
- const kLinearFilter = 1
- const kLeftTriangleShape = 5
- const kDirectionVertical = 1
- const kDotDashLine = &h05050205
- const kDirectionHorizontal = 0
- const kDirectionHorizontalVertical = 2
- const kDotLine = &h0202
- const kErrorDiffusion = 2
- const kExponentialRegression = -1
- const kEndPoints = 3
- const kDashLine = &h0505
- const kDataColor = &hFFFF0008
- const kCross2Symbol = 9
- const kCrossSymbol = 8
- const kDefaultShading = 0
- const kDiamondShape = 2
- const kDiamondSymbol = 2
- const kDepth = 2
- const kDiamondPointer = 0
- method setBackground(colorvalue as integer, edgeColor as integer=&hff000000, raisedEffect as integer=0)
- const kPNG = 0
- const kPencilPointer = 5
- const kPercentage = 4
- const kPixelScale = 0
- const kPlotAreaZ = &h1000
- method setBgImage(img as string, align as integer=5)
- const kSVG = 5
- const kSVGZ = 6
- method setBorder(colorvalue as integer)
- const kQuadraticFilter = 2
- const kNoAntiAlias = 0
- const kNoGlare = 1
- const kMonotonicAuto = 4
- const kMitchellFilter = 6
- const kMonotonicNone = 0
- const kMonotonicY = 2
- const kMonotonicX = 1
- const kMonotonicXY = 3
- const kNoSymbol = 0
- const kNormalLegend = 0
- const kNoShape = 0
- const kOverlay = 0
- const kPalette = &hFFFF0000
- shared method kNoValue as double
- const kOrderedDither = 1
- method setWallpaper(img as folderitem)
- const kNoLegend = 2
- const kNoPalette = 2
- method setWhiteOnBlackColors(paletteEntry as integer=0)
- const kNormalGlare = 3
- method setWeekDayNames(names() as string)
- const kConstrainedLinearRegression = 0
- method linearGradientColor(startX as integer, startY as integer, endX as integer, endY as integer, colors() as integer, periodic as boolean=false) as integer
- method linearGradientColor(startX as integer, startY as integer, endX as integer, endY as integer, startColor as integer, endColor as integer, periodic as boolean=false) as integer
- method dashLineColor(colorvalue as integer, patternCode as integer=&h0505) as integer
- method layoutLegend as CDLegendBoxMBS
- method setAMPM(am as string, pm as string)
- method layout
- shared method isLicensed as boolean
- shared method Cross2Shape(width as double=0.5) as integer
- const kChartBackZ = &h100
- const kChartDir_AllPassFilterTag = 7
- method enableVectorOutput
- const kTextColor = &hFFFF0002
- const kChartDir_StartOfYearFilterTag = 5
- const kChartFrontZ = &hffff
- const kChartDir_StartOfMonthFilterTag = 4
- const kChartDir_StartOfWeekFilterTag = 3
- const kCircleLayout = 1
- const kCircleSymbol = 7
- const kConcaveShading = 4
- const kCircleShape = 7
- const kCircleShapeNoShading = 10
- const kChartDir_Polygon2Symbol = 12
- const kChartDir_PolygonSymbol = 11
- const kChartDir_CustomSymbol = 14
- const kChartDir_NonePassFilterTag = 8
- const kChartDir_RegularSpacingFilterTag = 6
- const kChartDir_StartOfDayFilterTag = 2
- const kChartDir_StartOfHourFilterTag = 1
- const kChartDir_SelectItemFilterTag = 9
- const kChartDir_StarSymbol = 13
- const kXAxisSymmetricIfNeeded = 2
- const kXYAxisSymmetric = 16
- const kXYAxisSymmetricIfNeeded = 32
- const kXYAxisAtOrigin = 3
- method setAntiAlias(shapeAntiAlias as Boolean, textAntiAlias as integer)
- const kYAxisSymmetricIfNeeded = 8
- const kYAxisSymmetric = 4
- shared method cylinderEffect(orientation as integer=5, ambientIntensity as double=0.5, diffuseIntensity as double=0.5, specularIntensity as double=0.75, shininess as integer=8) as integer
- method setTransparentColor(c as integer)
- const kYAxisAtOrigin = 2
- method setTransparentColors(paletteEntry as integer=0)
- const kYAxisScale = 2
- shared method chartTime(year as integer, month as integer, day as integer, hour as integer=0, minute as integer=0, second as integer=0) as double
- shared method chartTime(t as integer) as double
- const kTopLeft2 = 10
- shared method RGB(r as integer, g as integer, b as integer, a as integer=0) as integer
- const kRightTriangleShape = 4
- shared method StartOfMonthFilter(labelStep as integer=1, initialMargin as double=0.05) as integer
- const kRightTriangleSymbol = 4
- const kRight = 6
- const kReverseLegend = 1
- shared method StartOfWeekFilter(labelStep as integer=1, initialMargin as double=0.05) as integer
- shared method goldGradient as integer()
- const kTopRight = 9
- shared method ColorToInteger(c as color, alpha as integer=0) as integer
- shared method testFont(font as string, fontIndex as integer, fontHeight as double, fontWidth as double, angle as double, byref buffer as string) as boolean
- shared method silverGradient as integer()
- shared method brushedGoldColor(texture as integer=2, angle as integer=90) as integer
- shared method AllPassFilter as integer
- shared method brushedMetalColor(c as integer, texture as integer=2, angle as integer=90) as integer
- shared method SetFontSearchPath(path as string)
- method setFontTable(index as integer, font as string)
- const kSquareSymbol = 1
- const kSideLayout = 0
- shared method StarShape(slide as integer) as integer
- const kSide = 3
- const kTopLeft = 7
- shared method StartOfDayFilter(labelStep as integer=1, initialMargin as double=0.05) as integer
- method setDefaultFonts(normal as string, bold as string, italic as string, boldItalic as string)
- method setDefaultColors(paletteEntry as integer=0)
- shared method goldColor(angle as integer=90) as integer
- const kSmoothShading = 0
- shared method StartOfHourFilter(labelStep as integer=1, initialMargin as double=0.05) as integer
- method setDropShadow(ColorValue as integer=&hAAAAAA, OffsetX as integer=5, OffsetY as integer=&h7fffffff, blurRadius as integer=5)
- const kSincFilter = 7
- const kSquareShape = 1
- shared method glassEffect(glareSize as integer=3, glareDirection as integer=8, raisedEffect as integer=5) as integer
- const kSolidSphereShape = 17
- const kAutoGrid = -2
- const kRoundedEdgeNoGlareShading = 5
- const kRingShading = 8
- const kRoundedEdgeShading = 6
- method adjustBrightness(ColorValue as integer, brightness as double) as integer
- method addLegend(x as integer, y as integer, vertical as boolean=true, font as string="", fontsize as double=10) as CDLegendBoxMBS
- method addLegend(x as integer, y as integer, noOfCols as integer, font as string="", fontsize as double=10) as CDLegendBoxMBS
- method addLine(x1 as integer, y1 as integer, x2 as integer, y2 as integer, colorvalue as integer=&hffff0001, lineWidth as integer=1) as CDLineMBS
- const kSameAsMainColor = &hFFFF0007
- const kStack = 1
- method addTable(x as integer, y as integer, alignment as integer, col as integer, row as integer) as CDMLTableMBS
- method addText(x as integer, y as integer, text as string, font as string="", fontsize as double=8, fontcolor as integer=&hffff0002, alignment as integer=7, angle as double=0, vertical as boolean=false) as CDTextBoxMBS
- const kAutoAntiAlias = 2
- method addTitle(text as string, font as string="", fontsize as double=12, fontColor as integer=&hffff0002, bgColor as integer=&hff000000, edgeColor as integer=&hff000000) as CDTextBoxMBS
- method addTitle(alignment as integer, text as string, font as string="", fontsize as double=12, fontColor as integer=&hffff0002, bgColor as integer=&hff000000, edgeColor as integer=&hff000000) as CDTextBoxMBS
- const kTryPalette = 0
- method setMonthNames(names() as string)
- const kTop = 8
- const kBackgroundColor = &hFFFF0000
- const kBesselFilter = 13
- const kWMP = 3
- method setNumberFormat(thousandSeparator as string="~", decimalPointChar as string=".", signChar as string="-")
- method radialGradientColor(cx as integer, cy as integer, rx as integer, ry as integer, data() as integer, periodic as boolean=false) as integer
- method radialGradientColor(cx as integer, cy as integer, rx as integer, ry as integer, startColor as integer, endColor as integer, periodic as boolean=false) as integer
- shared method PolygonShape(slide as integer) as integer
- const kCenter = 5
- shared method PolynomialRegression(n as integer) as integer
- const kRectangularShading = 2
- const kReducedGlare = 2
- const kTopCenter = 8
- const kBSplineFilter = 3
- const kCatromFilter = 5
- const kTriangularShading = 1
- const kRectangularFrame = 4
- const kBMP = 4
- shared method blueMetalGradient as integer()
- const kAggregateSum = 0
- const kAltDashLine = &h0A050505
- const kBottom = 2
- const kBottomLeft = 1
- const kBottomRight = 3
- const kBottomLeft2 = 12
- const kAggregatePercentile = 6
- const kBottomCenter = 2
- const kAggregateStdDev = 2
- const kBoxFilter = 0
- shared method softLighting(direction as integer=8, raisedEffect as integer=4) as integer
- const kXAxisAtOrigin = 1
- const kQuantize = 0
- method Destructor
- shared method NonePassFilter as integer
- const kAntiAlias = 1
- const kAngularAxisScale = 1
- const kBottomRight2 = 13
- const kRadialAxisScale = 2
- const kXAxisScale = 1
- const kBlackmanFilter = 12
- const kRadialShading = 7
- const kXAxisSymmetric = 1
- const kTopRight2 = 11
- method addExtraField(numbers() as double)
- method halfColor(c as integer) as integer
- method setColor(paletteEntry as integer, colorvalue as integer)
- shared method setLicenseCode(n as string, enddate as integer, v1 as integer, v2 as integer)
- method gradientColor(colors() as integer, angle as double=90, scale as double=1.0, startX as integer=0, startY as integer=0) as integer
- method setColors(numbers() as integer)
- shared method brushedSilverColor(texture as integer=2, angle as integer=90) as integer
- method setColors(paletteEntry as integer, numbers() as integer)
- shared method StartOfYearFilter(labelStep as integer=1, initialMargin as double=0.05) as integer
- method addExtraField(pathes() as folderitem)
- method addExtraField(texts() as string)
- method gradientColor(startX as integer, startY as integer, endX as integer, endY as integer, startColor as integer, endColor as integer) as integer
- method getWidth as integer
- shared method RegularSpacingFilter(labelStep as integer=1, initialMargin as integer=0) as integer
- const kArrowPointer2 = 3
- shared method Polygon2Shape(slide as integer) as integer
- const kTriangularFrame = 3
- const kTriangularPointer = 1
- shared method redMetalGradient as integer()
- shared method metalColor(c as integer, angle as integer=90) as integer
- const kArrowPointer = 2
- const kTransparent = &hFF000000
- shared method barLighting(startBrightness as double=0.75, endBrightness as double=1.5) as integer
- const kTriangleShape = 3
- shared method kTouchBar as double
- const kTriangleSymbol = 3
- shared method silverColor(angle as integer=90) as integer
This class has no sub classes.
Some examples which use this class:
- /ChartDirector/High Resolution Chart Examples/squareameter
- /ChartDirector/wideameter
- /ChartDirector/squareameter
- /ChartDirector/iconameter
- /ChartDirector/semicirclemeter
- /ChartDirector/roundmeter
- /ChartDirector/multiameter
- /ChartDirector/multiameter with controls
The items on this page are in the following plugins: MBS REALbasic ChartDirector Plugin.
Links
MBS Realbasic Plugins - Nachhilfe in Kell