|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kaboum.geom.KaboumGeometryDisplayDescriptor
public class KaboumGeometryDisplayDescriptor
This class is a display descriptor for GeoObject. This descriptor define the way in which an object must be drawn on screen (i.e. line and point color, hilite color, etc...)
Constructor Summary | |
---|---|
KaboumGeometryDisplayDescriptor(java.lang.String _name)
Default constructor |
|
KaboumGeometryDisplayDescriptor(java.lang.String _name,
java.awt.Color _color,
java.awt.Color _hiliteColor,
java.awt.Color _modifiedColor,
int _pointType,
int _pointHeight,
int _pointWidth,
int _lineWidth,
java.awt.Color _pointColor,
java.awt.Color _pointHiliteColor,
java.awt.Image _pointImage,
boolean _filling)
Constructor |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Get color |
boolean |
getFilling()
Get Filling |
java.awt.Color |
getHiliteColor()
Get hilite color |
int |
getLineWidth()
Get line width |
java.awt.Color |
getModifiedColor()
Get modified color |
java.lang.String |
getName()
Get name |
java.awt.Color |
getPointColor()
Get point color |
int |
getPointHeight()
Get point height |
java.awt.Color |
getPointHiliteColor()
Get point hilite color |
java.awt.Image |
getPointImage()
Get point image |
int |
getPointType()
Get point type |
int |
getPointWidth()
Get point width |
void |
setColor(java.awt.Color color)
Set color |
void |
setFilling(boolean fill)
Set fill status |
void |
setHiliteColor(java.awt.Color color)
Set hilite color |
void |
setModifiedColor(java.awt.Color color)
Set modified color |
void |
setPointColor(java.awt.Color color)
Set point color |
void |
setPointHiliteColor(java.awt.Color color)
Set point hilite color |
void |
setPointImage(java.awt.Image image)
Set point image |
void |
setPointType(int type)
Set point type |
void |
write()
Really usefull for debugging |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KaboumGeometryDisplayDescriptor(java.lang.String _name)
public KaboumGeometryDisplayDescriptor(java.lang.String _name, java.awt.Color _color, java.awt.Color _hiliteColor, java.awt.Color _modifiedColor, int _pointType, int _pointHeight, int _pointWidth, int _lineWidth, java.awt.Color _pointColor, java.awt.Color _pointHiliteColor, java.awt.Image _pointImage, boolean _filling)
name
- DisplayDescriptor name (unique identifier)color
- Geometry colorhiliteColor
- Geometry hilited colormodifiedColor
- Geometry modified colorpointType
- Point type (cf: KaboumControlPoint)pointHeight
- Point heightpointWidth
- Point widthpointWidth
- Line widthpointColor
- Point ColorpointHiliteColor
- Point Hilite ColorpointImage
- Image drawn at point position (null if not define)filling
- True: object is filled (only valid for polygon)Method Detail |
---|
public java.lang.String getName()
public java.awt.Color getColor()
public java.awt.Color getHiliteColor()
public java.awt.Color getModifiedColor()
public int getPointType()
public int getPointHeight()
public int getPointWidth()
public int getLineWidth()
public java.awt.Color getPointColor()
public java.awt.Color getPointHiliteColor()
public java.awt.Image getPointImage()
public boolean getFilling()
public void setColor(java.awt.Color color)
color
- New colorpublic void setHiliteColor(java.awt.Color color)
color
- New hilite colorpublic void setModifiedColor(java.awt.Color color)
color
- New modified colorpublic void setPointType(int type)
type
- New point typepublic void setPointColor(java.awt.Color color)
color
- New point colorpublic void setPointHiliteColor(java.awt.Color color)
color
- New point hilite colorpublic void setPointImage(java.awt.Image image)
image
- New point imagepublic void setFilling(boolean fill)
fill
- True: object is filled (only for polygon)public void write()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |