| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectXYBubbleRenderer
edu.ucla.stat.SOCR.motionchart.MotionBubbleRenderer
public class MotionBubbleRenderer
Package: edu.ucla.stat.SOCR.motionchart Date: Dec 2, 2008 Time: 12:36:52 PM
| Constructor Summary | |
|---|---|
| MotionBubbleRenderer(MotionDataSet dataset)Creates a new MotionBubbleRenderer instance. | |
| MotionBubbleRenderer(MotionDataSet dataset,
                     int scaleType)Constructs a new MotionBubbleRenderer with the specified type of scaling. | |
| Method Summary | |
|---|---|
|  void | axisChanged(AxisChangeEvent event)Receives notification of an axis change event. | 
| protected  java.awt.geom.Point2D | calculateLabelAnchorPoint(ItemLabelAnchor anchor,
                          double x,
                          double y,
                          PlotOrientation orientation)Calculates the item label anchor point. | 
|  void | datasetChanged(DatasetChangeEvent event)Receives notification of an dataset change event. | 
|  void | drawItem(java.awt.Graphics2D g2,
         XYItemRendererState state,
         java.awt.geom.Rectangle2D dataArea,
         PlotRenderingInfo info,
         XYPlot plot,
         ValueAxis domainAxis,
         ValueAxis rangeAxis,
         XYDataset dataset,
         int series,
         int item,
         CrosshairState crosshairState,
         int pass)Draws the visual representation of a single data item. | 
|  java.awt.Paint | getItemLabelPaint(int row,
                  int column)Returns the paint used to draw an item label. | 
|  java.awt.Paint | getItemOutlinePaint(int row,
                    int column)Returns the paint used to outline data items as they are drawn. | 
|  java.awt.Stroke | getItemOutlineStroke(int row,
                     int column)Returns the stroke used to outline data items. | 
|  java.awt.Paint | getItemPaint(int row,
             int column)Returns the paint used to fill data items as they are drawn. | 
|  java.awt.Shape | getItemShape(int row,
             int column)Returns a shape used to represent a data item. | 
|  java.lang.Boolean | getSeriesVisible(int series)Returns the flag that controls whether a series is visible. | 
|  java.util.ArrayList<java.lang.Integer> | getVisibleSeries()Returns indices of all visible series. | 
|  boolean | isHighlightedItem(int series,
                  int item)Determines whether or not the item in the series is highlighted. | 
|  boolean | isItemLabelVisible(int row,
                   int column)Returns trueif an item label is visible, andfalseotherwise. | 
|  boolean | isSelectedCategory(java.lang.Object category)Determines whether or not the category is selected. | 
|  boolean | isSelectedItem(int series,
               int item)Determines whether or not the item in the series is selected. | 
|  void | plotChanged(PlotChangeEvent event)Receives notification of a plot change event. | 
|  void | setHighlightedItem(int series,
                   int item)Sets the item to be highlighted (use (-1, -1) for no highlight). | 
|  void | setPlot(XYPlot plot)Sets the plot that the renderer is assigned to. | 
|  void | setSelectedCategory(java.lang.Object category)Sets the category to be selected. | 
|  void | setSelectedCategory(java.lang.Object category,
                    boolean selected)Sets the category to be selected. | 
|  void | setSelectedItem(int series,
                int item)Sets the item to be selected. | 
|  void | setSelectedItem(int series,
                int item,
                boolean selected)Sets the item to be selected. | 
| protected  java.awt.geom.Ellipse2D.Double | translateShape(java.awt.geom.Ellipse2D.Double shape,
               XYPlot plot,
               java.awt.geom.Rectangle2D dataArea)Translates the shape so that it displays correctly given the plot and dataArea. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MotionBubbleRenderer(MotionDataSet dataset)
dataset - the dataset to be rendered (an MotionDataSet is expected).
public MotionBubbleRenderer(MotionDataSet dataset,
                            int scaleType)
dataset - the dataset that the renderer will usescaleType - the type of scaling (must be one of:
                  #SCALE_ON_BOTH_AXES, #SCALE_ON_DOMAIN_AXIS,
                  #SCALE_ON_RANGE_AXIS).| Method Detail | 
|---|
public void drawItem(java.awt.Graphics2D g2,
                     XYItemRendererState state,
                     java.awt.geom.Rectangle2D dataArea,
                     PlotRenderingInfo info,
                     XYPlot plot,
                     ValueAxis domainAxis,
                     ValueAxis rangeAxis,
                     XYDataset dataset,
                     int series,
                     int item,
                     CrosshairState crosshairState,
                     int pass)
g2 - the graphics device.state - the renderer state.dataArea - the area within which the data is being drawn.info - collects information about the drawing.plot - the plot (can be used to obtain standard color
                       information etc).domainAxis - the domain (horizontal) axis.rangeAxis - the range (vertical) axis.dataset - the dataset (a MotionDataSet is expected).series - the series index (zero-based).item - the item index (zero-based).crosshairState - crosshair information for the plot
                       (null permitted).pass - the pass index.
protected java.awt.geom.Ellipse2D.Double translateShape(java.awt.geom.Ellipse2D.Double shape,
                                                        XYPlot plot,
                                                        java.awt.geom.Rectangle2D dataArea)
shape - the shape to translateplot - the plot that will be used to translate the shapedataArea - the dataArea that the shape will be translated to
protected java.awt.geom.Point2D calculateLabelAnchorPoint(ItemLabelAnchor anchor,
                                                          double x,
                                                          double y,
                                                          PlotOrientation orientation)
anchor - the anchor.x - the x coordinate.y - the y coordinate.orientation - the plot orientation.
null).public java.lang.Boolean getSeriesVisible(int series)
series - the series index (zero-based).
null).#setSeriesVisible(int, Boolean)public java.util.ArrayList<java.lang.Integer> getVisibleSeries()
getSeriesVisible(int)
public java.awt.Paint getItemPaint(int row,
                                   int column)
lookupSeriesPaint() method. You can override this method
 if you require different behaviour.
row - the row (or series) index (zero-based).column - the column (or category) index (zero-based).
null).
public void setHighlightedItem(int series,
                               int item)
series - the series index (zero-based).item - the item index (zero-based).
public boolean isHighlightedItem(int series,
                                 int item)
series - the series index (zero-based).item - the item index (zero-based).
true if the item in the series is highlighted. false otherwise.
public void setSelectedItem(int series,
                            int item)
series - the series index (zero-based).item - the item index (zero-based).
public void setSelectedItem(int series,
                            int item,
                            boolean selected)
series - the series index (zero-based).item - the item index (zero-based).selected - true if the item should be selected. false otherwise.
public boolean isSelectedItem(int series,
                              int item)
series - the series index (zero-based).item - the item index (zero-based).
true if the item in the series is selected. false otherwise.public void setSelectedCategory(java.lang.Object category)
category - the category key.
public void setSelectedCategory(java.lang.Object category,
                                boolean selected)
category - the category key.selected - true if the item should be selected. false otherwise.public boolean isSelectedCategory(java.lang.Object category)
category - the category key.
true if the category is selected. false otherwise.
public java.awt.Paint getItemOutlinePaint(int row,
                                          int column)
#lookupSeriesOutlinePaint method.  You can override this method
 if you require different behaviour.
row - the row (or series) index (zero-based).column - the column (or category) index (zero-based).
null).
public java.awt.Stroke getItemOutlineStroke(int row,
                                            int column)
#lookupSeriesOutlineStroke(int) method. You can override this
 method if you require different behaviour.
row - the row (or series) index (zero-based).column - the column (or category) index (zero-based).
null).
public boolean isItemLabelVisible(int row,
                                  int column)
true if an item label is visible, and
 false otherwise.
row - the row index (zero-based).column - the column index (zero-based).
public java.awt.Paint getItemLabelPaint(int row,
                                        int column)
row - the row index (zero based).column - the column index (zero based).
null).
public java.awt.Shape getItemShape(int row,
                                   int column)
row - the row (or series) index (zero-based).column - the column (or category) index (zero-based).
null).public void setPlot(XYPlot plot)
plot - the plot (null permitted).public void plotChanged(PlotChangeEvent event)
event - the event.public void axisChanged(AxisChangeEvent event)
event - the event.public void datasetChanged(DatasetChangeEvent event)
event - information about the event.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||