com.iver.cit.gvsig.fmap.rendering
Class FStyledShapePainter

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.rendering.FStyledShapePainter

public class FStyledShapePainter
extends java.lang.Object

A simple class that knows how to paint a Shape object onto a Graphic given a Style2D. It's the last step of the rendering engine, and has been factored out since both renderers do use the same painting logic.

Author:
Andrea Aime

Constructor Summary
FStyledShapePainter()
           
 
Method Summary
 void paint(java.awt.Graphics2D graphics, java.awt.Shape shape, Style2D style, double scale)
          Invoked automatically when a polyline is about to be draw.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FStyledShapePainter

public FStyledShapePainter()
Method Detail

paint

public void paint(java.awt.Graphics2D graphics,
                  java.awt.Shape shape,
                  Style2D style,
                  double scale)
Invoked automatically when a polyline is about to be draw. This implementation paints the polyline according to the rendered style

Parameters:
graphics - The graphics in which to draw.
shape - The polyline to draw.
style - The style to apply, or null if none.
scale - The scale denominator for the current zoom level