org.sonar.plugins.core.hotspots.client.widget
Class AbstractHotspot

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.sonar.plugins.core.hotspots.client.widget.AbstractHotspot
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener
Direct Known Subclasses:
MetricHotspot, MostBadlyDesignedFiles, MostViolatedResources, MostViolatedRules

public abstract class AbstractHotspot
extends com.google.gwt.user.client.ui.Composite


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static int LIMIT
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
protected AbstractHotspot(String id, Resource resource)
           
 
Method Summary
protected  double getPercentPonderatedValue(Double value, Double lower, Double upper)
           
 Resource getResource()
           
protected  String getRowCssClass(int row)
           
protected  void loadData()
           
 void onLoad()
           
protected  void render(com.google.gwt.user.client.ui.Widget widget)
           
protected  void renderEmptyResults()
           
protected  void renderGraphCell(com.google.gwt.user.client.ui.Grid hotspotGrid, Measure measure, Measure firstMeasure, int row, int column)
           
protected  void renderNameCell(com.google.gwt.user.client.ui.Grid hotspotGrid, Resource resource, String metricKey, int row, int column)
           
protected  void renderValueCell(com.google.gwt.user.client.ui.Grid hotspotGrid, Measure measure, int row, int column)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LIMIT

public static final int LIMIT
See Also:
Constant Field Values
Constructor Detail

AbstractHotspot

protected AbstractHotspot(String id,
                          Resource resource)
Method Detail

getResource

public Resource getResource()

onLoad

public void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

loadData

protected void loadData()

render

protected void render(com.google.gwt.user.client.ui.Widget widget)

renderEmptyResults

protected void renderEmptyResults()

renderNameCell

protected void renderNameCell(com.google.gwt.user.client.ui.Grid hotspotGrid,
                              Resource resource,
                              String metricKey,
                              int row,
                              int column)

renderValueCell

protected void renderValueCell(com.google.gwt.user.client.ui.Grid hotspotGrid,
                               Measure measure,
                               int row,
                               int column)

renderGraphCell

protected void renderGraphCell(com.google.gwt.user.client.ui.Grid hotspotGrid,
                               Measure measure,
                               Measure firstMeasure,
                               int row,
                               int column)

getRowCssClass

protected String getRowCssClass(int row)

getPercentPonderatedValue

protected double getPercentPonderatedValue(Double value,
                                           Double lower,
                                           Double upper)


Copyright © 2009-2011 SonarSource. All Rights Reserved.