com.swfm.mica.core
Class MiRenderer

java.lang.Object
  extended bycom.swfm.mica.core.MiRenderer
All Implemented Interfaces:
MiiAttributeTypes, MiiTypes

public class MiRenderer
extends java.lang.Object
implements MiiTypes, MiiAttributeTypes

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
     
Constructor Summary
MiRenderer()
           
 
Method Summary
 boolean boundsClipped(MiBounds bounds)
           
 void clearClipBounds()
           
 void clearTransforms()
           
 MiRenderer copy()
           
 void drawCircle(MiBounds bounds)
           
 void drawCircularArc(MiBounds bounds, double startAngle, double angleSwept)
           
 void drawEllipse(MiBounds bounds)
           
 void drawEllipticalArc(MiBounds bounds, double startAngle, double angleSwept)
           
 void drawFillRect(double xmin, double ymin, double xmax, double ymax)
           
 void drawFillRect(MiBounds bounds)
           
 void drawImage(java.awt.Image image, MiBounds bounds)
           
 void drawImage(java.awt.Image image, MiBounds bounds, java.awt.image.ImageObserver observer)
           
 void drawLine(double x1, double y1, double x2, double y2)
           
 void drawLine(int x1, int y1, int x2, int y2, int lwidth)
           
 void drawLine(MiPoint pt1, MiPoint pt2)
           
 void drawLines(double[] xPoints, double[] yPoints, int numPoints)
           
 void drawLines(FastVector points)
           
 void drawLines(MiPoint[] points)
           
 void drawPoint(int x, int y)
           
 void drawPoint(MiPoint point)
           
 void drawPoints(double[] xPoints, double[] yPoints)
           
 void drawPoints(FastVector points)
           
 void drawPoints(MiPoint[] points)
           
 void drawPolygon(double[] xPoints, double[] yPoints, boolean closed)
           
 void drawPolygon(FastVector points)
           
 void drawPolygon(int[] xpts, int[] ypts, int numPts)
           
 void drawPolygon(MiPoint[] points, boolean closed)
           
 void drawRect(double xmin, double ymin, double xmax, double ymax)
           
 void drawRect(int x, int y, int width, int height)
           
 void drawRect(MiBounds bounds)
           
 void drawRoundRect(MiBounds bounds, double arcWidth, double arcHeight)
           
 void drawText(java.lang.String text, MiBounds bounds, MiFont font)
           
 void drawText(java.lang.String text, MiBounds bounds, MiFont font, int selectionStart, int selectionEnd, java.awt.Color selectionColor, java.awt.Color selectionBGColor)
           
 void drawText(java.lang.String text, MiPoint lowerLeftBaseline)
           
 void drawWideLine(int x1, int y1, int x2, int y2, int lwidth)
           
 MiPart filterPart(MiPart part)
           
 MiFont findFontForScale(MiFont font, MiFont lastDrawnFont)
           
 void flush()
           
 void flush(MiBounds bounds)
           
 MiCanvas getCanvas()
           
 MiBounds getClipBounds()
           
 MiBounds getClipBounds(MiBounds b)
           
 java.awt.Graphics getGraphics()
           
 boolean getHasAWTClipRectBug()
           
 int getIndentX()
           
 int getLineWidth()
           
 MiiTransform getTransform()
           
 java.awt.Graphics getWindowSystemRenderer()
           
 int getWriteMode()
           
 int getYmax()
           
 boolean hasOverrideAttributes()
           
 boolean isDoubleBuffered()
           
 boolean isPrinterRenderer()
           
 java.awt.Image makeDoubleBuffer(MiBounds bounds)
           
 java.awt.Image makeImageFromArea(java.awt.Image srcImage, MiBounds bounds)
           
 java.awt.Image makeImageFromArea(MiBounds bounds)
           
 void moveImageArea(int xmin, int ymin, int xmax, int ymax, int dx, int dy)
           
 void moveImageArea(MiBounds bounds, double dx, double dy)
           
 void popDoubleBuffer(java.awt.Image image)
           
 void popFilter()
           
 void popOverrideAttributes()
           
 void popTransform()
           
 void popTransparency()
           
 void pushDoubleBuffer(java.awt.Image image, MiBounds bounds)
           
 void pushFilter(MiiViewFilter filter)
          public void drawNow(MiPart part, MiBounds b) { if (useCanvasDrawNow) { transforms.wtod(b, dBnds); tmpRect.x = dBnds.xmin; tmpRect.y = dBnds.ymin; tmpRect.width = dBnds.xmax - dBnds.xmin; tmpRect.height = dBnds.ymax - dBnds.ymin; canvas.drawNow(tmpRect); } else { part.doRender(renderer); } }
 void pushOverrideAttributes(MiAttributes atts)
           
 void pushTransform(MiiTransform t)
           
 void pushTransparency(java.awt.AlphaComposite t)
           
 void setAttributes(MiAttributes atts)
           
 void setBackgroundColor(java.awt.Color c)
           
 void setBorderLook(int look)
           
 void setCanvas(MiCanvas canvas)
           
 void setCanvasSize(java.awt.Rectangle r)
           
 void setClipBounds(MiBounds clip)
           
 void setColor(java.awt.Color c)
           
 void setDefaultRenderingHints(java.util.HashMap renderingHints)
           
 void setDoubleBufferedScreen(java.awt.Image offScreenBuffer)
           
 void setFont(MiFont f)
           
 void setGraphics(java.awt.Graphics g)
           
 void setHasAWTClipRectBug(boolean flag)
           
 void setIndentX(int indent)
           
 void setIsPrinterRenderer(boolean flag)
           
 void setLineStyle(int lStyle)
           
 void setLineWidth(double lWidth)
           
 void setSingleBufferedScreen()
           
 void setTransparency(float alpha)
           
 void setWindowSystemRenderer(java.awt.Graphics graphics)
           
 void setWriteMode(int wmode)
           
 void setYmax(int ymax)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiRenderer

public MiRenderer()
Method Detail

copy

public MiRenderer copy()

setIsPrinterRenderer

public void setIsPrinterRenderer(boolean flag)

isPrinterRenderer

public boolean isPrinterRenderer()

setIndentX

public void setIndentX(int indent)

getIndentX

public int getIndentX()

setYmax

public void setYmax(int ymax)

getTransform

public MiiTransform getTransform()

pushTransform

public void pushTransform(MiiTransform t)

popTransform

public void popTransform()

clearTransforms

public void clearTransforms()

setHasAWTClipRectBug

public void setHasAWTClipRectBug(boolean flag)

getHasAWTClipRectBug

public boolean getHasAWTClipRectBug()

getClipBounds

public MiBounds getClipBounds()

getClipBounds

public MiBounds getClipBounds(MiBounds b)

setClipBounds

public void setClipBounds(MiBounds clip)

clearClipBounds

public void clearClipBounds()

boundsClipped

public boolean boundsClipped(MiBounds bounds)

flush

public void flush()

flush

public void flush(MiBounds bounds)

pushFilter

public void pushFilter(MiiViewFilter filter)
public void drawNow(MiPart part, MiBounds b) { if (useCanvasDrawNow) { transforms.wtod(b, dBnds); tmpRect.x = dBnds.xmin; tmpRect.y = dBnds.ymin; tmpRect.width = dBnds.xmax - dBnds.xmin; tmpRect.height = dBnds.ymax - dBnds.ymin; canvas.drawNow(tmpRect); } else { part.doRender(renderer); } }


popFilter

public void popFilter()

filterPart

public MiPart filterPart(MiPart part)

setSingleBufferedScreen

public void setSingleBufferedScreen()

setDoubleBufferedScreen

public void setDoubleBufferedScreen(java.awt.Image offScreenBuffer)

isDoubleBuffered

public boolean isDoubleBuffered()

setCanvas

public void setCanvas(MiCanvas canvas)

getGraphics

public java.awt.Graphics getGraphics()

setGraphics

public void setGraphics(java.awt.Graphics g)

getCanvas

public MiCanvas getCanvas()

getYmax

public int getYmax()

getWindowSystemRenderer

public java.awt.Graphics getWindowSystemRenderer()

setWindowSystemRenderer

public void setWindowSystemRenderer(java.awt.Graphics graphics)

setCanvasSize

public void setCanvasSize(java.awt.Rectangle r)

makeDoubleBuffer

public java.awt.Image makeDoubleBuffer(MiBounds bounds)

pushDoubleBuffer

public void pushDoubleBuffer(java.awt.Image image,
                             MiBounds bounds)

popDoubleBuffer

public void popDoubleBuffer(java.awt.Image image)

pushOverrideAttributes

public void pushOverrideAttributes(MiAttributes atts)

popOverrideAttributes

public void popOverrideAttributes()

hasOverrideAttributes

public boolean hasOverrideAttributes()

setAttributes

public void setAttributes(MiAttributes atts)

setDefaultRenderingHints

public void setDefaultRenderingHints(java.util.HashMap renderingHints)

setBorderLook

public void setBorderLook(int look)

setTransparency

public void setTransparency(float alpha)

pushTransparency

public void pushTransparency(java.awt.AlphaComposite t)

popTransparency

public void popTransparency()

setColor

public void setColor(java.awt.Color c)

setBackgroundColor

public void setBackgroundColor(java.awt.Color c)

setFont

public void setFont(MiFont f)

setLineWidth

public void setLineWidth(double lWidth)

getLineWidth

public int getLineWidth()

setLineStyle

public void setLineStyle(int lStyle)

getWriteMode

public int getWriteMode()

setWriteMode

public void setWriteMode(int wmode)

drawLine

public void drawLine(MiPoint pt1,
                     MiPoint pt2)

drawLine

public void drawLine(double x1,
                     double y1,
                     double x2,
                     double y2)

drawLines

public void drawLines(MiPoint[] points)

drawLines

public void drawLines(double[] xPoints,
                      double[] yPoints,
                      int numPoints)

drawLines

public void drawLines(FastVector points)

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2,
                     int lwidth)

drawWideLine

public void drawWideLine(int x1,
                         int y1,
                         int x2,
                         int y2,
                         int lwidth)

drawPoint

public void drawPoint(MiPoint point)

drawPoint

public void drawPoint(int x,
                      int y)

drawPoints

public void drawPoints(FastVector points)

drawPoints

public void drawPoints(double[] xPoints,
                       double[] yPoints)

drawPoints

public void drawPoints(MiPoint[] points)

makeImageFromArea

public java.awt.Image makeImageFromArea(MiBounds bounds)

makeImageFromArea

public java.awt.Image makeImageFromArea(java.awt.Image srcImage,
                                        MiBounds bounds)

moveImageArea

public void moveImageArea(int xmin,
                          int ymin,
                          int xmax,
                          int ymax,
                          int dx,
                          int dy)

moveImageArea

public void moveImageArea(MiBounds bounds,
                          double dx,
                          double dy)

drawImage

public void drawImage(java.awt.Image image,
                      MiBounds bounds)

drawImage

public void drawImage(java.awt.Image image,
                      MiBounds bounds,
                      java.awt.image.ImageObserver observer)

drawText

public void drawText(java.lang.String text,
                     MiPoint lowerLeftBaseline)

findFontForScale

public MiFont findFontForScale(MiFont font,
                               MiFont lastDrawnFont)

drawText

public void drawText(java.lang.String text,
                     MiBounds bounds,
                     MiFont font,
                     int selectionStart,
                     int selectionEnd,
                     java.awt.Color selectionColor,
                     java.awt.Color selectionBGColor)

drawText

public void drawText(java.lang.String text,
                     MiBounds bounds,
                     MiFont font)

drawRect

public void drawRect(MiBounds bounds)

drawRect

public void drawRect(int x,
                     int y,
                     int width,
                     int height)

drawFillRect

public void drawFillRect(double xmin,
                         double ymin,
                         double xmax,
                         double ymax)

drawFillRect

public void drawFillRect(MiBounds bounds)

drawRect

public void drawRect(double xmin,
                     double ymin,
                     double xmax,
                     double ymax)

drawCircle

public void drawCircle(MiBounds bounds)

drawEllipse

public void drawEllipse(MiBounds bounds)

drawPolygon

public void drawPolygon(FastVector points)

drawPolygon

public void drawPolygon(MiPoint[] points,
                        boolean closed)

drawPolygon

public void drawPolygon(double[] xPoints,
                        double[] yPoints,
                        boolean closed)

drawPolygon

public void drawPolygon(int[] xpts,
                        int[] ypts,
                        int numPts)

drawCircularArc

public void drawCircularArc(MiBounds bounds,
                            double startAngle,
                            double angleSwept)

drawEllipticalArc

public void drawEllipticalArc(MiBounds bounds,
                              double startAngle,
                              double angleSwept)

drawRoundRect

public void drawRoundRect(MiBounds bounds,
                          double arcWidth,
                          double arcHeight)