|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.graphx.GraphicsEx
GraphicsEx class provides the rendering functionality
| Field Summary | |
protected int |
deviceDPI
Specifies the device DPI |
static int |
DR_DEFAULT
Specifies the constant for normal 3D rectangle |
static int |
DR_LINE_DASH
Specifies the constant for dash line style |
static int |
DR_LINE_DASHDOT
Specifies the constant for dash-dot line style |
static int |
DR_LINE_DASHDOTDOT
Specifies the constant for dash-dot-dot line style |
static int |
DR_LINE_DOT
Specifies the constant for dot line style |
static int |
DR_LINE_LOWERED
Specifies the constant for Lowered line style |
static int |
DR_LINE_NONE
Specifies the constant for Line style none |
static int |
DR_LINE_RAISED
Specifies the constant for Raised line style |
static int |
DR_LINE_SOLID
Specifies the constant for solid line style |
static int |
DR_RAISED
Specifies the constant for raised 3D rectangle |
static int |
DR_SHADOW
Specifies the constant for shadowed 3D rectangle |
static int |
DR_SHADOW_FADE
Specifies the constant for Fade shadow style |
static int |
DR_SHADOW_GLOW
Specifies the constant for Glow shadow style |
static int |
DR_SHADOW_HARD
Specifies the constant for Hard shadow style |
static int |
DR_SHADOW_NONE
Specifies the constant for shadow style None |
static int |
DR_STYLE_FIRST
Specifies the constant for lowest possible style value |
static int |
DR_STYLE_LAST
Specifies the constant for highest possible style value |
static int |
DR_SUNK
Specifies the constant for lowered 3D rectangle |
static int |
DR_SURROUND
Specifies the constant for surrounded 3D rectangle |
protected int |
logicalDPI
Specifies the logical DPI |
static int |
SHADOW_SIZE
Specifies the constant for shadow thickness |
| Constructor Summary | |
GraphicsEx(java.awt.Graphics g)
Creates the GraphicsEx with specified Graphics |
|
GraphicsEx(java.awt.Graphics g,
int logicalDPI)
Creates the GraphicsEx with specified Graphics and logical DPI |
|
| Method Summary | |
void |
clearRect(int x,
int y,
int width,
int height)
Clears the rectangle |
void |
clipRect(int x,
int y,
int width,
int height)
Clips the rectangle |
static int |
ConvertMMtoPixel(int mm)
Converts value from milimeter to pixel |
static int |
ConvertMMtoPixel(int mm,
int dpi)
Converts value from milimeter to pixel with specified DPI ratio |
static int |
ConvertPixeltoMM(int pixel)
Converts value from pixel to milimeter |
static int |
ConvertPixeltoMM(int pixel,
int dpi)
Converts value from pixel to milimeter with specified DPI ratio |
void |
copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
Copies the rectangle to given location |
GraphicsEx |
create()
Creates the GraphicsEx object |
GraphicsEx |
create(int x,
int y,
int width,
int height)
Creates the GraphicsEx object with specified rectangle |
void |
dispose()
Disposed the object |
int |
DPtoLP(int pixel)
Converts the device point to logical point |
int[] |
DPtoLP(int[] pixel)
Converts the device point to logical point |
static int |
DPtoLP(int pixel,
int logicalDPI)
Converts the device point to logical point with specifed logical DPI ratio |
java.awt.Point |
DPtoLP(java.awt.Point pixel)
Converts the device point to logical point |
java.awt.Point[] |
DPtoLP(java.awt.Point[] pixel)
Converts the device point to logical point |
static java.awt.Point |
DPtoLP(java.awt.Point pixel,
int logicalDPI)
Converts the device point to logical point with specifed logical DPI ratio |
java.awt.Rectangle |
DPtoLP(java.awt.Rectangle rect)
Converts the device point of rectangle to logical point |
void |
draw3DCircle(int x,
int y,
int diameter)
Draws a 3D circle with specified diameter size |
void |
draw3DLine(int x1,
int y1,
int x2,
int y2,
boolean raised)
Draws a 3D line |
void |
draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
Draws a 3D rectangle |
void |
draw3DRectEx(int x,
int y,
int width,
int height,
int style)
Draws a 3D rectangle with specified rectangle style |
void |
draw3DRectEx(int x,
int y,
int width,
int height,
int style,
int lineStyle)
Draws a 3D rectangle with specified rectangle style and line style |
void |
draw3DRectWithShadow(int x,
int y,
int width,
int height,
int lineStyle,
int lineWidth,
java.awt.Color lineColor,
int shadowStyle,
int shadowWidth,
java.awt.Color shadowColor)
Draws a 3D rectangle with specified rectangle style and line style |
void |
drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Draws ab Arc |
void |
drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
Draws a text bytes |
void |
drawChars(char[] data,
int offset,
int length,
int x,
int y)
Draws characters |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Draws an image |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
Draws an image |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Draws an image |
boolean |
drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
Draws an image |
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
Draws an image |
boolean |
drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
Draws an image |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draws a line |
void |
drawLineEx(int x1,
int y1,
int x2,
int y2,
int style)
Draws a line with specified line style |
void |
drawOval(int x,
int y,
int width,
int height)
Draws an oval |
void |
drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Draws a polygon |
void |
drawPolygon(java.awt.Polygon p)
Draws a polygon |
void |
drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
Draws a sequence of connected lines |
void |
drawRect(int x,
int y,
int width,
int height)
Draws a rectangle |
void |
drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Draws a rectangle with rounded corner |
void |
drawString(java.lang.String str,
int x,
int y)
Draws a text |
java.awt.Dimension |
drawStringEx(java.lang.String str,
int x,
int y,
int width,
int height,
int type)
Draws a text with specified text style |
void |
fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
Fills a 3D rectangle |
void |
fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
Fills an arc |
void |
fillOval(int x,
int y,
int width,
int height)
Fills an oval |
void |
fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
Fills a polygon |
void |
fillPolygon(java.awt.Polygon p)
Fills a polygon |
void |
fillRect(int x,
int y,
int width,
int height)
Fills a rectangle |
void |
fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
Fills a rectangle with rounded corners |
void |
finalize()
Finalizes object |
java.awt.Rectangle |
getClipBounds()
Returns the clipped boundary |
java.awt.Rectangle |
getClipRect()
Returns the clipped rectangle |
java.awt.Color |
getColor()
Returns the graphics color |
java.awt.Font |
getFont()
Returns the graphics font |
java.awt.FontMetrics |
getFontMetrics()
Returns the graphics font metrics |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font f)
Returns the graphics font metrics of specified font |
java.awt.Graphics |
getGraphics()
Return Graphics Object |
boolean |
hitClip(int x,
int y,
int width,
int height)
Returns true if the specified rectangular area intersects the bounding rectangle of the current clipping area. |
boolean |
isPrint()
Determines whether or not the graphics object is used for printing |
int |
LPtoDP(int pos)
Converts the logical point to device point |
int[] |
LPtoDP(int[] pos)
Converts the logical point to device point |
static int |
LPtoDP(int pos,
int logicalDPI)
Converts the logical point to device point with specifed logical DPI ratio |
java.awt.Point |
LPtoDP(java.awt.Point pos)
Converts the logical point to device point |
java.awt.Point[] |
LPtoDP(java.awt.Point[] pos)
Converts the logical point to device point |
static java.awt.Point |
LPtoDP(java.awt.Point pos,
int logicalDPI)
Converts the logical point to device point with specifed logical DPI ratio |
java.awt.Rectangle |
LPtoDP(java.awt.Rectangle rect)
Converts the logical points of rectangle to device points |
java.awt.Color |
setBrighter(java.awt.Color inColor)
Generate bright color from given color |
void |
setClip(int x,
int y,
int width,
int height)
Clips the specified rectangle |
void |
setColor(java.awt.Color c)
Sets the graphics color |
void |
setFont(java.awt.Font font)
Sets the graphics font |
void |
setPaintMode()
Sets the painting mode |
void |
setXORMode(java.awt.Color c1)
Sets the XOR mode with specified color |
java.lang.String |
toString()
|
void |
translate(int x,
int y)
Translates graphics current rendering point with specified location |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int logicalDPI
protected int deviceDPI
public static final int DR_DEFAULT
public static final int DR_RAISED
public static final int DR_SUNK
public static final int DR_SURROUND
public static final int DR_SHADOW
public static final int DR_STYLE_FIRST
public static final int DR_STYLE_LAST
public static final int SHADOW_SIZE
public static final int DR_LINE_NONE
public static final int DR_LINE_SOLID
public static final int DR_LINE_DASH
public static final int DR_LINE_DOT
public static final int DR_LINE_DASHDOT
public static final int DR_LINE_DASHDOTDOT
public static final int DR_LINE_RAISED
public static final int DR_LINE_LOWERED
public static final int DR_SHADOW_NONE
public static final int DR_SHADOW_GLOW
public static final int DR_SHADOW_FADE
public static final int DR_SHADOW_HARD
| Constructor Detail |
public GraphicsEx(java.awt.Graphics g,
int logicalDPI)
throws java.lang.RuntimeException
public GraphicsEx(java.awt.Graphics g)
throws java.lang.RuntimeException
| Method Detail |
public void clearRect(int x,
int y,
int width,
int height)
public void clipRect(int x,
int y,
int width,
int height)
public void copyArea(int x,
int y,
int width,
int height,
int dx,
int dy)
public GraphicsEx create()
public GraphicsEx create(int x,
int y,
int width,
int height)
public void dispose()
public void draw3DRect(int x,
int y,
int width,
int height,
boolean raised)
public void drawArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void drawBytes(byte[] data,
int offset,
int length,
int x,
int y)
public void drawChars(char[] data,
int offset,
int length,
int x,
int y)
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img,
int x,
int y,
java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img,
int x,
int y,
int width,
int height,
java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.Color bgcolor,
java.awt.image.ImageObserver observer)
public boolean drawImage(java.awt.Image img,
int dx1,
int dy1,
int dx2,
int dy2,
int sx1,
int sy1,
int sx2,
int sy2,
java.awt.image.ImageObserver observer)
public void drawLine(int x1,
int y1,
int x2,
int y2)
public void drawOval(int x,
int y,
int width,
int height)
public void drawPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
public void drawPolygon(java.awt.Polygon p)
public void drawPolyline(int[] xPoints,
int[] yPoints,
int nPoints)
public void drawRect(int x,
int y,
int width,
int height)
public void drawRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
public void drawString(java.lang.String str,
int x,
int y)
public void fill3DRect(int x,
int y,
int width,
int height,
boolean raised)
public void fillArc(int x,
int y,
int width,
int height,
int startAngle,
int arcAngle)
public void fillOval(int x,
int y,
int width,
int height)
public void fillPolygon(int[] xPoints,
int[] yPoints,
int nPoints)
public void fillPolygon(java.awt.Polygon p)
public void fillRect(int x,
int y,
int width,
int height)
public void fillRoundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
public void finalize()
finalize in class java.lang.Objectpublic java.awt.Rectangle getClipBounds()
public java.awt.Rectangle getClipRect()
public java.awt.Color getColor()
public java.awt.Font getFont()
public java.awt.FontMetrics getFontMetrics()
public java.awt.FontMetrics getFontMetrics(java.awt.Font f)
public void setClip(int x,
int y,
int width,
int height)
public void setColor(java.awt.Color c)
public void setFont(java.awt.Font font)
public void setPaintMode()
public void setXORMode(java.awt.Color c1)
public java.lang.String toString()
toString in class java.lang.Object
public void translate(int x,
int y)
public boolean isPrint()
public int LPtoDP(int pos)
public java.awt.Point LPtoDP(java.awt.Point pos)
public java.awt.Rectangle LPtoDP(java.awt.Rectangle rect)
public int[] LPtoDP(int[] pos)
public java.awt.Point[] LPtoDP(java.awt.Point[] pos)
public int DPtoLP(int pixel)
public java.awt.Point DPtoLP(java.awt.Point pixel)
public java.awt.Rectangle DPtoLP(java.awt.Rectangle rect)
public int[] DPtoLP(int[] pixel)
public java.awt.Point[] DPtoLP(java.awt.Point[] pixel)
public static int LPtoDP(int pos,
int logicalDPI)
public static java.awt.Point LPtoDP(java.awt.Point pos,
int logicalDPI)
public static int DPtoLP(int pixel,
int logicalDPI)
public static java.awt.Point DPtoLP(java.awt.Point pixel,
int logicalDPI)
public static int ConvertMMtoPixel(int mm,
int dpi)
public static int ConvertMMtoPixel(int mm)
public static int ConvertPixeltoMM(int pixel,
int dpi)
public static int ConvertPixeltoMM(int pixel)
public java.awt.Dimension drawStringEx(java.lang.String str,
int x,
int y,
int width,
int height,
int type)
public void drawLineEx(int x1,
int y1,
int x2,
int y2,
int style)
public void draw3DLine(int x1,
int y1,
int x2,
int y2,
boolean raised)
public void draw3DRectEx(int x,
int y,
int width,
int height,
int style)
public void draw3DRectEx(int x,
int y,
int width,
int height,
int style,
int lineStyle)
public java.awt.Graphics getGraphics()
public void draw3DRectWithShadow(int x,
int y,
int width,
int height,
int lineStyle,
int lineWidth,
java.awt.Color lineColor,
int shadowStyle,
int shadowWidth,
java.awt.Color shadowColor)
x - y - width - height - lineStyle - lineWidth - lineColor - shadowStyle - shadowWidth - shadowColor -
public void draw3DCircle(int x,
int y,
int diameter)
x - y - diameter - public java.awt.Color setBrighter(java.awt.Color inColor)
inColor - Input color
public boolean hitClip(int x,
int y,
int width,
int height)
x - the x coordinate of the rectangle to test against the clipy - the y coordinate of the rectangle to test against the clipwidth - the width of the rectangle to test against the clipheight - the height of the rectangle to test against the clip
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||