JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page
Class Graphics2DBase

java.lang.Object
  |
  +--java.awt.Graphics
        |
        +--java.awt.Graphics2D
              |
              +--com.klg.jclass.util.graphics.Graphics2DBase
                    |
                    +--com.klg.jclass.page.Graphics2DBase
All Implemented Interfaces:
Cloneable

public abstract class Graphics2DBase
extends com.klg.jclass.util.graphics.Graphics2DBase
implements Cloneable

Overrides Graphics2D to provide the Java interface for methods common to PostScript and PCL drawing.


Nested Class Summary
 
Nested classes inherited from class com.klg.jclass.util.graphics.Graphics2DBase
com.klg.jclass.util.graphics.Graphics2DBase.Buffer
 
Field Summary
 
Fields inherited from class com.klg.jclass.util.graphics.Graphics2DBase
clip, clipSet, colorChanged, contextMap, currentColor, currentFont, currentStroke, dashMode, decimalFormat, finished, fontChanged, isFrameGraphics, isLive, loadedFonts, maxDecimalDigits, os, out, parent, strokeChanged, subscript, transform, translation, underline, windingRule
 
Constructor Summary
Graphics2DBase(OutputStream os)
          Constructor.
 
Method Summary
 Graphics newGraphics()
          Create a new Graphics class that is the same as the existing graphics class.
protected  void output(String string)
          Writing to the output stream is funneled through here.
protected  void updateContext()
          Exposes protected superclass method to com.klg.jclass.page package
 
Methods inherited from class com.klg.jclass.util.graphics.Graphics2DBase
addRenderingHints, buildParentArray, buildParentArray, clearRect, clip, clipRect, copyArea, create, create, dispose, doAttributes, doString, draw, draw3DRect, drawArc, drawArc, drawArcPW, drawBytes, drawChars, drawGlyphVector, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawLine, drawLinePW, drawOval, drawOval, drawPolygon, drawQuadraticPW, drawRect, drawRect, drawRectPW, drawRenderableImage, drawRenderedImage, drawRoundRect, drawRoundRect, drawRoundRectPW, drawString, drawString, drawString, endContext, fill, fill3DRect, fillArc, fillArc, fillArcPW, fillOval, fillOval, fillPolygon, fillRect, fillRect, fillRectPW, fillRoundRect, fillRoundRect, fillRoundRectPW, fillShape, finalize, getBackground, getClip, getClipBounds, getClipBounds, getColor, getComposite, getCumulativeTransform, getDeviceConfiguration, getFont, getFontMetrics, getFontRenderContext, getFrameRoot, getMaxDecimalDigits, getOutputStream, getPageRoot, getPaint, getRenderingHint, getRenderingHints, getStroke, getTransform, getWindingRule, hit, hitClip, initializeOutString, isContextCurrent, isFinishedOutput, isFrameRoot, rotate, rotate, scale, setBackground, setClip, setClip, setClipPW, setColor, setComposite, setFinishedOutput, setFrameRoot, setMaxDecimalDigits, setOutputStream, setPaint, setPaintMode, setRenderingHint, setRenderingHints, setStroke, setTransform, setWindingRule, setXORMode, shear, startContext, toString, transform, translate, translate, truncateDecimalDigits, truncateDecimalDigits
 
Methods inherited from class java.awt.Graphics2D
drawString
 
Methods inherited from class java.awt.Graphics
drawImage, drawPolygon, drawPolyline, fillPolygon, getClipRect, getFontMetrics, setFont
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Graphics2DBase

public Graphics2DBase(OutputStream os)
Constructor.

Method Detail

output

protected void output(String string)
Description copied from class: com.klg.jclass.util.graphics.Graphics2DBase
Writing to the output stream is funneled through here.

Overrides:
output in class com.klg.jclass.util.graphics.Graphics2DBase
Parameters:
string - The string to write.

updateContext

protected void updateContext()
Exposes protected superclass method to com.klg.jclass.page package

Overrides:
updateContext in class com.klg.jclass.util.graphics.Graphics2DBase

newGraphics

public Graphics newGraphics()
Create a new Graphics class that is the same as the existing graphics class. This is different than create() since it creates an independent graphics class that is unrelated to previous graphics classes yet uses the same output stream.

Specified by:
newGraphics in class com.klg.jclass.util.graphics.Graphics2DBase

Copyright © 2004 Quest Software Inc..
All rights reserved.