|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.image.AbstractImageTransformer<BufferedImageContainer>
adams.data.jai.transformer.AbstractJAITransformer
adams.data.jai.transformer.Rotate
public class Rotate
Rotates an image by a defined number of degrees.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-angle <double> (property: angle) The angle, in degrees, to rotate the image by. default: 0.0 minimum: 0.0 maximum: 360.0
-origin-x <int> (property: originX) The X position of the origin; special values: -1 = left, -2 = center, -3 = right. default: -2 minimum: -3
-origin-y <int> (property: originY) The Y position of the origin; special values: -1 = top, -2 = center, -3 = bottom. default: -2 minimum: -3
-interpolation <NONE|BILINEAR|NEAREST> (property: interpolation) The type of interpolation to perform. default: BILINEAR
-background <java.awt.Color> (property: background) The color to use for the background of the rotated image. default: #000000
| Nested Class Summary | |
|---|---|
static class |
Rotate.InterpolationType
The types of interpolations. |
| Field Summary | |
|---|---|
protected double |
m_Angle
the angle to rotate the image by. |
protected Color |
m_Background
the background color. |
protected Rotate.InterpolationType |
m_Interpolation
the interpolation type. |
protected int |
m_OriginX
the X origin. |
protected int |
m_OriginY
the Y origin. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
Rotate()
|
|
| Method Summary | |
|---|---|
String |
angleTipText()
Returns the tip text for this property. |
String |
backgroundTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected BufferedImageContainer[] |
doTransform(BufferedImageContainer img)
Performs no transformation at all, just returns the input. |
double |
getAngle()
Returns the rotation angle. |
Color |
getBackground()
Returns the color in use for the background. |
Rotate.InterpolationType |
getInterpolation()
Returns the type of interpolation to perform. |
int |
getOriginX()
Returns the X of the origin. |
int |
getOriginY()
Returns the Y of the origin. |
String |
globalInfo()
Returns a string describing the object. |
String |
interpolationTipText()
Returns the tip text for this property. |
String |
originXTipText()
Returns the tip text for this property. |
String |
originYTipText()
Returns the tip text for this property. |
void |
setAngle(double value)
Sets the rotation angle. |
void |
setBackground(Color value)
Sets the color to use for the background. |
void |
setInterpolation(Rotate.InterpolationType value)
Sets the type of interpolation to perform. |
void |
setOriginX(int value)
Sets the X of the origin. |
void |
setOriginY(int value)
Sets the Y of the origin. |
| Methods inherited from class adams.data.jai.transformer.AbstractJAITransformer |
|---|
forCommandLine, forName, getTransformations |
| Methods inherited from class adams.data.image.AbstractImageTransformer |
|---|
checkImage, cleanUp, compareTo, destroy, equals, shallowCopy, shallowCopy, transform |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double m_Angle
protected int m_OriginX
protected int m_OriginY
protected Rotate.InterpolationType m_Interpolation
protected Color m_Background
| Constructor Detail |
|---|
public Rotate()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setAngle(double value)
value - the angle (0-360)public double getAngle()
public String angleTipText()
public void setOriginX(int value)
value - the origin of Xpublic int getOriginX()
public String originXTipText()
public void setOriginY(int value)
value - the origin of Ypublic int getOriginY()
public String originYTipText()
public void setInterpolation(Rotate.InterpolationType value)
value - the typepublic Rotate.InterpolationType getInterpolation()
public String interpolationTipText()
public void setBackground(Color value)
value - the colorpublic Color getBackground()
public String backgroundTipText()
protected BufferedImageContainer[] doTransform(BufferedImageContainer img)
doTransform in class AbstractImageTransformer<BufferedImageContainer>img - the image to process (can be modified, since it is a copy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||