public class TransformingGraphics extends GraphicsDecorator
Modifier and Type | Field and Description |
---|---|
protected BidirectionalTransformer |
transformer
the Function to apply
|
delegate
Constructor and Description |
---|
TransformingGraphics(BidirectionalTransformer transformer) |
TransformingGraphics(BidirectionalTransformer Function,
Graphics2D delegate) |
Modifier and Type | Method and Description |
---|---|
Graphics |
create() |
void |
dispose() |
void |
draw(Shape s)
transform the shape before letting the delegate draw it
|
void |
draw(Shape s,
float flatness) |
boolean |
drawImage(Image img,
AffineTransform at,
ImageObserver observer) |
boolean |
drawImage(Image img,
int x,
int y,
ImageObserver observer) |
void |
fill(Shape s)
transform the shape before letting the delegate fill it
|
void |
fill(Shape s,
float flatness) |
BidirectionalTransformer |
getTransformer() |
boolean |
hit(Rectangle rect,
Shape s,
boolean onStroke)
transform the shape before letting the delegate apply 'hit'
with it
|
void |
setTransformer(BidirectionalTransformer Function) |
draw, draw
addRenderingHints, clearRect, clip, clipRect, copyArea, create, draw3DRect, drawArc, drawBytes, drawChars, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRenderableImage, drawRenderedImage, drawRoundRect, drawString, drawString, drawString, drawString, equals, 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, hitClip, rotate, rotate, scale, setBackground, setClip, setClip, setColor, setComposite, setDelegate, setFont, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setXORMode, shear, toString, transform, translate, translate
protected BidirectionalTransformer transformer
public TransformingGraphics(BidirectionalTransformer transformer)
public TransformingGraphics(BidirectionalTransformer Function, Graphics2D delegate)
public BidirectionalTransformer getTransformer()
public void setTransformer(BidirectionalTransformer Function)
Function
- The Function to set.public void draw(Shape s)
draw
in class Graphics2DWrapper
public void draw(Shape s, float flatness)
public void fill(Shape s)
fill
in class Graphics2DWrapper
public void fill(Shape s, float flatness)
public boolean drawImage(Image img, int x, int y, ImageObserver observer)
drawImage
in class Graphics2DWrapper
public boolean drawImage(Image img, AffineTransform at, ImageObserver observer)
drawImage
in class Graphics2DWrapper
public boolean hit(Rectangle rect, Shape s, boolean onStroke)
hit
in class Graphics2DWrapper
public Graphics create()
create
in class Graphics2DWrapper
public void dispose()
dispose
in class Graphics2DWrapper
Copyright © 2015. All rights reserved.