edu.uci.ics.jung.visualization.transform.shape
Class GraphicsDecorator

java.lang.Object
  extended by edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
      extended by edu.uci.ics.jung.visualization.transform.shape.GraphicsDecorator
Direct Known Subclasses:
TransformingGraphics

public class GraphicsDecorator
extends Graphics2DWrapper

an extendion of Graphics2DWrapper that adds enhanced methods for drawing icons and components

Author:
Tom Nelson
See Also:
as an example subclass

Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
delegate
 
Constructor Summary
GraphicsDecorator()
           
GraphicsDecorator(Graphics2D delegate)
           
 
Method Summary
 void draw(Component c, CellRendererPane rendererPane, int x, int y, int w, int h, boolean shouldValidate)
           
 void draw(Icon icon, Component c, Shape clip, int x, int y)
           
 
Methods inherited from class edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
addRenderingHints, clearRect, clip, clipRect, copyArea, create, create, dispose, draw, draw3DRect, drawArc, drawBytes, drawChars, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, equals, fill, fill3DRect, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, fillRoundRect, finalize, getBackground, getClip, getClipBounds, getClipBounds, getClipRect, getColor, getComposite, getDelegate, getDeviceConfiguration, getFont, getFontMetrics, getFontMetrics, getFontRenderContext, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, hashCode, hit, hitClip, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setDelegate, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, toString, transform, translate, translate
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphicsDecorator

public GraphicsDecorator()

GraphicsDecorator

public GraphicsDecorator(Graphics2D delegate)
Method Detail

draw

public void draw(Icon icon,
                 Component c,
                 Shape clip,
                 int x,
                 int y)

draw

public void draw(Component c,
                 CellRendererPane rendererPane,
                 int x,
                 int y,
                 int w,
                 int h,
                 boolean shouldValidate)


Copyright © 2009. All Rights Reserved.