| Package | flare.scale |
| Interface | public interface IScaleMap |
| Implementors | Axis, LegendRange |
| Property | Defined by | ||
|---|---|---|---|
| x1 : Number [read-only]
Returns the x-coordinate corresponding to the lower end of the scale.
| IScaleMap | ||
| x2 : Number [read-only]
Returns the x-coordinate corresponding to the upper end of the scale.
| IScaleMap | ||
| y1 : Number [read-only]
Returns the y-coordinate corresponding to the lower end of the scale.
| IScaleMap | ||
| y2 : Number [read-only]
Returns the y-coordinate corresponding to the upper end of the scale.
| IScaleMap | ||
| Method | Defined by | ||
|---|---|---|---|
|
value(x:Number, y:Number, stayInBounds:Boolean = true):Object
Returns the scale value corresponding to a given coordinate.
| IScaleMap | ||
|
X(val:Object):Number
Returns the x-coordinate corresponding to the given scale value
| IScaleMap | ||
|
Y(val:Object):Number
Returns the y-coordinate corresponding to the given scale value
| IScaleMap | ||
| x1 | property |
x1:Number [read-only]Returns the x-coordinate corresponding to the lower end of the scale.
Implementation public function get x1():Number
| x2 | property |
x2:Number [read-only]Returns the x-coordinate corresponding to the upper end of the scale.
Implementation public function get x2():Number
| y1 | property |
y1:Number [read-only]Returns the y-coordinate corresponding to the lower end of the scale.
Implementation public function get y1():Number
| y2 | property |
y2:Number [read-only]Returns the y-coordinate corresponding to the upper end of the scale.
Implementation public function get y2():Number
| value | () | method |
public function value(x:Number, y:Number, stayInBounds:Boolean = true):ObjectReturns the scale value corresponding to a given coordinate.
Parametersx:Number — the x-coordinate
|
|
y:Number — the y-coordinate
|
|
stayInBounds:Boolean (default = true) — if true, x,y values outside the current layout
bounds will be snapped to the bounds. If false, the value lookup
will attempt to extrapolate beyond the scale bounds. This value
is true be default.
|
Object — the scale value corresponding to the given coordinate.
|
| X | () | method |
public function X(val:Object):NumberReturns the x-coordinate corresponding to the given scale value
Parametersval:Object — the scale value to lookup
|
Number — the x-coordinate at which that scale value is placed
|
| Y | () | method |
public function Y(val:Object):NumberReturns the y-coordinate corresponding to the given scale value
Parametersval:Object — the scale value to lookup
|
Number — the y-coordinate at which that scale value is placed
|