|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.vistech.graphics.GraphicsCanvas2D
A graphics canvas class.
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
protected java.awt.Stroke |
basicStroke
|
protected int |
capStyle
|
protected java.awt.Shape |
clip
|
protected java.awt.Shape |
clipShape
|
protected java.awt.Composite |
composite
|
protected java.awt.Color |
drawingColor
|
protected java.awt.Color |
fillColor
|
protected java.awt.Font |
font
|
protected int |
fontSize
|
protected int |
fontStyle
|
protected int |
fontType
|
protected int |
height
|
protected int |
joinStyle
|
protected java.awt.Graphics2D |
offScrGc
|
protected java.awt.image.BufferedImage |
offScrImage
|
protected java.awt.Paint |
paint
|
protected java.awt.RenderingHints |
renderingHints
|
protected float |
strokeWidth
|
protected java.awt.Color |
textColor
|
protected int |
width
|
protected java.awt.geom.AffineTransform |
xform
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GraphicsCanvas2D()
|
Method Summary | |
void |
createOffScreenImage(int wid,
int ht)
|
void |
draw(java.awt.Shape s)
Draws the specified shape on the destination image |
int |
getCapStyle()
|
java.awt.Shape |
getClip()
|
java.awt.Composite |
getComposite()
|
java.awt.image.BufferedImage |
getDisplayedImage()
|
java.awt.Graphics2D |
getDisplayedImageGC()
|
java.awt.Color |
getDrawingColor()
|
java.awt.Color |
getFillColor()
|
java.awt.Font |
getFont()
|
int |
getFontSize()
|
int |
getFontStyle()
|
int |
getFontType()
|
int |
getJoinStyle()
|
java.awt.Paint |
getPaint()
|
java.awt.RenderingHints |
getRenderingHints()
|
java.awt.Stroke |
getStroke()
|
int |
getStrokeWidth()
|
java.awt.Color |
getTextColor()
|
java.awt.geom.AffineTransform |
getTransform()
|
void |
paintComponent(java.awt.Graphics g)
|
void |
reset()
|
void |
setCapStyle(int capStyle)
|
void |
setClip(java.awt.Shape clipShape)
Sets the clip shape on the destination image |
void |
setComposite(java.awt.Composite composite)
|
void |
setDrawingColor(java.awt.Color drawingColor)
|
void |
setFillColor(java.awt.Color fillColor)
|
void |
setFont(java.awt.Font font)
Sets the font. |
void |
setFontSize(int sz)
|
void |
setFontStyle(int style)
|
void |
setFontType(int type)
|
void |
setJoinStyle(int style)
|
void |
setPaint(java.awt.Paint paint)
|
void |
setRenderingHints(java.awt.RenderingHints renderingHints)
|
void |
setStroke(java.awt.Stroke stroke)
|
void |
setStrokeWidth(int enum)
|
void |
setTextColor(java.awt.Color textColor)
|
void |
setTransform(java.awt.geom.AffineTransform transform)
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.vistech.graphics.GraphicsDisplay |
addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addVetoableChangeListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, setCursor |
Field Detail |
protected java.awt.image.BufferedImage offScrImage
protected java.awt.Graphics2D offScrGc
protected java.awt.Shape clipShape
protected int width
protected int height
protected java.awt.Color drawingColor
protected java.awt.Color fillColor
protected java.awt.Color textColor
protected java.awt.Paint paint
protected java.awt.Shape clip
protected java.awt.geom.AffineTransform xform
protected java.awt.Stroke basicStroke
protected java.awt.RenderingHints renderingHints
protected java.awt.Composite composite
protected java.awt.Font font
protected float strokeWidth
protected int capStyle
protected int joinStyle
protected int fontStyle
protected int fontSize
protected int fontType
Constructor Detail |
public GraphicsCanvas2D()
Method Detail |
public void setFontType(int type)
setFontType
in interface GraphicsDisplay
public int getFontType()
getFontType
in interface GraphicsDisplay
public void setFontSize(int sz)
setFontSize
in interface GraphicsDisplay
public int getFontSize()
getFontSize
in interface GraphicsDisplay
public void setFontStyle(int style)
setFontStyle
in interface GraphicsDisplay
public int getFontStyle()
getFontStyle
in interface GraphicsDisplay
public void setFont(java.awt.Font font)
GraphicsDisplay
setFont
in interface GraphicsDisplay
setFont
in class javax.swing.JComponent
com.vistech.graphics.GraphicsDisplay
font
- the font.public java.awt.Font getFont()
getFont
in interface GraphicsDisplay
getFont
in class java.awt.Component
public void setDrawingColor(java.awt.Color drawingColor)
setDrawingColor
in interface GraphicsDisplay
public java.awt.Color getDrawingColor()
getDrawingColor
in interface GraphicsDisplay
public void setFillColor(java.awt.Color fillColor)
setFillColor
in interface GraphicsDisplay
public java.awt.Color getFillColor()
getFillColor
in interface GraphicsDisplay
public void setTextColor(java.awt.Color textColor)
setTextColor
in interface GraphicsDisplay
public java.awt.Color getTextColor()
getTextColor
in interface GraphicsDisplay
public void setComposite(java.awt.Composite composite)
setComposite
in interface GraphicsDisplay
public java.awt.Composite getComposite()
getComposite
in interface GraphicsDisplay
public void setPaint(java.awt.Paint paint)
setPaint
in interface GraphicsDisplay
public java.awt.Paint getPaint()
getPaint
in interface GraphicsDisplay
public void setTransform(java.awt.geom.AffineTransform transform)
setTransform
in interface GraphicsDisplay
public java.awt.geom.AffineTransform getTransform()
getTransform
in interface GraphicsDisplay
public void setCapStyle(int capStyle)
setCapStyle
in interface GraphicsDisplay
public int getCapStyle()
getCapStyle
in interface GraphicsDisplay
public void setStrokeWidth(int enum)
setStrokeWidth
in interface GraphicsDisplay
public int getStrokeWidth()
getStrokeWidth
in interface GraphicsDisplay
public void setJoinStyle(int style)
public int getJoinStyle()
public void setStroke(java.awt.Stroke stroke)
setStroke
in interface GraphicsDisplay
public java.awt.Stroke getStroke()
getStroke
in interface GraphicsDisplay
public void setRenderingHints(java.awt.RenderingHints renderingHints)
setRenderingHints
in interface GraphicsDisplay
public java.awt.RenderingHints getRenderingHints()
getRenderingHints
in interface GraphicsDisplay
public void draw(java.awt.Shape s)
GraphicsDisplay
draw
in interface GraphicsDisplay
com.vistech.graphics.GraphicsDisplay
shape
- the shape to be drawnpublic void setClip(java.awt.Shape clipShape)
GraphicsDisplay
setClip
in interface GraphicsDisplay
com.vistech.graphics.GraphicsDisplay
clipshape
- the shape of the clipping areapublic java.awt.Shape getClip()
getClip
in interface GraphicsDisplay
public java.awt.image.BufferedImage getDisplayedImage()
getDisplayedImage
in interface GraphicsDisplay
public java.awt.Graphics2D getDisplayedImageGC()
getDisplayedImageGC
in interface GraphicsDisplay
public void createOffScreenImage(int wid, int ht)
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public void reset()
reset
in interface GraphicsDisplay
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |