How create zoom in and zoom out buttons in a JfreeChart

hi,
i want implements a "zoom in" and "zoom out" functionalitys form my Jfreechart. in a popupmenu this function there is, but i want create two buttons.
I don't know how implement this.
Can you help me???
Tanx
P.S. Sorry for my english :D

If you right click on any of the JFreeChart standard examples you will see buttons that allow you to zoom in and zoom out. Just follow the code that the examples use. This feature can be enabled/disabled using the parameters in the chart construction. Check the Javadoc.

Similar Messages

  • How to fade in and fade out buttons ???

    Hi guys I am building a website and I need help to fade in/ fade out buttons. Here is an example :
    My main goal is that when I roll over the services button, I want the submenu (corporate and weddings) to fade in. Then when I roll over the portfolio button, I want the first submenu (corporate and weddings) to fade out and the second submenu ( clients, corporate, weddings, etc..) to fade in and to stay like this. Finally when I roll over testimonials, the second submenu fades out. And so on for the rest of the buttons.
    FYI, i know how to animate the buttons to fade in/out but i dont know how to make them fade out when i roll over the other buttons.. I know this can be done with action script but I have no clue how...
    I have attached my fla and swf.
    http://www.habouryentertainment.com/files/site09_help.fla
    http://www.habouryentertainment.com/files/site09.flw
    Your help would be greatly appreciated !!!
    Thanks

    Some things you just have to take the time to unravel and learn.  It's not difficult/complex, you just have to avoid letting the code overwhelm you by its appearance... instead of looking at pages, look at one page at a time, line by line... take your time and follow a tutorial.
    People make tutorials to help those that need to learn, so there's no reason for anyone here to reinvent those wheels for every person that comes along.  If you are looking for someone who'll hand you your solved design, sorry, I'm not that guy.

  • I have always been able to zoom in on my photo by holding the cmd and space bar, that changed and now it creates a box and zooms in on that area and I can't zoom out using cmd   space bar. How do I change it back to the  original way of zooming?

    i have always been able to zoom in on my photo by holding the cmd and space bar, that changed and now it creates a box and zooms in on that area and I can't zoom out using cmd   space bar. How do I change it back to the  original way of zooming?

    Select the Zoom Tool in the tool box and see if Scrubby Zoom is unchecked or greyed out in the tool options bar.
    (you want Scrubby Zoom checked)

  • How to Zoom in and zoom out

    Hi All,
    I am making a JFrame in which animation is shown. Balls are moving randomly on the canvas. I want to zoom in and zoom out the animation. How can i do that . Any source code or ant tip please.

    AffineTransformya, or Graphics2D.scale

  • TheThe "Zoom in" ( ) and "Zoom out" (-) buttons stopped working

    The  “Zoom in” and “Zoom out” buttons stopped working when I open a pdf file within Safari. I'd appreciate some direction as to what I should do.
    Thanks,
    Julio

    Carolyn,
    I downloaded and installed the Adobe plug in and it worked.
    For those who may read this. I downloaded "AdbeRdr1013_en_US.dmg" from the link below:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5363/.
    Have a nice day.
    Julio

  • How to open,view pdf document in a form with zoom in and zoom out functionality Please urgent

    Hi
    Anybody can help me with a sample code in c# to open a pdf document using forms and to give the functionality   zoom in and zoom out   with verticall and horizontal scroll bar. Please help
    Regards
    Pol
    polachan

    Hello polachan,
    you can find two sample projects with code at
    [1] and
    [2].
    [1]
    http://www.codeproject.com/Articles/579878/MoonPdfPanel-A-WPF-based-PDF-viewer-control
    [2]
    http://www.gnostice.com/nl_article.asp?id=159&t=How_To_Create_A_PDF_Viewer_in_PDFOne_NET_v2_x
    Regards,
    Bo Liu
    Developer-Hotline for MSDN Online Germany
    Disclaimer:
    Please take into consideration, that further inquiries cannot or will be answered with delay.
    For further information please contact us per telephone through the MSDN-Entwickler-Hotline:
    http://www.msdn-online.de/Hotline
    For this post by the MSDN-Entwickler-Hotline the following terms and conditions
    apply: Trademarks,
    Privacy
    as well as the separate
    terms of use for the MSDN-Entwickler-Hotline .

  • Zoom in and Zoom out

    How to zoom in and Zoom out the particular area in
    Graph

    hi,
    for zooming in & zooming out,you need to extend canvas class from AWT.Overide the method getPreferredSize() from component.Then attach this class to scrollpane.Add this scrollpane to container(Applet/Frame).Keep two button for zooming in & zooming out.when zooming in button is clicked increse the canvaswidth by amount you want,then say scrollpane.doLayout().This will create scrollbars to scrollpane.Try it out.If any difficulty then email me at [email protected]
    cheers
    dgk

  • 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);

  • What happened to zoom in and zoom out selection, so you could make the screen zoom in and out?

    I added zoom in and zoom out to my yahoo toolbar and from one of the sites that let you pick buttons to add to your toolbar, and now it has disappeared. And I can not find zoom anywhere. Have you heard of this happening before? If so do you have a resolution for this? Thanks in advance. Dan

    You seem to be using a Firefox 23.0a1 Nightly build.
    Please update to the current Firefox 24 release.
    *Help > About Firefox
    *https://support.mozilla.org/kb/update-firefox-latest-version.
    *https://support.mozilla.org/kb/Updating+Firefox
    The Firefox version that you currently run is no longer supported with security updates.
    *It is important to update Firefox and add-ons to the latest version to get all security fixes.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible.
    *Firefox menu button > Options
    *View > Toolbars (press F10 to display the menu bar)
    *Right-click empty toolbar area
    Use Toolbar Layout (Customize) to open the Customize window and set which toolbar items to display.
    *if missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar setup
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Panel content zoom in and zoom out

    I have created a panel  by using flex 4.5.1.But while increasing and decreasing  panel size content of panel also zoom in and zoom out respectively.But i dont want this functionality.Is there any way to overcome these problem?

    thnx..
    I have included above mentioned compiler argument but it works as before it work.There is no change in zoom_in, zoom_out functionality.

  • Stopping Zoom in and Zoom out of pictures

    I can't seem to find where I turn off the Zoom in and Zoom out features in iMovie related to pictures.
    Where or what I have to do to turn this feature off..
    Thanks

    Hi Douglas,
    Thanks for visiting Apple Support Communities.
    It does look like this is the default behavior for imported pictures in iMovie 10, and can't be disabled from the iMovie preferences. The best workaround is to select all of the pictures in your timeline and turn off the Ken Burns effect using the Adjust menu.
    iMovie Help
    http://help.apple.com/imovie/mac/10.0/#mov26d3f6a6c
    Modify a crop, rotation, or Ken Burns effect
    In the timeline, select the photos you want to modify or restore to their original state.
    Click the Adjust button in the toolbar.
    The adjustments bar appears above the clip in the viewer.
    To show the cropping controls, click the Cropping button.
    In the cropping controls, change Style from Ken Burns to Fit to display the pictures in their original size. From there, you can crop them individually as needed.
    Best,
    Jeremy

  • Is there a way to create a pan and zoom effect in a lightroom slideshow?

    Is there a way to create a pan and zoom effect in a lightroom slideshow?

    Nope. Be a great feature. For that I use FotoMagico after exporting JPEG's from LR.

  • How do you pan and/zoom an image--the "Ken Burns" effect?

    How do you pan and/zoom an image--the "Ken Burns" effect?

    Frequently answered question
    Cheers
    Eddie
    Forum FAQ
    Premiere Pro Wiki
    - Over 250 frequently answered questions
    - Over 100 free tutorials
    - Maintained by editors like
    you

  • Mesh line artifact movement upon zooming in and zooming out of composition

    I'm having a problem with my puppet tool in my After Effects composition–I'm getting this strange mesh line artifact.  The layers have been imported from an Illustrator file.  The boy has six puppet pin points.  Hand, wrist, elbow, shoulder, neck and head.  The actual animation of the puppet looks great, however, the problem arises with the zooming in and zooming out and panning over.  I'm zooming in and panning over to the boy with a camera layer and null object layer before the puppet animation and then zooming out and panning away from the boy when it is over, and it's as if the mesh outline is following my null object layer during the pan and zoom...  The boy is not on a pre-comp, and I tried to put in pre-comp to see if it made a difference but it does not.  I also tried expanding the mesh but it doesn't work either.  Any suggestions? 

    I'm having a similar problem. I have an illustrator file that I have a position and rotation change (to have the hand fly in), then the puppet tool mesh to have the pointer finger move to dial the numbers on the phone. I have tried non-pre-comped and pre-comped. Both produce the same results. In the first picture you can see that the mesh doesn't change position/rotation with the pre-comp. They seem to stay where I originally placed them. And where the hand flies in and moves over the mesh, that artifact is generated. I have tried expanding the mesh and making the pre-comp layer 3d.
    It's rather frustrating, and I haven't found anybody solving this problem out here on the interwebs.
    ***OK OK. The only way I figured out to fix this was to make the illustrated hand the exact size I need it in Illustrator. Then I just don't make the layer "continuously rasterized".

  • Zoom in and zoom out a image in a java applet

    hello, i don't find any example of code of a java applet that zoom in and zoom out an image in jpeg format...
    can you help me?
    thanks

    Crosspost (and other thread has started some answers):
    http://forum.java.sun.com/thread.jspa?threadID=624295

Maybe you are looking for

  • Can't add songs to library

    A friend of mine just recently added music to my computer and stuck it all in a folder on my desktop. I Imported it into itunes and onto my ipod, but some albums and artists didn't make it. I have plenty of room left on my ipod, and the music is alre

  • IMac Hard Drive Setup Recommendations/ Thunderbolt

    Hi, i am planning to get a new top spec 27" iMac with 256GB internal SSD and will use it mainly with Premiere CC and After Effects CC to edit Red Epic Footage. Mostly 3 to 10 minute web videos. I am now thinking about the best Hard Drive Setup and co

  • Database Access from Web Center Portal Application

    Hi, I have a requirement to store user preferences in database. These preferences will be fetched at the time of user login and page will be rendered accordingly. I was just wondering should I use Entity objects/view object for DB interaction or shou

  • VM deployment fails - blocked job using WAP deployment

    I am new so sorry if I am missing something very obvious. I am testing WAP and SCVMM 2012 R2. I created a public plan and deployed VMs. The last VM did not deploy successfully. I am assuming it was because for a time frame the VMM Library was not acc

  • Bought song off of Itunes .. adn it hads a lock symble on it

    HI, Every Time I buy a song From Itunes .. It has a lock Icon on it .... How do i get rid of that ?