edu.sc.seis.fissuresUtil.gmt
Class ImageAugmenter
java.lang.Object
edu.sc.seis.fissuresUtil.gmt.ImageAugmenter
public class ImageAugmenter
- extends java.lang.Object
Method Summary |
void |
cropImage(int newWidth,
int newHeight,
int left,
int top)
|
void |
drawCircle(int x,
int y,
int diameter,
java.awt.Paint fill,
java.awt.Paint strokePaint,
float strokeWidth)
|
void |
drawShape(java.awt.Shape shape,
java.awt.Paint fill,
java.awt.Paint strokePaint,
float strokeWidth)
|
void |
drawTriangle(int x,
int y,
int diameter,
java.awt.Paint fill,
java.awt.Paint strokePaint,
float strokeWidth)
|
int |
getHeight()
|
static int[] |
getTriangleCoords(int[] centerCoords,
int staDiameter,
float staStrokeWidth)
|
int |
getWidth()
|
boolean |
getYFromBottom()
|
static void |
main(java.lang.String[] args)
|
void |
outputToPNG(java.io.File file)
|
void |
outputToPNG(java.io.OutputStream out)
|
void |
outputToPNG(java.lang.String filename)
|
static java.lang.String |
printIntArray(int[] ints)
|
static void |
setAntialiasingOn(java.awt.Graphics2D g2d)
|
void |
setYFromBottom(boolean b)
|
int |
translateCoord(int center,
int length)
|
int |
translateY(int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageAugmenter
public ImageAugmenter(java.lang.String imgFileLoc)
throws java.io.IOException
- Throws:
java.io.IOException
ImageAugmenter
public ImageAugmenter(java.lang.String imgFileLoc,
boolean yFromBottom)
throws java.io.IOException
- Throws:
java.io.IOException
drawShape
public void drawShape(java.awt.Shape shape,
java.awt.Paint fill,
java.awt.Paint strokePaint,
float strokeWidth)
drawTriangle
public void drawTriangle(int x,
int y,
int diameter,
java.awt.Paint fill,
java.awt.Paint strokePaint,
float strokeWidth)
drawCircle
public void drawCircle(int x,
int y,
int diameter,
java.awt.Paint fill,
java.awt.Paint strokePaint,
float strokeWidth)
translateCoord
public int translateCoord(int center,
int length)
translateY
public int translateY(int y)
cropImage
public void cropImage(int newWidth,
int newHeight,
int left,
int top)
outputToPNG
public void outputToPNG(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException
outputToPNG
public void outputToPNG(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
outputToPNG
public void outputToPNG(java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
getWidth
public int getWidth()
getHeight
public int getHeight()
getYFromBottom
public boolean getYFromBottom()
setYFromBottom
public void setYFromBottom(boolean b)
setAntialiasingOn
public static void setAntialiasingOn(java.awt.Graphics2D g2d)
getTriangleCoords
public static int[] getTriangleCoords(int[] centerCoords,
int staDiameter,
float staStrokeWidth)
printIntArray
public static java.lang.String printIntArray(int[] ints)
main
public static void main(java.lang.String[] args)