Class TransformingGraphics
java.lang.Object
edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
edu.uci.ics.jung.visualization.transform.shape.GraphicsDecorator
edu.uci.ics.jung.visualization.transform.shape.TransformingGraphics
- Direct Known Subclasses:
TransformingFlatnessGraphics
subclassed to pass certain operations thru the Function
before the base class method is applied
This is useful when you want to apply non-affine transformations
to the Graphics2D used to draw elements of the graph.
-
Field Summary
FieldsFields inherited from class edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionTransformingGraphics
(BidirectionalTransformer transformer) TransformingGraphics
(BidirectionalTransformer Function, Graphics2D delegate) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
void
dispose()
void
transform the shape before letting the delegate draw itvoid
boolean
drawImage
(Image img, int x, int y, ImageObserver observer) boolean
drawImage
(Image img, AffineTransform at, ImageObserver observer) void
transform the shape before letting the delegate fill itvoid
boolean
transform the shape before letting the delegate apply 'hit' with itvoid
setTransformer
(BidirectionalTransformer Function) Methods inherited from class edu.uci.ics.jung.visualization.transform.shape.GraphicsDecorator
draw, draw
Methods inherited from class edu.uci.ics.jung.visualization.transform.shape.Graphics2DWrapper
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
-
Field Details
-
transformer
the Function to apply
-
-
Constructor Details
-
TransformingGraphics
-
TransformingGraphics
-
-
Method Details
-
getTransformer
- Returns:
- Returns the Function.
-
setTransformer
- Parameters:
Function
- The Function to set.
-
draw
transform the shape before letting the delegate draw it- Overrides:
draw
in classGraphics2DWrapper
-
draw
-
fill
transform the shape before letting the delegate fill it- Overrides:
fill
in classGraphics2DWrapper
-
fill
-
drawImage
- Overrides:
drawImage
in classGraphics2DWrapper
-
drawImage
- Overrides:
drawImage
in classGraphics2DWrapper
-
hit
transform the shape before letting the delegate apply 'hit' with it- Overrides:
hit
in classGraphics2DWrapper
-
create
- Overrides:
create
in classGraphics2DWrapper
-
dispose
public void dispose()- Overrides:
dispose
in classGraphics2DWrapper
-