|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectStyle
Style2D
GraphicStyle2D
public class GraphicStyle2D
A style class used to depict a point, polygon centroid or line with a small graphic icon
Field Summary |
---|
Fields inherited from class Style |
---|
maxScale, minScale |
Constructor Summary | |
---|---|
GraphicStyle2D(BufferedImage image,
float rotation,
float opacity)
Creates a new GraphicStyle2D object. |
|
GraphicStyle2D(BufferedImage image,
float rotation,
float opacity,
int border)
Creates a new GraphicStyle2D object. |
Method Summary | |
---|---|
int |
getBorder()
The actual image size might have been extended with an extra border (usually of one pixel) to preserve antialiasing pixels |
BufferedImage |
getImage()
|
float |
getOpacity()
|
float |
getRotation()
The graphic rotation in radians. |
void |
setBorder(int border)
|
void |
setImage(BufferedImage image)
|
void |
setOpacity(float f)
|
void |
setRotation(float radians)
Graphic rotation in radians |
Methods inherited from class Style |
---|
clone, getMaxScale, getMinScale, isScaleInRange, setMinMaxScale |
Methods inherited from class Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphicStyle2D(BufferedImage image, float rotation, float opacity)
image
- The image that will be used to depict the centroid/point/...rotation
- The image rotationopacity
- The image opacitypublic GraphicStyle2D(BufferedImage image, float rotation, float opacity, int border)
image
- The image that will be used to depict the centroid/point/...rotation
- The image rotationopacity
- The image opacityMethod Detail |
---|
public BufferedImage getImage()
public float getOpacity()
public float getRotation()
public void setImage(BufferedImage image)
image
- public void setOpacity(float f)
f
- public void setRotation(float radians)
radians
- graphic rotationpublic int getBorder()
public void setBorder(int border)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |