Package org.mt4j.components.visibleComponents.widgets

Examples of org.mt4j.components.visibleComponents.widgets.MTList$ListCellDragListener$InertiaListController


   
    //CREATE LIST
    listWidth = preferredIconHeight + displayHeightOfReflection + gapBetweenIconAndReflection;
//    listHeight = app.width - 50;
    listHeight = app.width;
    list = new MTList(0,0, listWidth, listHeight, 40, mtApplication);
    list.setFillColor(new MTColor(150,150,150,200));
    list.setNoFill(true);
    list.setNoStroke(true);
   
    /*
 
View Full Code Here


    float cellWidth = 155;
    float cellHeight = 40;
    MTColor cellFillColor = new MTColor(new MTColor(0,0,0,210));
    MTColor cellPressedFillColor = new MTColor(new MTColor(20,20,20,220));
   
    MTList list = new MTList(0,0, 152, 7* cellHeight + 7*3, p);
    list.setChildClip(null); //FIXME TEST -> do no clipping for performance
    list.setNoFill(true);
    list.setNoStroke(true);
    list.unregisterAllInputProcessors();
    list.setAnchor(PositionAnchor.CENTER);
    list.setPositionRelativeToParent(mapMenu.getCenterPointLocal());
    mapMenu.addChild(list);
   
    list.addListElement(this.createListCell("Microsoft Aerial", font, new Microsoft.AerialProvider(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Microsoft Road", font, new Microsoft.RoadProvider(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Microsoft Hybrid", font, new Microsoft.HybridProvider(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Open Street Maps", font, new OpenStreetMaps(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Cloudmade Tourist", font, new CloudMade.Tourist(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Blue Marble", font, new BlueMarble(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
    list.addListElement(this.createListCell("Daily Planet", font, new DailyPlanet(), cellWidth, cellHeight, cellFillColor, cellPressedFillColor));
   
    MultiPurposeInterpolator in = new MultiPurposeInterpolator(0,170, 700, 0.1f, 0.7f, 1);
    final Animation slideOut = new Animation("slide out animation", in, mapMenu);
    slideOut.addAnimationListener(new IAnimationListener() {
      public void processAnimationEvent(AnimationEvent ae) {
View Full Code Here

    //Image list
    float cellWidth = 180;
    float cellHeight = 40;
    MTColor cellFillColor = new MTColor(MTColor.BLACK);
    MTColor cellPressedFillColor = new MTColor(new MTColor(105,105,105));
    list = new MTList(r.getWidthXY(TransformSpace.GLOBAL) + 5, 0, cellWidth+2, imagesNames.length* cellHeight + imagesNames.length*3, getMTApplication());
    list.setNoFill(true);
    list.setNoStroke(true);
    list.unregisterAllInputProcessors();
    list.setAnchor(PositionAnchor.UPPER_LEFT);
//    list.setPositionGlobal(Vector3D.ZERO_VECTOR);
View Full Code Here

TOP

Related Classes of org.mt4j.components.visibleComponents.widgets.MTList$ListCellDragListener$InertiaListController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.