Package net.sf.orexio.common.ui

Examples of net.sf.orexio.common.ui.Spotlight


  protected Spotlight createSpotlight(java.awt.Component c){
    int x=getX(c);
    int y=getY(c);
    int w=c.getSize().width;
    int h=c.getSize().height;
    return new Spotlight(x-((w/2)/2),
        y-((h/2)/2),
        w+(w/2),
        h+(h/2));
  }
View Full Code Here


*/
class Page2 extends DemoPage{
  public List<Spotlight> getSpotlights(FrameCulture cultureViewer){
    List<Spotlight> spotlights=new ArrayList<Spotlight>();
   
    spotlights.add(new Spotlight(getX(cultureViewer.getJTabbedPaneMain())-25,
        getY(cultureViewer.getJTabbedPaneMain())-50,
        150,
        150));
   
    return spotlights;
View Full Code Here

  public List<Spotlight> getSpotlights(FrameCulture cultureViewer){
    List<Spotlight> spotlights=new ArrayList<Spotlight>();
   
    cultureViewer.getJTabbedPaneMain().setSelectedIndex(1);
   
    spotlights.add(new Spotlight(getX(cultureViewer.getJPanelPlantationsDetails())-(cultureViewer.getJPanelPlantationsDetails().getSize().width/8),
        getY(cultureViewer.getJPanelPlantationsDetails())-(cultureViewer.getJPanelPlantationsDetails().getSize().height/8),
        cultureViewer.getJPanelPlantationsDetails().getSize().width+(cultureViewer.getJPanelPlantationsDetails().getSize().width/4),
        cultureViewer.getJPanelPlantationsDetails().getSize().height+(cultureViewer.getJPanelPlantationsDetails().getSize().height/4)));
   
    return spotlights;
View Full Code Here

TOP

Related Classes of net.sf.orexio.common.ui.Spotlight

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.