com.droplets.api
Class BarPlot

java.lang.Object
  |
  +--com.droplets.api.PlotComponent
        |
        +--com.droplets.api.BarPlot

public class BarPlot
extends PlotComponent


Constructor Summary
BarPlot(IGraph g)
          Creates a new BarPlot.
BarPlot(Window window)
          Creates a new BarPlot.
 
Method Summary
 boolean getAutoBarWidth()
          Gets whether the bar width is automatic or set with setBarWidth
 Color getBarColor()
          Get the color of the bars
 int getBarWidth()
          Get the width of the bars in pixels
 Color getOutlineColor()
          Get the color of the outline of the bars
 void setAutoBarWidth(boolean value)
          Sets whether the bar width is automatic or set with setBarWidth
 void setBarColor(Color c)
          Set the color of the bars
 void setBarColor(Color c, java.lang.String skinName)
          Set the color of the bars
 void setBarWidth(int width)
          Set the width of the bars in pixels
 void setBarWidth(int width, java.lang.String skinName)
          Set the width of the bars in pixels
 void setOutlineColor(Color c)
          Set the color of the outline of the bars
 void setOutlineColor(Color c, java.lang.String skinName)
          Set the color of the outline of the bars
 
Methods inherited from class com.droplets.api.PlotComponent
addDataPoint, addPlotChangeListener, changeDataPoint, getAutoMinMaxX, getAutoMinMaxY, getHintTemplate, getIsEditable, getLegendText, getProxy, notifyPlotChangeListener, removeAllDataPoints, removePlotChangeListener, setAutoMinMaxX, setAutoMinMaxY, setHintTemplate, setIsEditable, setLegendText, setMaxX, setMaxY, setMinX, setMinY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarPlot

public BarPlot(IGraph g)
Creates a new BarPlot.
Parameters:
g - the graph in which this component will be placed

BarPlot

public BarPlot(Window window)
Creates a new BarPlot.
Parameters:
window - the window in which this component will be placed
Method Detail

getBarColor

public Color getBarColor()
Get the color of the bars
Returns:
the color of the bars in the graph

setBarColor

public void setBarColor(Color c,
                        java.lang.String skinName)
Set the color of the bars
Parameters:
c - the color of the bars in the graph
skinName - the skin name for this setting

setBarColor

public void setBarColor(Color c)
Set the color of the bars
Parameters:
c - the color of the bars in the graph

getOutlineColor

public Color getOutlineColor()
Get the color of the outline of the bars
Returns:
the color of the outline of the bars in the graph

setOutlineColor

public void setOutlineColor(Color c,
                            java.lang.String skinName)
Set the color of the outline of the bars
Parameters:
c - the color of the outline of the bars in the graph
skinName - the skin name for this setting

setOutlineColor

public void setOutlineColor(Color c)
Set the color of the outline of the bars
Parameters:
c - the color of the outline of the bars

getBarWidth

public int getBarWidth()
Get the width of the bars in pixels
Returns:
the color of the outline of the bars in the graph

setBarWidth

public void setBarWidth(int width,
                        java.lang.String skinName)
Set the width of the bars in pixels
Parameters:
width - the width of the bars in pixels
skinName - the skin name for this setting

setBarWidth

public void setBarWidth(int width)
Set the width of the bars in pixels
Parameters:
c - the color of the outline of the bars
See Also:
setAutoBarWidth(boolean)

getAutoBarWidth

public boolean getAutoBarWidth()
Gets whether the bar width is automatic or set with setBarWidth
Returns:
true if the bar width should automatically be determined from the data
See Also:
setBarWidth(int)

setAutoBarWidth

public void setAutoBarWidth(boolean value)
Sets whether the bar width is automatic or set with setBarWidth
Parameters:
auto - true if the bar width should automatically be determined from the data


Copyright © Droplets, 2001. All Rights Reserved.