JIDE 3.5.15

com.jidesoft.marker
Class DefaultMarkerStripePainter

java.lang.Object
  extended by com.jidesoft.marker.DefaultMarkerStripePainter
All Implemented Interfaces:
MarkerStripePainter

public class DefaultMarkerStripePainter
extends Object
implements MarkerStripePainter

Default implementation of MarkerStripePainter.


Constructor Summary
DefaultMarkerStripePainter()
           
 
Method Summary
 int getMaxStripeHeight()
          Gets the maximum height for a single stripe.
 void paint(MarkerArea markerArea, Graphics g, Marker marker, Rectangle rect)
          Paints the marker stripe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMarkerStripePainter

public DefaultMarkerStripePainter()
Method Detail

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 area
g - the Graphics
marker - the marker
rect - the rect relative to the MarkerArea where the marker will be painted.

JIDE 3.5.15