edu.uci.ics.jung.visualization.graphics
Class GraphicsWrapper
java.lang.Object
edu.uci.ics.jung.visualization.graphics.GraphicsWrapper
- All Implemented Interfaces:
- GraphicsContext
public class GraphicsWrapper
- extends Object
- implements GraphicsContext
|
Method Summary |
void |
clearRect(int x,
int y,
int width,
int height)
|
void |
clip(Shape s)
|
void |
clipRect(int x,
int y,
int width,
int height)
|
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
|
Image |
createImage(int width,
int height)
|
Label |
createLabel()
|
void |
dispose()
|
void |
draw(Shape s)
|
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y)
|
void |
drawImage(Image img,
AffineTransform xform)
|
void |
drawImage(Image img,
int x,
int y)
|
void |
drawLabel(Label img,
int x,
int y)
|
void |
drawLabel(Label img,
int x,
int y,
int w,
int h)
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
|
void |
drawOval(int x,
int y,
int width,
int height)
|
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawPolygon(Polygon p)
|
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
drawRect(int x,
int y,
int width,
int height)
|
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
void |
drawString(String s,
float x,
float y)
|
void |
drawString(String str,
int x,
int y)
|
void |
fill(Shape s)
|
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
|
void |
fillOval(int x,
int y,
int width,
int height)
|
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
|
void |
fillPolygon(Polygon p)
|
void |
fillRect(int x,
int y,
int width,
int height)
|
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
|
Boolean |
getAntialiasing()
|
Color |
getBackground()
|
int |
getCharWidth(char c)
|
Shape |
getClip()
|
Rectangle |
getClipBounds()
|
Rectangle |
getClipBounds(Rectangle r)
|
Color |
getColor()
|
GraphicsContext |
getDelegate()
|
Font |
getFont()
|
int |
getFontAscent()
|
int |
getFontDescent()
|
int |
getFontHeight()
|
Paint |
getPaint()
|
int |
getStringWidth(String str)
|
Stroke |
getStroke()
|
Boolean |
getTextAntialiasing()
|
AffineTransform |
getTransform()
|
boolean |
hit(Rectangle rect,
Shape s,
boolean onStroke)
|
void |
setAntialiasing(Boolean on)
|
void |
setBackground(Color color)
|
void |
setClip(int x,
int y,
int width,
int height)
|
void |
setClip(Shape clip)
|
void |
setColor(Color c)
|
void |
setDelegate(GraphicsContext delegate)
|
void |
setFont(Font font)
|
void |
setPaint(Paint paint)
|
void |
setStroke(Stroke s)
|
void |
setTextAntialiasing(Boolean on)
|
void |
setTransform(AffineTransform Tx)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
protected GraphicsContext delegate
GraphicsWrapper
public GraphicsWrapper()
GraphicsWrapper
public GraphicsWrapper(GraphicsContext delegate)
setDelegate
public void setDelegate(GraphicsContext delegate)
getDelegate
public GraphicsContext getDelegate()
getFontAscent
public int getFontAscent()
- Specified by:
getFontAscent in interface GraphicsContext
getFontDescent
public int getFontDescent()
- Specified by:
getFontDescent in interface GraphicsContext
getStringWidth
public int getStringWidth(String str)
- Specified by:
getStringWidth in interface GraphicsContext
getFontHeight
public int getFontHeight()
- Specified by:
getFontHeight in interface GraphicsContext
getCharWidth
public int getCharWidth(char c)
- Specified by:
getCharWidth in interface GraphicsContext
getAntialiasing
public Boolean getAntialiasing()
- Specified by:
getAntialiasing in interface GraphicsContext
getTextAntialiasing
public Boolean getTextAntialiasing()
- Specified by:
getTextAntialiasing in interface GraphicsContext
setAntialiasing
public void setAntialiasing(Boolean on)
- Specified by:
setAntialiasing in interface GraphicsContext
setTextAntialiasing
public void setTextAntialiasing(Boolean on)
- Specified by:
setTextAntialiasing in interface GraphicsContext
dispose
public void dispose()
- Specified by:
dispose in interface GraphicsContext
createLabel
public Label createLabel()
- Specified by:
createLabel in interface GraphicsContext
createImage
public Image createImage(int width,
int height)
- Specified by:
createImage in interface GraphicsContext
clearRect
public void clearRect(int x,
int y,
int width,
int height)
- Specified by:
clearRect in interface GraphicsContext
clip
public void clip(Shape s)
- Specified by:
clip in interface GraphicsContext
clipRect
public void clipRect(int x,
int y,
int width,
int height)
- Specified by:
clipRect in interface GraphicsContext
copyArea
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
- Specified by:
copyArea in interface GraphicsContext
draw
public void draw(Shape s)
- Specified by:
draw in interface GraphicsContext
drawArc
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
- Specified by:
drawArc in interface GraphicsContext
drawChars
public void drawChars(char[] data,
int offset,
int length,
int x,
int y)
- Specified by:
drawChars in interface GraphicsContext
drawImage
public void drawImage(Image img,
int x,
int y)
- Specified by:
drawImage in interface GraphicsContext
drawImage
public void drawImage(Image img,
AffineTransform xform)
- Specified by:
drawImage in interface GraphicsContext
drawLabel
public void drawLabel(Label img,
int x,
int y,
int w,
int h)
- Specified by:
drawLabel in interface GraphicsContext
drawLabel
public void drawLabel(Label img,
int x,
int y)
- Specified by:
drawLabel in interface GraphicsContext
drawLine
public void drawLine(int x1,
int y1,
int x2,
int y2)
- Specified by:
drawLine in interface GraphicsContext
drawOval
public void drawOval(int x,
int y,
int width,
int height)
- Specified by:
drawOval in interface GraphicsContext
drawPolygon
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
- Specified by:
drawPolygon in interface GraphicsContext
drawPolygon
public void drawPolygon(Polygon p)
- Specified by:
drawPolygon in interface GraphicsContext
drawPolyline
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
- Specified by:
drawPolyline in interface GraphicsContext
drawRect
public void drawRect(int x,
int y,
int width,
int height)
- Specified by:
drawRect in interface GraphicsContext
drawRoundRect
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
- Specified by:
drawRoundRect in interface GraphicsContext
drawString
public void drawString(String s,
float x,
float y)
- Specified by:
drawString in interface GraphicsContext
drawString
public void drawString(String str,
int x,
int y)
- Specified by:
drawString in interface GraphicsContext
fill
public void fill(Shape s)
- Specified by:
fill in interface GraphicsContext
fillArc
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
- Specified by:
fillArc in interface GraphicsContext
fillOval
public void fillOval(int x,
int y,
int width,
int height)
- Specified by:
fillOval in interface GraphicsContext
fillPolygon
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
- Specified by:
fillPolygon in interface GraphicsContext
fillPolygon
public void fillPolygon(Polygon p)
- Specified by:
fillPolygon in interface GraphicsContext
fillRect
public void fillRect(int x,
int y,
int width,
int height)
- Specified by:
fillRect in interface GraphicsContext
fillRoundRect
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
- Specified by:
fillRoundRect in interface GraphicsContext
getBackground
public Color getBackground()
- Specified by:
getBackground in interface GraphicsContext
getClip
public Shape getClip()
- Specified by:
getClip in interface GraphicsContext
getClipBounds
public Rectangle getClipBounds()
- Specified by:
getClipBounds in interface GraphicsContext
getClipBounds
public Rectangle getClipBounds(Rectangle r)
- Specified by:
getClipBounds in interface GraphicsContext
getFont
public Font getFont()
- Specified by:
getFont in interface GraphicsContext
getColor
public Color getColor()
- Specified by:
getColor in interface GraphicsContext
getStroke
public Stroke getStroke()
- Specified by:
getStroke in interface GraphicsContext
getTransform
public AffineTransform getTransform()
- Specified by:
getTransform in interface GraphicsContext
hit
public boolean hit(Rectangle rect,
Shape s,
boolean onStroke)
- Specified by:
hit in interface GraphicsContext
setBackground
public void setBackground(Color color)
- Specified by:
setBackground in interface GraphicsContext
setClip
public void setClip(int x,
int y,
int width,
int height)
- Specified by:
setClip in interface GraphicsContext
setClip
public void setClip(Shape clip)
- Specified by:
setClip in interface GraphicsContext
setFont
public void setFont(Font font)
- Specified by:
setFont in interface GraphicsContext
setColor
public void setColor(Color c)
- Specified by:
setColor in interface GraphicsContext
setStroke
public void setStroke(Stroke s)
- Specified by:
setStroke in interface GraphicsContext
setTransform
public void setTransform(AffineTransform Tx)
- Specified by:
setTransform in interface GraphicsContext
getPaint
public Paint getPaint()
- Specified by:
getPaint in interface GraphicsContext
setPaint
public void setPaint(Paint paint)
- Specified by:
setPaint in interface GraphicsContext
Copyright © 2007. All Rights Reserved.