Package org.timepedia.chronoscope.client.render

Examples of org.timepedia.chronoscope.client.render.OverviewAxisPanel


   
    if (null == plot.getBounds() || !plot.isOverviewVisible()) {
      return;
    }
   
    OverviewAxisPanel oaPanel = plot.getOverviewAxisPanel();
    ValueAxis overviewAxis = oaPanel.getValueAxis();
    Bounds overviewAxisBounds = oaPanel.getBounds();
    Bounds hiliteBounds = oaPanel.getHighlightBounds();
    CompoundUIAction uiAction = chartInfo.getCompoundUIAction();
   
    // Translate the view (x,y) point into an (x,y) point relative to
    // the OverviewAxisPanel.
    Bounds plotBounds = plot.getBounds();
View Full Code Here


    //
    // Now check if (x,y) hit the overview axis
    //

    OverviewAxisPanel oaPanel = plot.getOverviewAxisPanel();
    if (oaPanel != null && oaPanel.getLayer() != null) {
      Bounds layerBounds = oaPanel.getLayer().getBounds();
      Bounds oaPanelBounds = oaPanel.getBounds();
      double viewOffsetX = layerBounds.x + oaPanel.getLayerOffsetX();
      double viewOffsetY = layerBounds.y + oaPanel.getLayerOffsetY();
      Bounds oaPanelAbsBounds = new Bounds(viewOffsetX, viewOffsetY,
          oaPanelBounds.width, oaPanelBounds.height);
      if (oaPanelAbsBounds.inside(x, y)) {
        return oaPanel.getValueAxis();
      }
    }

    return null;
  }
View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.render.OverviewAxisPanel

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.