Packagecom.daveoncode.ui
Classpublic class ImageNavigator
InheritanceImageNavigator Inheritance mx.containers.Canvas

Provide image navigation features similar to Photoshop's navigator



Public Properties
 PropertyDefined by
  height : Number
[write-only] Set ImageNavigator's height (the minimum value allowed is 100)
ImageNavigator
  image : Image
Source image used to create ImageNavigator's thumb
ImageNavigator
  imageContainer : Canvas
[read-only] Return a reference to image's Canvas (typically a Canvas)
ImageNavigator
  maxZoom : Number
The maximum value allowed for the zoom
ImageNavigator
  minZoom : Number
The minimum value allowed for the zoom
ImageNavigator
  showZoomSlider : Boolean
True to display a HSlider for increase/decrease the zoom, false otherwise
ImageNavigator
  smoothOnZoom : Boolean
True to apply a smooth effect to the source image when is scaled
ImageNavigator
  thumb : Canvas
[read-only] Return a reference to the Canvas object representing the thumb
ImageNavigator
  thumbPointer : Canvas
[read-only] Return a reference to the Canvas used as draggable pointer
ImageNavigator
  useImageXY : Boolean
True to use image X and Y property rather than Canvas scroll position
ImageNavigator
  width : Number
[write-only] Set ImageNavigator's with (the minimum value allowed is 150)
ImageNavigator
Public Methods
 MethodDefined by
  
ImageNavigator constructor function
ImageNavigator
Styles
 StyleDescriptionDefined by
  
thumbPointerColor
Type: uint   CSS Inheritance: no
Color of thumbPointer's borders
ImageNavigator
  
thumbPointerThickness
Type: uint   CSS Inheritance: no
Size of thumbPointer's borders
ImageNavigator
Public Constants
 ConstantDefined by
  MAX_ZOOM : Number = 2000
[static] Maximum value allowed for the zoom
ImageNavigator
  MIN_ZOOM : Number = 1
[static] Minimum value allowed for the zoom
ImageNavigator
Property detail
heightproperty
height:Number  [write-only]

Set ImageNavigator's height (the minimum value allowed is 100)

Implementation
    public function set height(value:Number):void
imageproperty 
image:Image  [read-write]

Source image used to create ImageNavigator's thumb

Implementation
    public function get image():Image
    public function set image(value:Image):void
imageContainerproperty 
imageContainer:Canvas  [read-only]

Return a reference to image's Canvas (typically a Canvas)

Implementation
    public function get imageContainer():Canvas
maxZoomproperty 
maxZoom:Number  [read-write]

The maximum value allowed for the zoom

Implementation
    public function get maxZoom():Number
    public function set maxZoom(value:Number):void
minZoomproperty 
minZoom:Number  [read-write]

The minimum value allowed for the zoom

Implementation
    public function get minZoom():Number
    public function set minZoom(value:Number):void
showZoomSliderproperty 
showZoomSlider:Boolean  [read-write]

True to display a HSlider for increase/decrease the zoom, false otherwise

The default value is true.

Implementation
    public function get showZoomSlider():Boolean
    public function set showZoomSlider(value:Boolean):void
smoothOnZoomproperty 
smoothOnZoom:Boolean  [read-write]

True to apply a smooth effect to the source image when is scaled

The default value is false.

Implementation
    public function get smoothOnZoom():Boolean
    public function set smoothOnZoom(value:Boolean):void
thumbproperty 
thumb:Canvas  [read-only]

Return a reference to the Canvas object representing the thumb

Implementation
    public function get thumb():Canvas
thumbPointerproperty 
thumbPointer:Canvas  [read-only]

Return a reference to the Canvas used as draggable pointer

Implementation
    public function get thumbPointer():Canvas
useImageXYproperty 
useImageXY:Boolean  [read-write]

True to use image X and Y property rather than Canvas scroll position

The default value is false.

Implementation
    public function get useImageXY():Boolean
    public function set useImageXY(value:Boolean):void
widthproperty 
width:Number  [write-only]

Set ImageNavigator's with (the minimum value allowed is 150)

Implementation
    public function set width(value:Number):void
Constructor detail
ImageNavigator()constructor
public function ImageNavigator()

ImageNavigator constructor function

Constant detail
MAX_ZOOMconstant
public static const MAX_ZOOM:Number = 2000

Maximum value allowed for the zoom

MIN_ZOOMconstant 
public static const MIN_ZOOM:Number = 1

Minimum value allowed for the zoom