public class TracePainterVerticalBar extends TracePainterConfigurable<PointPainterVerticalBar>
ITracePoint2D to show.
Bars are placed around the x value to render: the middle of the bar in x dimension is the exact x value.
FIXME: Look if this one could extend TracePainterConfigurable.
m_pointPainter| Constructor and Description |
|---|
TracePainterVerticalBar(Chart2D chart)
Creates an instance with a default bar width size of 4.
|
TracePainterVerticalBar(int barWidth,
Chart2D chart)
Creates an instance with the bar width.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getBarWidth()
Returns the diameter of the discs to paint in pixel.
|
void |
setBarWidth(int barWidth)
Sets the width of the bars to paint in pixel.
|
calculateMaxX, calculateMaxY, calculateMinX, calculateMinY, compareTo, endPaintIteration, getPointPainter, hashCode, isAdditionalSpaceRequiredX, isAdditionalSpaceRequiredY, isPixelTransformationNeededX, isPixelTransformationNeededY, paintPoint, startPaintIterationcompareTo, discontinue, getPreviousPoint, getPreviousX, getPreviousYpublic TracePainterVerticalBar(Chart2D chart)
chart - needed for bound information.public TracePainterVerticalBar(int barWidth,
Chart2D chart)
barWidth - the bar width in pixel to use.chart - needed for bound information.public boolean equals(Object obj)
equals in class TracePainterConfigurable<PointPainterVerticalBar>Object.equals(java.lang.Object)public int getBarWidth()
public void setBarWidth(int barWidth)
barWidth - the width of the bars to paint in pixel.Copyright © 2017. All rights reserved.