| Package | org.juicekit.visual.controls |
| Class | public class FlareControlBase |
| Inheritance | FlareControlBase RendererBase mx.core.UIComponent |
| Subclasses | TreeMapControl |
FlareControlBase provides a common implementation
for visual controls based upon the prefure.flare Visualization.
The class is only intended to be used as a base implementation
for custom controls and is not intended to be directly instantiated.
| Property | Defined by | ||
|---|---|---|---|
![]() | data : Object
Implement the IDataRenderer interface.
| RendererBase | |
![]() | listData : BaseListData
Implement the IDropInListItemRenderer interface.
| RendererBase | |
| transitionPeriod : Number
Specifies the animation transition time period in seconds.
| FlareControlBase | ||
| vis : Visualization = null
Stores reference to the prefuse.flare
Visualization context. | FlareControlBase | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| FlareControlBase | ||
| Method | Defined by | ||
|---|---|---|---|
|
addEventListeners():void
Add any event listeners to the
Visualization instance. | FlareControlBase | ||
|
asFlareProperty(propertyName:String):String
Return a flare-style data property string.
| FlareControlBase | ||
|
calcPaddedBounds(w:Number, h:Number):Rectangle
Calculates a
Rectangle inset by any padding styles. | FlareControlBase | ||
![]() |
commitProperties():void
Reset the
dataPropertyChanged and invalidate
the display list. | RendererBase | |
|
initVisualization():void
Initialize the control's prefuse.flare
Visualization instance. | FlareControlBase | ||
|
makeVisualization():Visualization
Create a prefuse.flare
Visualization instance. | FlareControlBase | ||
|
numToAlphaBits(alpha:Number):uint
[static]
Helper function to produce high-order alpha bits from
a Number ranging from 0.0 to 1.0 inclusive.
| FlareControlBase | ||
|
onMouseOut(event:MouseEvent):void
Handle mouse out events.
| FlareControlBase | ||
|
onMouseOver(event:MouseEvent):void
Handle mouse over events.
| FlareControlBase | ||
|
removeEventListeners():void
Remove any event listeners from the
Visualization instance. | FlareControlBase | ||
|
signalDataMouseEvent(event:MouseEvent):void
Dispatch
DataMouseEvent events. | FlareControlBase | ||
|
toARGB(rgbColor:uint, alpha:Number):uint
[static]
Convert an RGB color value and alpha specification into a flare
compatible ARGB color value.
| FlareControlBase | ||
|
updateVisualization():void
Call the
update method on the visualization. | FlareControlBase | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() |
Dispatched when the data property changes. | RendererBase | ||
Dispatched when an animating Visualization
update completes the animation Transition
| FlareControlBase | |||
Dispatched when the user clicks a pointing device over a
TreemapControl instance's rectangle. | FlareControlBase | |||
Dispatched when the user clicks a pointing device over a
TreemapControl instance's rectangle. | FlareControlBase | |||
Dispatched when the user moves a pointing device away from
TreemapControl instance's rectangle. | FlareControlBase | |||
Dispatched when the user moves a pointing device over a
TreemapControl instance's rectangle. | FlareControlBase | |||
Dispatched when an animating Visualization
update begins the animation Transition
| FlareControlBase | |||
| transitionPeriod | property |
transitionPeriod:Number [read-write]
Specifies the animation transition time period in seconds. The
default value is NaN which disables animation.
The default value is NaN.
This property can be used as the source for data binding.
Implementation public function get transitionPeriod():Number
public function set transitionPeriod(value:Number):void
| vis | property |
public var vis:Visualization = null
Stores reference to the prefuse.flare Visualization context.
| FlareControlBase | () | constructor |
public function FlareControlBase()Constructor.
| addEventListeners | () | method |
protected function addEventListeners():void
Add any event listeners to the Visualization instance.
| asFlareProperty | () | method |
protected function asFlareProperty(propertyName:String):StringReturn a flare-style data property string.
ParameterspropertyName:String |
String |
| calcPaddedBounds | () | method |
protected function calcPaddedBounds(w:Number, h:Number):Rectangle
Calculates a Rectangle inset by any padding styles.
w:Number — Is the maximum width before any padding is subtracted.
|
|
h:Number — Is the maximum height before any padding is subtracted.
|
Rectangle — Returns a rectangle inset by the padding styles.
|
| initVisualization | () | method |
protected function initVisualization():void
Initialize the control's prefuse.flare
Visualization instance. Derived classes should
override this function to add operators to the
vis object.
| makeVisualization | () | method |
protected function makeVisualization():Visualization
Create a prefuse.flare Visualization instance.
Visualization — Returns a prefuse.flare Visualization instance.
|
| numToAlphaBits | () | method |
protected static function numToAlphaBits(alpha:Number):uintHelper function to produce high-order alpha bits from a Number ranging from 0.0 to 1.0 inclusive.
Parametersalpha:Number — Is a Number value ranging from 0.0 to 1.0
inclusive where 0.0 is transparent and 1.0 is opaque.
|
uint — Returns high-order byte encoding of the alpha value.
|
| onMouseOut | () | method |
protected function onMouseOut(event:MouseEvent):voidHandle mouse out events.
Parametersevent:MouseEvent |
| onMouseOver | () | method |
protected function onMouseOver(event:MouseEvent):voidHandle mouse over events.
Parametersevent:MouseEvent |
| removeEventListeners | () | method |
protected function removeEventListeners():void
Remove any event listeners from the Visualization instance.
| signalDataMouseEvent | () | method |
protected function signalDataMouseEvent(event:MouseEvent):void
Dispatch DataMouseEvent events.
event:MouseEvent |
| toARGB | () | method |
protected static function toARGB(rgbColor:uint, alpha:Number):uintConvert an RGB color value and alpha specification into a flare compatible ARGB color value.
ParametersrgbColor:uint — Is a uint holding the red, green, and
blue bytes in the lower three bytes.
|
|
alpha:Number — Is a Number value ranging from 0.0 to 1.0
inclusive where 0.0 is transparent and 1.0 is opaque.
|
uint — Returns a flare compatible ARGB color uint.
|
| updateVisualization | () | method |
protected function updateVisualization():void
Call the update method on the visualization. The
transitionPeriod property is used to determine
whether animation is appropriate. If animation is appropriate,
this method will signal TransitionEvent.START
and TransitionEvent.END to any listeners.
| end | event |
flare.animate.TransitionEvent
Dispatched when an animating Visualization
update completes the animation Transition
| jkDataClick | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user clicks a pointing device over a
TreemapControl instance's rectangle.
| jkDataDoubleClick | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user clicks a pointing device over a
TreemapControl instance's rectangle.
| jkDataMouseOut | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user moves a pointing device away from
TreemapControl instance's rectangle.
| jkDataMouseOver | event |
org.juicekit.events.DataMouseEvent
Dispatched when the user moves a pointing device over a
TreemapControl instance's rectangle.
| start | event |
flare.animate.TransitionEvent
Dispatched when an animating Visualization
update begins the animation Transition