Name

label — a label for a chart

Synopsis

LZX: label
JavaScript: lz.label
Type: Class
Access: public
Topic: Charting And Graphing.Common
Declared in: lps/components/charts/common/label.lzx

Description

[Warning] Warning
This component is of Beta quality and is subject to change.
An abstract class that applies all features label.

Superclass Chain

node (LzNode) » view (LzView) » drawview » label

Known Subclasses

Details

Properties (2)

enableCache
<attribute name="enableCache" type="boolean" value="true" />
private var enableCache : boolean;
style
<attribute name="style" type="string" value="null" />
private var style : String;
the style will be applied

Methods (8)

applyRotation()
<method name="applyRotation" args="pAngle, pfontName" />
private function applyRotation(pAngle, pfontName);
border()
<method name="border" />
private function border();
draw()
<method name="draw" args="aBeginPosX, aBeginPosY, aEndPosX, aEndPosY" />
private function draw(aBeginPosX : Number, aBeginPosY : Number, aEndPosX : Number, aEndPosY : Number);
render the line
embeddedFont()
<method name="embeddedFont" args="str" />
private function embeddedFont(str);
getText()
<method name="getText" />
public function getText();
Get the text
getTextHeight()
<method name="getTextHeight" />
public function getTextHeight();
Get the text height
getTextWidth()
<method name="getTextWidth" />
public function getTextWidth();
Get the text width
render()
<method name="render" args="txt" />
public function render(txt : string);
Setter for attribute

LZX Synopsis

<class name="lz.label" extends=" lz.drawview ">
  <attribute name=" enableCache " type="boolean" value="true" />
  <attribute name=" style " type="string" value="null" />
  <method name=" applyRotation " args="pAngle, pfontName" />
  <method name=" border " />
  <method name=" draw " args="aBeginPosX, aBeginPosY, aEndPosX, aEndPosY" />
  <method name=" embeddedFont " args="str" />
  <method name=" getText " />
  <method name=" getTextHeight " />
  <method name=" getTextWidth " />
  <method name=" render " args="txt" />
</class>

JavaScript Synopsis

public lz.label extends  lz.drawview  {
  private var enableCache  : boolean;
  private var style  : String;
  prototype private function applyRotation (pAngle, pfontName);
  prototype private function border ();
  prototype private function draw (aBeginPosX : Number, aBeginPosY : Number, aEndPosX : Number, aEndPosY : Number);
  prototype private function embeddedFont (str);
  prototype public function getText ();
  prototype public function getTextHeight ();
  prototype public function getTextWidth ();
  prototype public function render (txt : string);
}