Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.memoire.dja
Class DjaGraphics  view DjaGraphics download DjaGraphics.java

java.lang.Object
  extended bycom.memoire.dja.DjaGraphics
All Implemented Interfaces:
DjaOptions

public class DjaGraphics
extends java.lang.Object
implements DjaOptions

Implements some features of Graphics2D for JDK1.1.


Nested Class Summary
static class DjaGraphics.BresenhamParams
           
 
Field Summary
private static DjaGraphics0 INSTANCE
           
 
Fields inherited from interface com.memoire.dja.DjaOptions
ABSOLUTE, anchorsColor, ANY, attachsColor, AUTO, BOTH, CENTER, closeX, closeY, controlsColor, defaultBigFont, defaultBoldFont, defaultPlainFont, defaultSmallFont, deltaX, deltaY, DISK_BG, DISK_EMPTY, DISK_FG, EAST, freesColor, handlesColor, HELPER, HORIZONTAL, LEFT, LEFT_TRIANGLE_BG, LEFT_TRIANGLE_EMPTY, LEFT_TRIANGLE_FG, LOSANGE_BG, LOSANGE_EMPTY, LOSANGE_FG, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_WEST, RELATIVE_ANCHOR, RELATIVE_ATTACH, RELATIVE_CONTROL, RELATIVE_NE, RELATIVE_NW, RELATIVE_SE, RELATIVE_SW, RELATIVE_TEXT_NE, RELATIVE_TEXT_NW, RELATIVE_TEXT_SE, RELATIVE_TEXT_SW, RIGHT, RIGHT_TRIANGLE_BG, RIGHT_TRIANGLE_EMPTY, RIGHT_TRIANGLE_FG, selectionBackground, selectionForeground, selectionTextColor, selectionZone, snap, SOUTH, SOUTH_EAST, SOUTH_WEST, SQUARE_BG, SQUARE_EMPTY, SQUARE_FG, VERTICAL, WEST
 
Constructor Summary
DjaGraphics()
           
 
Method Summary
private static DjaGraphics0 createInstance()
           
static void drawLine(java.awt.Graphics _g, int _x1, int _y1, int _x2, int _y2, DjaGraphics.BresenhamParams _bp)
           
static void drawOval(java.awt.Graphics _g, int _x, int _y, int _w, int _h, DjaGraphics.BresenhamParams _bp)
           
static void drawPoint(java.awt.Graphics _g, int _x, int _y, DjaGraphics.BresenhamParams _bp)
           
static void drawPoint(java.awt.Graphics _g, int _x1, int _y1, int _x2, int _y2, DjaGraphics.BresenhamParams _bp)
           
static void drawPolygon(java.awt.Graphics _g, int[] _xpoints, int[] _ypoints, int _npoints, DjaGraphics.BresenhamParams _bp)
           
static void drawPolygon(java.awt.Graphics _g, java.awt.Polygon _p, DjaGraphics.BresenhamParams _bp)
           
static void drawPolyline(java.awt.Graphics _g, int[] _xpoints, int[] _ypoints, int _npoints, DjaGraphics.BresenhamParams _bp)
           
static void drawPolyline(java.awt.Graphics _g, java.awt.Polygon _p, DjaGraphics.BresenhamParams _bp)
           
static void drawRect(java.awt.Graphics _g, int _x, int _y, int _w, int _h, DjaGraphics.BresenhamParams _bp)
           
static void drawRoundRect(java.awt.Graphics _g, int _x, int _y, int _w, int _h, int _rh, int _rv, DjaGraphics.BresenhamParams _bp)
           
static void drawText(java.awt.Graphics _g, java.lang.String _text, int _x, int _y)
           
static void drawText(java.awt.Graphics _g, java.lang.String _text, int _x, int _y, int _a, int _w)
           
static void drawText(java.awt.Graphics _g, java.lang.String _text, int _x, int _y, int _a, int _w, boolean _underlined)
           
static void fillOval(java.awt.Graphics _g, int _x, int _y, int _w, int _h)
           
static void fillPolygon(java.awt.Graphics _g, int[] _xpoints, int[] _ypoints, int _npoints)
           
static void fillPolygon(java.awt.Graphics _g, java.awt.Polygon _p)
           
static void fillRect(java.awt.Graphics _g, int _x, int _y, int _w, int _h)
           
static void fillRoundRect(java.awt.Graphics _g, int _x, int _y, int _w, int _h, int _rh, int _rv)
           
static DjaGraphics.BresenhamParams getBresenhamParams(DjaObject _o)
           
static java.awt.Color getColor(java.awt.Graphics _g)
           
static java.awt.FontMetrics getFontMetrics(DjaObject _o, java.awt.Font _font)
           
static java.awt.Dimension getTextSize(java.lang.String _text, java.awt.Font _font)
           
static void setColor(java.awt.Graphics _g, java.awt.Color _c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final DjaGraphics0 INSTANCE
Constructor Detail

DjaGraphics

public DjaGraphics()
Method Detail

createInstance

private static final DjaGraphics0 createInstance()

getBresenhamParams

public static DjaGraphics.BresenhamParams getBresenhamParams(DjaObject _o)

getColor

public static java.awt.Color getColor(java.awt.Graphics _g)

setColor

public static void setColor(java.awt.Graphics _g,
                            java.awt.Color _c)

getFontMetrics

public static java.awt.FontMetrics getFontMetrics(DjaObject _o,
                                                  java.awt.Font _font)

getTextSize

public static java.awt.Dimension getTextSize(java.lang.String _text,
                                             java.awt.Font _font)

drawText

public static void drawText(java.awt.Graphics _g,
                            java.lang.String _text,
                            int _x,
                            int _y)

drawText

public static void drawText(java.awt.Graphics _g,
                            java.lang.String _text,
                            int _x,
                            int _y,
                            int _a,
                            int _w)

drawText

public static void drawText(java.awt.Graphics _g,
                            java.lang.String _text,
                            int _x,
                            int _y,
                            int _a,
                            int _w,
                            boolean _underlined)

drawPoint

public static void drawPoint(java.awt.Graphics _g,
                             int _x,
                             int _y,
                             DjaGraphics.BresenhamParams _bp)

drawPoint

public static void drawPoint(java.awt.Graphics _g,
                             int _x1,
                             int _y1,
                             int _x2,
                             int _y2,
                             DjaGraphics.BresenhamParams _bp)

drawLine

public static void drawLine(java.awt.Graphics _g,
                            int _x1,
                            int _y1,
                            int _x2,
                            int _y2,
                            DjaGraphics.BresenhamParams _bp)

drawRect

public static void drawRect(java.awt.Graphics _g,
                            int _x,
                            int _y,
                            int _w,
                            int _h,
                            DjaGraphics.BresenhamParams _bp)

fillRect

public static void fillRect(java.awt.Graphics _g,
                            int _x,
                            int _y,
                            int _w,
                            int _h)

drawRoundRect

public static void drawRoundRect(java.awt.Graphics _g,
                                 int _x,
                                 int _y,
                                 int _w,
                                 int _h,
                                 int _rh,
                                 int _rv,
                                 DjaGraphics.BresenhamParams _bp)

fillRoundRect

public static void fillRoundRect(java.awt.Graphics _g,
                                 int _x,
                                 int _y,
                                 int _w,
                                 int _h,
                                 int _rh,
                                 int _rv)

drawOval

public static void drawOval(java.awt.Graphics _g,
                            int _x,
                            int _y,
                            int _w,
                            int _h,
                            DjaGraphics.BresenhamParams _bp)

fillOval

public static void fillOval(java.awt.Graphics _g,
                            int _x,
                            int _y,
                            int _w,
                            int _h)

drawPolyline

public static void drawPolyline(java.awt.Graphics _g,
                                java.awt.Polygon _p,
                                DjaGraphics.BresenhamParams _bp)

drawPolyline

public static void drawPolyline(java.awt.Graphics _g,
                                int[] _xpoints,
                                int[] _ypoints,
                                int _npoints,
                                DjaGraphics.BresenhamParams _bp)

drawPolygon

public static void drawPolygon(java.awt.Graphics _g,
                               java.awt.Polygon _p,
                               DjaGraphics.BresenhamParams _bp)

drawPolygon

public static void drawPolygon(java.awt.Graphics _g,
                               int[] _xpoints,
                               int[] _ypoints,
                               int _npoints,
                               DjaGraphics.BresenhamParams _bp)

fillPolygon

public static void fillPolygon(java.awt.Graphics _g,
                               java.awt.Polygon _p)

fillPolygon

public static void fillPolygon(java.awt.Graphics _g,
                               int[] _xpoints,
                               int[] _ypoints,
                               int _npoints)