Zoom item renderer out of scroller boundaries

Hi everyone, hoping someone has the easy Answer.  I want to have an item renderer that can zoomIn and display outside the scroller boundaries for which it resides in. 
I have
Scroller  set depth property =1
|
Datagroup (tile layout) depth=2
|
custom zoomable LabelItemRenderer depth=3  (depth=4 when zooming in so it overlaps the other renderers in the datagroup) ....these tiles, when zoomed, will increase in size by 50%.
So in other words, the datagroup is wrapped in a scroller, and I extended the LIR to zoom.
If I take the scroller out of the picture, everything works great...if I zoom on an IR(tile) that is on the very border of the datagroups boundaries, it will display over the DG's boundaries so that the whole zoomed tile is shown.
Now if I wrap the DG in a scroller, the IRs will zoom, but any tiles on the boundary will get clipped by the boundary, like it is underneath the scroller.
I want a zoomed tile to display completely, even if that means overlapping the boundaries of the scroller.  Like I said, works great when the DG doesn't have a scroller wrapped around it.
Is this possible?
I should add its a 4.6 mobile project.

I don't use jbuilder
This is what apears at the commandpromt:
Exception occurred during event dispatching:
java.lang.OutOfMemoryError
        <<no stack trace available>>
Exception occurred during event dispatching:
java.lang.OutOfMemoryError
        <<no stack trace available>>
java.lang.OutOfMemoryError
        <<no stack trace available>>
java.lang.OutOfMemoryError
        <<no stack trace available>>This is the version of java i use (I use the compiler that comes with it it does not answer to -version itself)
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)This is my ListCell renderers get method:
     public Component getListCellRendererComponent(JList list,Object value,int index,boolean isSelected,boolean cellHasFocus)
          String[] ss=((arrayjanus) value).getArray();
          JPanel p=new JPanel();
          p.setLayout(new BoxLayout(p,BoxLayout.X_AXIS));
          for(int i=0;i<lenghts.length;i++)
               JTextField jt=new JTextField(lenghts);
               jt.setText(ss[i]);
               jt.setCaretPosition(0);
               p.add(jt);
          return p;
I run in the same problem if i switch of the DB access and on a selection do nothing but System.out.println the count of selections (I get it after ~ 800 clicks in rapid succession under theese circumstances)
I am having about 50 items in the list.

Similar Messages

  • Magic mouse doesn't allow me to zoom in and out, just scroll

    just purchased imac and magic mouse, read allow instructions and how to use and have everything correct in settings but doesnt let me zoom in and out. tried holding control down and still nothing ?

    Go to System Preferences > Universal Access > Seeing.
    In the Zoom section, click the Options button (note - Zoom itself does not need to be turned on). In the new screen, make sure the last item, "Use scroll wheel with modifier key..." is checkmarked, and that Control is the chosen modifier key (the character entry box on that line should be showing a single upward-pointing carat, which is the symbol for the Control key).

  • TileLayout spark Item Renderer and Zoom in and zoom out

    I implemented a spark ItemRenderer, which serves a DataGroup with TileLayout:
        <s:Border id="scrollView"
                  styleName="scrollView"
                  width="100%"
                  height="100%">
            <s:filters>
                <s:DropShadowFilter inner="true"
                                    alpha=".35"/>
            </s:filters>
            <s:Scroller id="continuousViewScroller"
                        height="100%"
                        width="100%">
                <s:DataGroup id="continuousView"
                             height="100%"
                             width="100%"
                             itemRenderer="PageRenderer"
                             dataProvider="{pages}">
                    <s:layout>
                             <s:TileLayout columnAlign.OneUpView="justifyUsingWidth"
                             columnAlign.TwoUpView="left"
                             verticalGap="10"
                             horizontalGap.TwoUpView="10"
                             horizontalAlign="center"
                             verticalAlign="top"
                             useVirtualLayout="true"
                             clipAndEnableScrolling="false"
                             requestedColumnCount.OneUpView="1"
                             requestedColumnCount.TwoUpView="2"/>
                        <!--
                        <s:VerticalLayout horizontalAlign="center"
                                          useVirtualLayout="true"
                                          clipAndEnableScrolling="false"
                                          variableRowHeight="true"
                                          paddingTop="5"
                                          paddingBottom="5"
                                          requestedRowCount="2"/>
                        -->
                    </s:layout>
                </s:DataGroup>
            </s:Scroller>
        </s:Border>
    I execute a zoom effect everytime some one pushes zoom in or zoom out buttons. The trouble is that zoom in and zoom out works fine. However, the gap between two item renderers increase, when I zoom out.
    Is there a way that the gap remains fixed?

    Zoom in means, within the PageRenderer, I use a Scale effect, which zooms in and out based on an event. The following code is for doing zoom in and zoom out for the PageRenderer. It works fine. However, the vertical/horizontal gaps increases once have a zoomed in and then try to zoom out incrementally. I want to keep the gap between elements same all the time.
    If I run this same code, with VerticalLayout, It works great. However, this does not work with TileLayout.
    The following link:
    http://opensource.adobe.com/wiki/display/flexsdk/Spark+TileLayout
    says:
    "Note that justify only grows the columnWidth/rowHeight, so to handle cases where the size of the columns/rows has to shrink, the default column width/row height should set explicitly to zero."
    Does anyone has any idea how to implement this?
    Source Code for zoom in and zoom out:
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/halo"
                    creationComplete="init()">
        <fx:Declarations>
            <s:Scale target="{this}" id="zoomPlayer"  duration="150" />
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.core.FlexGlobals;
                import mx.events.EffectEvent;
                private var _zoom:Number=1.0;
                [Bindable]
                public function set zoom(value:Number):void
                    _zoom=value;
                public function get zoom():Number
                    return _zoom;
                private function init():void
                    var proj:TestProject=FlexGlobals.topLevelApplication as   TestProject;
                    proj.systemManager.addEventListener(ZoomEvent.ZoomChange, updateZoom);
                private function updateZoom(event:ZoomEvent):void
                    if(zoom != event.zoom){   
                        if(zoomPlayer.isPlaying){
                            zoomPlayer.stop();
                        zoomPlayer.addEventListener(EffectEvent.EFFECT_END, zoomEnd);
                        zoomPlayer.scaleXFrom=zoom;
                        zoomPlayer.scaleXTo=event.zoom;
                        zoomPlayer.scaleYFrom=zoom;
                        zoomPlayer.scaleYTo=event.zoom;
                        zoomPlayer.play();
                        zoom=event.zoom;
                private function zoomEnd(event:EffectEvent):void{
                    zoomPlayer.removeEventListener(EffectEvent.EFFECT_END,zoomEnd);

  • I can't zoom in and out using the scroll wheel

      so i want to zoom in and out on photoshop how i always have...using ctrl and scroll wheel...
    but when i went to do it how i naturally do it, it didnt work..after some research i found you go into preferences, general and tick the box about zoom scroll or somthing.
    Yet when i go onto it i dont have any options about zooming !!?? from what ive seen i have less options than others.
    and im pretty sure it isnt only available on newer version..because i have done it before on really old photoshop versions.
    so any help would be appriciated, thanks

    Photoshop 7 doesn't have a preference for using  Zoom With Scroll Wheel like cs2 and later do, but holding down the Alt key and using the scroll wheel should work
    to zoom in or out.
    Does the Alt key work if you make a selection and then use Alt+Ctrl+D to bring up the Feather dialog?
    Does the scroll wheel work to change the layer blend modes by duplicating the layer and highlighting
    the layer blend mode of Normal in the layers palette and then using the scroll wheel to change blend modes?

  • DataGrid Horizontal Scroll Problem when datagrid contains Item renderer

    I have datagrid with horizontal scroll policy enabled. Grid
    contains some item renderer also.One of the item renderer is
    datefield when i select a date from the datefield and say the
    adjacent cell of the grid also contain datefield itemrenderer
    and i am selecting date from that itemrenderer also.When i
    scroll horizontally the date in the itemrender changes to any one
    of the two itemrenderer.Some time it works fine.I am getting the
    issue for combobox itemrender also.Can any one help me to solve
    this issue.

    "happybrowndog" <[email protected]> wrote in
    message
    news:ge11ag$jdo$[email protected]..
    >
    quote:
    Originally posted by:
    ravi_bharathii
    > I have datagrid with horizontal scroll policy enabled.
    Grid contains some
    > item
    > renderer also.One of the item renderer is datefield when
    i select a date
    > from
    > the datefield and say the adjacent cell of the grid also
    contain datefield
    > itemrenderer
    > and i am selecting date from that itemrenderer also.When
    i scroll
    > horizontally
    > the date in the itemrender changes to any one of the two
    itemrenderer.Some
    > time
    > it works fine.I am getting the issue for combobox
    itemrender also.Can any
    > one
    > help me to solve this issue.
    >
    > Ravi, I am having a similar problem. I subclass a
    TextInput as an
    > itemrenderer for a column in a datagrid. My subclassed
    TextInput checks
    > to see
    > the value in the overriden set() method, and depending
    on the value, sets
    > the
    > background color of the TextInput to green. When the
    datagrid scrolls
    > horizontally, some unrelated cell colors also change
    green and some of the
    > data
    > gets duplicated in the cells. The underlying data
    provider's data is not
    > confused however. Seems the rendering is screwed up when
    the Datagrid
    > scrolls.
    >
    > Did you find a solution to this problem? I think
    Datagrid is a piece of
    > screwed up code.
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
    Q2

  • Datagrid Drop Down Item renderer Scroll Problem

    Hi,
    I am having a problem with an drop down item renderer on a Datagrid.  When ever the datagrid is displayed and the cell is clicked on i want this to display a drop down list of objects.  I can get the drop down to appear with the list of objects.  H
     owever the scrollbar does not work on this item to allow the user to scroll through all the objects.  If you use the mouse wheel you can scroll down through them all but not when you try and click on the scroll bar to drag down.  Below is the code used.  Any advice why this might be happening?? 
    <mx:DataGridColumn headerText="Widget"
    dataField="WidgetName"
    editable="true"  headerWordWrap="false" textAlign="center" width="100"
    editorDataField="Widget">
    <mx:itemEditor>
    <fx:Component>
    <s:MXDataGridItemRenderer focusEnabled="true" height="22" >
    <fx:Script>
    <![CDATA[               
    import mx.events.FlexEvent;
    import spark.events.IndexChangeEvent;
    private var selectedWidget:Widget = null;
    public function get ccyPair():String {
    return  ddlCcyPairs.selectedItem.Widget;
    override protected function commitProperties():void {
    super.commitProperties();                
    trace("Commit .......");
    protected function ddlCcyPairs_changeHandler(event:IndexChangeEvent):void {
    for each(var ccyP:CurrencyPair in ddlCcyPairs.dataProvider) {
    if (ccyP.ccyPair == ddlCcyPairs.selectedItem.ccyPair) {
    selectedWidget = ccyP;
    ddlCcyPairs.selectedItem = selectedWidget;
    protected function ddlCcyPairs_creationCompleteHandler(event:FlexEvent):void {                 
    for each(var ccyP:CurrencyPair in ddlCcyPairs.dataProvider) {
    if (ccyP.ccyPair ==  data.ccyPairName) {
    selectedWidget = ccyP;
    ddlCcyPairs.selectedItem = selectedWidget;
    ]]>
    </fx:Script>
    <s:DropDownList id="ddlWidgets" width="100%"
    dataProvider="{parentApplication.Widgets}"
    labelField="name"              
    selectedItem="selectedWidget"
    creationComplete="ddlWidgets_creationCompleteHandler(event)"
    change="ddlWidgets_changeHandler(event)"/>
    </s:MXDataGridItemRenderer>
    </fx:Component>
    </mx:itemEditor>
    </mx:DataGridColumn>

    Hi, Post a test code.... It will be a lot easier to help you Mich

  • DataGrid Item Renderer loading duplicates after scroll

    HI,
    I have a report that loads into a datagrid, these reports are
    about thumbnail images that are on a server.
    I have a datagrid item renderer that loads the thumb nails.
    When the grid first loads the first set of rows that are visible
    display the correct images. But after I scroll the new rows have
    images that are repeated and not the correct ones.
    ?xml version="1.0" encoding="utf-8"?>
    <HBox xmlns="
    http://www.adobe.com/2006/mxml"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    creationComplete="{init()}">
    <Script>
    <![CDATA[
    import mx.controls.Image;
    [Bindable]
    [Embed(source="/images/folderBlack.png")]
    private var folderIcon:Class;
    private function suffix(url:String):String {
    var i:Number;
    if ((i = url.lastIndexOf(".")) > -1) {
    url = url.substr(i+1);
    return url;
    private function init():void {
    var fileSuffix:String = new String;
    fileSuffix = '';
    fileSuffix = suffix(data.filename);
    var staticPortalImage:String = new String;
    staticPortalImage = '/PULLIMAGE.php?type=small&id=' +
    data.FileID +
    '&path=' + data.filename +
    '&server=MTI3LjAuMC4x&siteurl=L0F1dGhNb2R1bGU=';
    var thumbNailImage:Image = new Image();
    thumbNailImage.height = 80;
    switch(fileSuffix){
    case 'jpg':
    thumbNailImage.source = staticPortalImage;
    break;
    imageContainer.addChild(thumbNailImage);
    texttest.text = fileSuffix;
    ]]>
    </Script>
    <Text id="texttest" />
    <HBox id="imageContainer" height="80" />
    </HBox>

    Thanks
    Great article I ended up getting rid of the creationcomplete
    changing my init():void too override public function set data(
    value:Object ) : void
    and adding
    super.data = value;
    I was able then to clean up my code considerably.
    Once again Thanks
    Dean

  • Whenever I select something, for example, I cannot see the marching ants selection until I either scroll up or down or zoom in or out. This occurs whenever I paste an image as well--nothing shows on screen until I scroll up or down or zoom in or out. Why

    Whenever I select something, for example, I cannot see the marching ants selection until I either scroll up or down or zoom in or out. This occurs whenever I paste an image as well--nothing shows on screen until I scroll up or down or zoom in or out. Why is this?

    Ap_Compsci_student_13 wrote:
    ok sorry but doesn't sscce say to post the whole code?the first S is Short, and yes, it needs to be all the code needed to illustrate the problem and let use reproduce it. If you were developing a new Web framework, your example might be short, but for a student game it's very long.

  • Why wont Illustrator CC let me use Alt + Scroll on my mouse to zoom in and out smoothly?

    When i use Illustrator CS6 i am able to zoom in and out smothly by pressing my option key on my Mac and then scroll with my mouse. It wont let me do that in Illustrator CC, why not? Also i should not that this zoom does not use the zoom tool on the left hand tool bar.
    Thank you for any help.

    Did Option+mouse scroll ever zoom smoothly? (Wish it did.)
    For me it zooms in hops: 50, 66.67, 100, 150, 200 etc. same as when you click with the zoom tool.
    You can of course enter exact zoom %s at the bottom left of the Illie window but that’s not smooth either.

  • TS2662 why is my magic mouse suddenly doing things i don't want it to do? zooming in and out without even touching it? stopped scrolling & swiping and when clicking brings up a sub menu?

    hi hope somebody can help me before i launch this thing at the wall!!! i have had no problems with my imac before but all of a sudden my mouse has taken on a life of its own.
    its zooming in and out side to side all over the place when i'm not even touching it. yet when i want it to zoom in and out now it dosnt even acknowledge my tapping and swiping. (its actually zooming in and out as i'm writing this!!!!!
    when i click on anything instead of doing what i want it do do it brings up a sub menu?
    i have a feeling when my baby smacked the keyboard, it may have something to do with it but i have since gone into the mouse settings and made sure all the boxes are ticked etc.. has he broken my mac? :/

    Original comment deleted by author.
    Please do not repeat problems over multiple threads.

  • DataGrid not rendering images during scrolling

    I've created a "Reusable Inline Item Renderer" to display an
    image in a DataGrid's column, as is shown here:
    http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/#reusable_item
    With one difference: In the example the source of the Image
    component in the item rendered is being set to the URL of an image
    file. In mine I am setting the source as a Bitmap object, the
    Bitmap being a public and Bindable property of an Object in an
    Array. This Array of Objects is the DataGrid's dataProvider.
    And it works fine, except that when I scroll the DataGrid,
    any images that have been scroll off screen and then back on again
    are blank where the image used to be. I've tried tracing out the
    source of each Image when it renders and it still has a Bitmap
    object as it's source even though it is no longer displaying
    it.

    I have been beating my head against the wall on this problem too for awhile now.  There is precious little mentioned anywhere about it.
    I tried to recreate your code, as follows, to solve my problem but now am getting compilation errors.
    Can you please share your code segment on how you did it?    (It would also be helpful to see how you call it too.)  I am loading images from the web with Loader.
    This does not compile:
            public function get data():BitmapData {
                return _data;
            public function set data(value:BitmapData):void {
                _data = value;
                 var newBitmap:Bitmap = new Bitmap(value);
                source = newBitmap;
    In my main class, the data provider is already populated, so I am replacing the cell with the bitmap.
    Thanks for any help you can give.

  • Item renderer question

    I have an item renderer that adds a checkbox to my tree and
    checks it. My problem is that when i uncheck the box and scroll
    down the tree there are random boxes that are unchecked. Does
    anyone know how to get around this? Here is the renderer, and any
    help would be greatly appreciated!!
    package components
    import mx.core.Container;
    import mx.core.IDataRenderer;
    import mx.controls.CheckBox;
    import mx.controls.treeClasses.*;
    import mx.collections.*;
    import flash.xml.*;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    import mx.controls.listClasses.*;
    public class myTreeItemRenderer extends TreeItemRenderer
    private var nodeType:String;
    // myCheckBox: holds the CheckBox we are adding to the tree
    nodes
    protected var myCheckBox:CheckBox;
    // set the margin between the image we are adding, and the
    label
    private var cbToLabelMargin:Number = 2;
    // show default branch icon?
    private var showDefaultBranchIcon:Boolean = false;
    // show default leaf icon?
    private var showDefaultLeafIcon:Boolean = false;
    public function myTreeItemRenderer()
    super();
    // InteractiveObject variables.
    mouseEnabled = false;
    public function openBranch(evt:Event):void
    // get the TreeListData
    var myListData:TreeListData = TreeListData(this.listData);
    // get the selected node
    // var selectedNode:Object = myListData.node;
    var selectedNode:Object = myListData.item;
    var selectedNodeXML:XMLList = new XMLList(selectedNode);
    // get the tree that owns us
    var theTree:Tree = Tree(myListData.owner);
    // find out if the selected branch is already open
    //var isBranchOpen:Boolean = theTree.getIsOpen( selectedNode
    //mx.controls.Alert.show(selectedNode.toString());
    // if the selected branch is open, let's close it
    // and if it's closed, let's open it
    //var isBranchOpen:Boolean = isBranchOpen ? false : true;
    //theTree.setIsOpen( selectedNode, isBranchOpen, true, false
    if(theTree.id=="soTree")
    this.parentApplication.soCheckBoxChanged(evt,selectedNodeXML);
    //mx.controls.Alert.show(selectedNodeXML.attribute('id')+"
    "+selectedNodeXML.attribute('type')+" False");
    else if(theTree.id=="ntaTree")
    override protected function createChildren():void
    // create a new CheckBox() to hold the CheckBox we'll add to
    the tree item
    myCheckBox = new CheckBox();
    myCheckBox.setStyle( "verticalAlign", "middle" );
    myCheckBox.selected=true
    // and apply it to the tree item
    addChild(myCheckBox);
    // add the event listener to the whole tree item
    // this will let us click anywhere on the branch item to
    expose the children of this branch
    myCheckBox.addEventListener( MouseEvent.CLICK, openBranch );
    super.createChildren();
    override public function set data(value:Object):void
    if(value==null)
    return;
    else
    super.data = value;
    // get the tree that owns us
    var _tree:Tree = Tree(this.parent.parent);
    // if the current node is a branch node
    if(TreeListData(super.listData).hasChildren)
    // set styles...
    setStyle("color", 0x000000);
    setStyle("fontWeight", 'bold');
    // if we don't want to show the default branch icons, let's
    empty them
    if( !showDefaultBranchIcon )
    _tree.setStyle("folderClosedIcon", null);
    _tree.setStyle("folderOpenIcon", null);
    else
    // if we are in here, then the current node is a leaf node
    // set styles...
    setStyle("color", 0x000000);
    setStyle("fontWeight", 'normal');
    // if we don't want to show the default leaf icons, let's
    empty them
    if( !showDefaultLeafIcon )
    _tree.setStyle("defaultLeafIcon", null);
    override protected function
    updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    if(super.data)
    // if the current node is a branch
    if(TreeListData(super.listData).hasChildren)
    // get the current node and it's children as XMLList
    // var currentNodeXMLList:XMLList = new
    XMLList(TreeListData(super.listData).node);
    var currentNodeXMLList:XMLList = new
    XMLList(TreeListData(super.listData).item);
    nodeType= currentNodeXMLList.attribute('type');
    // get the number of children under the current node
    var numOfImmediateChildren:int =
    currentNodeXMLList[0].children().length();
    // set the image to be displayed in the branches
    //myImage.source = branchImage;
    // set the label text
    super.label.text = TreeListData(super.listData).text + "(" +
    numOfImmediateChildren + ")";
    else
    // if we are in here, then the current node is a leaf node
    //myImage.source = leafImage;
    // reset the position of the image to be before the label
    myCheckBox.x = super.label.x;
    // reset the position of the label to be after the image,
    plus give it a margin
    super.label.x = myCheckBox.x + 10 + cbToLabelMargin;
    }

    Hi,
    The links you have refered are really useful. Unfortunatelly, my environment is just flex sdk 3.
    So I have to find some other solution to finish this logic.
    Nith

  • I cannot zoom in or out in a Mozilla window running Adobe Flash.

    I cannot zoom out (or in) in a Mozilla window running Adobe Flash. Ctrl+/- , Ctrl up/down and using the mousepad to zoom in or out (I have Win7), and holding Ctrl while scrolling does not work. I cannot zoom out more using Adobe Flash either.
    I can change the zoom with windows with menu bars, but this one does not have one.

    You can apply the Ken Burns effect by clicking on "Ken Burns" rather than Fit.
    If you would like the Ken Burns to be able to go beyond the boundaries of the photo so you can zoom more, choose "Allow Black".

  • Magic mouse won't akkow zooming in and out

    i bought a brand new 27" imac i couple months ago and have tried time and time again looking u how to use the zoom in and out by pinchin the mouse but there is no such option on my imac

    Hello there Curtis,
    Your Magic Mouse can zoom in on the screen with this command:
    Screen zoom
    Hold down the Control key on your keyboard and scroll with one finger on Magic Mouse to enlarge items on your screen.
    From: http://www.apple.com/magicmouse/
    Take care,
    Sterling

  • How do you measure performance of an item renderer?

    I'm creating an ItemRenderer in Flex 4.6 and I want to know how to measure total time to create, view and render an item renderer and how long it takes to view and render that item renderer when it's being reused.
    I just watched the video, Performance Tips and Tricks for Flex and Flash Development and it describes the creation time, validation time and render time and also the reset time. This is described at 36:43 and 40:25.
    I'm looking for a way to get numbers in milliseconds for total item renderer render time and reset time (what is being done in the video). 

    To answer your first question, in this video Ryan Frishberg recommends measuring and tuning your code. I'm trying to follow his example for my own item renderers.
    I've taken some key slides out to show you.

Maybe you are looking for