trait Renderer extends Object
- Annotations
- @RawJSType() @native()
- Alphabetic
- By Inheritance
- Renderer
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
arc(centerX: Double, centerY: Double, outerRadius: Double, innerRadius: Double, start: Double, end: Double): Element
Draw an arc on the renderer canvas.
Draw an arc on the renderer canvas.
- centerX
The x position of the arc's center in the SVG element.
- centerY
The y position of the arc's center in the SVG element.
- outerRadius
The outer radius of the arc.
- innerRadius
The inner radius of the arc.
- start
The starting angle of the arc in radians, where 0 is to the right and -Math.PI/2 is up.
- end
The ending angle of the arc in radians, where 0 is to the right and -Math.PI/2 is up.
Example: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
button(str: String, x: Double, y: Double, callback: Function, normalState: Object, hoverState: Object, pressedState: Object, disabledState: Object, shape: String): Element
Creates a button in the given location.
Creates a button in the given location.
- str
The text or HTML to draw
-
def
circle(centerX: Double, centerY: Double, radius: Double): Element
Draw circle on the renderer canvas.
Draw circle on the renderer canvas.
- centerX
The x position of the circle's center in the SVG element.
- centerY
The y position of the circle's center in the SVG element.
- radius
The radius of the circle.
Example: -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
definition(def: Object): Element
Styled mode only.
Styled mode only. hook for adding general definitions to the SVG's
defstag. Definitions can be referenced from the CSS by itsid. Read more in Gradients, shadows and patterns.The definitions can also be added as configuration options, see defs.
- def
A serialized form of an SVG definition, including children.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
g(name: String): Element
Add an SVG/VML group.
Add an SVG/VML group.
- name
The name of the group. This will be used in the class name, which will be
"highcharts-"+ name. Other Element objects are added to the group by using the group as the first parameter in .add() for the wrappers.
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
image(source: String, x: Double, y: Double, width: Double, height: Double): Element
Add an image from an external resource.
Add an image from an external resource.
- source
The URL of the image.
- x
The x position of the image's upper left corner.
- y
The y position of the image's upper left corner.
- width
The width of the image.
- height
The height of the image.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
label(str: String, x: Double, y: Double, shape: String, anchorX: Double, anchorY: Double, useHTML: Boolean, baseline: Boolean, className: String): Element
Draw a label, which is an extended
textelement with support for border and background.Draw a label, which is an extended
textelement with support for border and background. Highcharts creates agelement with atextand apathorrectinside, to make it behave somewhat like a HTMLdiv. Border and background are set throughstroke,stroke-widthandfillattributes using the attr method. To update the text after render, runElement.attr({ text: 'New text' }).- str
The text or HTML to draw
Example: -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
path(path: Array[Any]): Element
Add a path based on SVG's path commands.
Add a path based on SVG's path commands. In SVG capable browsers all path commands are supported, but in VML only a subset is supported: absolute moveTo (M), absolute lineTo (L), absolute curveTo (C) and close (Z).
- path
An SVG path split up in array form.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
rect(x: Double, y: Double, width: Double, height: Double, cornerRadius: Double): Element
Add a rectangle.
Add a rectangle.
- x
The x position of the rectangle's upper left corner.
- y
The y position of the rectangle's upper left corner.
- width
The width of the rectangle.
- height
The height of the rectangle.
- cornerRadius
The corner radius of all the rectangle's corners.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
text(str: String, x: Double, y: Double): Element
Draw text.
Draw text. The text can contain a subset of HTML, like spans and anchors and some basic text styling of these. For more advanced features like border and background, use label instead. To update the text after render, run
Element.attr({ text: 'New text' }).- str
The text or HTML to draw
- x
The x position of the text's lower left corner.
- y
The y position of the text's lower left corner.
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )