ewe.fx
Class mGraphics

java.lang.Object
  extended byewe.fx.Graphics
      extended byewe.fx.mGraphics
All Implemented Interfaces:
CellConstants, ControlConstants, UIConstants

public class mGraphics
extends Graphics


Field Summary
protected  int tx
           
protected  int ty
           
 
Fields inherited from class ewe.fx.Graphics
background, canAlphaBlend, canCopy, canMove, color, DRAW_ALPHA, DRAW_AND, DRAW_OR, DRAW_OVER, DRAW_XOR, LighterGray, SPECIAL_TICK, SPECIAL_X
 
Fields inherited from interface ewe.ui.UIConstants
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN
 
Fields inherited from interface ewe.ui.CellConstants
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
 
Fields inherited from interface ewe.ui.ControlConstants
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown
 
Constructor Summary
mGraphics(ISurface is)
           
 
Method Summary
 void clearClip()
          Clears the current clipping rectangle.
 void reset()
           
 void setClip(int x, int y, int width, int height)
          Sets a clipping rectangle.
 void translate(int x, int y)
          Translates the origin of the current coordinate system by the given x and y values.
 
Methods inherited from class ewe.fx.Graphics
anchor, canCopyFrom, changeBrush, changePen, copyRect, copyRect, copyRect, createNew, draw3DDiamond, draw3DDiamond, draw3DRect, draw3DRect, drawArc, drawArrow, drawChar, drawClosedArc, drawCursor, drawDiamond, drawDots, drawEdge, drawEllipse, drawFormattedText, drawFormattedText, drawFormattedText, drawHorizontalTriangle, drawImage, drawImage, drawImage, drawImage, drawImage, drawLine, drawLineRGB, drawLines, drawPie, drawPolygon, drawRect, drawRect, drawRoundRect, drawSpecial, drawTail, drawText, drawText, drawText, drawText, drawText, drawTextIn, drawVerticalTriangle, fillClosedArc, fillEllipse, fillPie, fillPolygon, fillRect, fillRectRGB, fillRoundRect, flush, free, getArcPoints, getBackground, getBrush, getClip, getColor, getEmptyGraphics, getFontMetrics, getImage, getPen, getSize, getSize, getSize, getSize, getSurfaceType, getTransform, isEmpty, isValid, mapColor, moveRect, nativeSetBrush, nativeSetPen, reduceClip, reduceClip, restoreClip, setBackground, setBackground, setBrush, setColor, setColor, setDrawOp, setFont, setPen, setPixelRGB, setTransform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

tx

protected int tx

ty

protected int ty
Constructor Detail

mGraphics

public mGraphics(ISurface is)
Method Detail

translate

public void translate(int x,
                      int y)
Description copied from class: Graphics
Translates the origin of the current coordinate system by the given x and y values.

Overrides:
translate in class Graphics

reset

public void reset()
Overrides:
reset in class Graphics

setClip

public void setClip(int x,
                    int y,
                    int width,
                    int height)
Description copied from class: Graphics
Sets a clipping rectangle. Anything drawn outside of the rectangular area specified will be clipped. Setting a clip overrides any previous clip.

Overrides:
setClip in class Graphics

clearClip

public void clearClip()
Description copied from class: Graphics
Clears the current clipping rectangle. This allows drawing to occur anywhere on the current surface.

Overrides:
clearClip in class Graphics