|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.shape.AbstractChartShape
com.ijchart.xychart.shape.AbstractImageChartShape
public abstract class AbstractImageChartShape
Title: IJChart
Description: a chart library for the Java(tm) platform.
Abstract class for draw aIChartShape
with an image in it.
You can define the vertical alignment,horizontal alignment,x-repeat,y-repeat,auto fit features.
Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static float |
DEFAULT_IMAGE_ALPHA
The default alpha for draw an image. |
static HorizontalAlignment |
DEFAULT_IMAGE_HORIZONTAL_ALIGNMENT
The default image horizontal alignment. |
static VerticalAlignment |
DEFAULT_IMAGE_VERTICAL_ALIGNMENT
The default image vertical alignment. |
Fields inherited from class com.ijchart.xychart.shape.AbstractChartShape |
---|
DEFAULT_DRAW_TYPE, DEFAULT_SHAPE_ID, DEFAULT_VISIBLE, transformedShape |
Constructor Summary | |
---|---|
protected |
AbstractImageChartShape(java.awt.Image image)
Construct a IChartShape with an image argument. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
java.awt.Image |
getImage()
Returns the image in this rectangle. |
float |
getImageAlpha()
Returns the alpha value for draw an image. |
HorizontalAlignment |
getImageHorizontalAlign()
Returns the image horizontal alignment. |
VerticalAlignment |
getImageVerticalAlign()
Returns the image vertical alignment. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isHorizontalRepeat()
Returns a booleaen flag controls whether or not the image is horizontal repeat. |
boolean |
isVerticalRepeat()
Returns a booleaen flag controls whether or not the image is vertical repeat. |
void |
setHorizontalRepeat(boolean horizontalRepeat)
Sets whether or not the image is horizontal repeat. |
void |
setImage(java.awt.Image image)
Sets the image in this rectangle (null permitted). |
void |
setImageAlpha(float alpha)
The alpha value for draw an image,and sends a ChartShapeChangeEvent to all registered listeners. |
void |
setImageHorizontalAlign(HorizontalAlignment horizontalAlign)
Sets the image horizontal alignment. |
void |
setImageVerticalAlign(VerticalAlignment verticalAlign)
Sets the image vertical alignment. |
void |
setVerticalRepeat(boolean verticalRepeat)
Sets whether or not the image is vertical repeat. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ijchart.xychart.shape.IChartShape |
---|
draw, getShapeType, getTopLeftPoint, translate |
Field Detail |
---|
public static final HorizontalAlignment DEFAULT_IMAGE_HORIZONTAL_ALIGNMENT
public static final VerticalAlignment DEFAULT_IMAGE_VERTICAL_ALIGNMENT
public static final float DEFAULT_IMAGE_ALPHA
Constructor Detail |
---|
protected AbstractImageChartShape(java.awt.Image image)
IChartShape
with an image argument.
image
- Image
A image,and the image data must has been loaded (null permitted).Method Detail |
---|
public void setImageHorizontalAlign(HorizontalAlignment horizontalAlign)
horizontalAlign
- HorizontalAlignment
The image horizontal alignment (null not permitted).public HorizontalAlignment getImageHorizontalAlign()
public void setImageVerticalAlign(VerticalAlignment verticalAlign)
verticalAlign
- VerticalAlignment
The image vertical alignment (null not permitted).public VerticalAlignment getImageVerticalAlign()
public void setImage(java.awt.Image image)
image
- Image
The image (null permitted).public java.awt.Image getImage()
public void setHorizontalRepeat(boolean horizontalRepeat)
horizontalRepeat
- boolean
A boolean flag controls whether or not the image is x-repeat.public boolean isHorizontalRepeat()
public void setVerticalRepeat(boolean verticalRepeat)
verticalRepeat
- boolean
A boolean flag controls whether or not the image is vertical repeat.public boolean isVerticalRepeat()
public void setImageAlpha(float alpha)
ChartShapeChangeEvent
to all registered listeners.
alpha
- float
The alpha transparency (in the range 0.0f to 1.0f, where 0.0f is fully transparent,
and 1.0f is fully opaque).public float getImageAlpha()
public int hashCode()
hashCode
in class AbstractChartShape
public boolean equals(java.lang.Object obj)
equals
in class AbstractChartShape
obj
-
the reference object with which to compare.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractChartShape
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |