com.jidesoft.marker
Class DefaultMarkerStripePainter
java.lang.Object
com.jidesoft.marker.DefaultMarkerStripePainter
- All Implemented Interfaces:
- MarkerStripePainter
public class DefaultMarkerStripePainter
- extends Object
- implements MarkerStripePainter
Default implementation of MarkerStripePainter
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMarkerStripePainter
public DefaultMarkerStripePainter()
getMaxStripeHeight
public int getMaxStripeHeight()
- Description copied from interface:
MarkerStripePainter
- Gets the maximum height for a single stripe.
- Specified by:
getMaxStripeHeight
in interface MarkerStripePainter
- Returns:
- the maximum height for a single stripe.
paint
public void paint(MarkerArea markerArea,
Graphics g,
Marker marker,
Rectangle rect)
- Description copied from interface:
MarkerStripePainter
- Paints the marker stripe.
Please note, you don't need to reset the color used in this paint method because we will reset it after the
paint() of all painters are called.
- Specified by:
paint
in interface MarkerStripePainter
- Parameters:
markerArea
- the marker areag
- the Graphicsmarker
- the markerrect
- the rect relative to the MarkerArea where the marker will be painted.