ewe.fx
Class RotatedGraphics

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

public class RotatedGraphics
extends Graphics


Field Summary
 
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
RotatedGraphics(ISurface s, Image surfaceData, int rotation)
          Create a Graphics that will rotate all drawing by the specified amount in degrees.
RotatedGraphics(ISurface s, int width, int height, int rotation)
          Create a Graphics that will rotate all drawing by the specified amount in degrees.
 
Method Summary
 void flush()
          On some systems it may be necessary to call this method to have operations made to the Graphics actually be displayed on the screen.
 void free()
          Frees any system resources (native device contexts) associated with the graphics object.
 
Methods inherited from class ewe.fx.Graphics
anchor, canCopyFrom, changeBrush, changePen, clearClip, 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, getArcPoints, getBackground, getBrush, getClip, getColor, getEmptyGraphics, getFontMetrics, getImage, getPen, getSize, getSize, getSize, getSize, getSurfaceType, getTransform, isEmpty, isValid, mapColor, moveRect, nativeSetBrush, nativeSetPen, reduceClip, reduceClip, reset, restoreClip, setBackground, setBackground, setBrush, setClip, setColor, setColor, setDrawOp, setFont, setPen, setPixelRGB, setTransform, transform, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

RotatedGraphics

public RotatedGraphics(ISurface s,
                       Image surfaceData,
                       int rotation)
Create a Graphics that will rotate all drawing by the specified amount in degrees. The drawing operations will not appear on the surface until a flush() operation is done.

Parameters:
s - The destination surface.
surfaceData - If the surface data is already buffered in an image, then that image can be used.
rotation - Should be 90, 180, 270 or 0.

RotatedGraphics

public RotatedGraphics(ISurface s,
                       int width,
                       int height,
                       int rotation)
Create a Graphics that will rotate all drawing by the specified amount in degrees. The drawing operations will not appear on the surface until a flush() operation is done.

Parameters:
s - The destination surface.
width - The width of the surface.
height - The height of the surface.
rotation - Should be 90, 180, 270 or 0.
Method Detail

free

public void free()
Description copied from class: Graphics
Frees any system resources (native device contexts) associated with the graphics object. After calling this function, the graphics object can no longer be used to draw. Calling this method is not required since any system resources allocated will be freed when the object is garbage collected. However, if a program uses many graphics objects, free() should be called whenever one is no longer needed to prevent allocating too many system resources before garbage collection can occur.

Overrides:
free in class Graphics

flush

public void flush()
Description copied from class: Graphics
On some systems it may be necessary to call this method to have operations made to the Graphics actually be displayed on the screen. On most systems this will have no effect.

Overrides:
flush in class Graphics