org.kaboum.geom
Class KaboumGeometryDisplayDescriptor

java.lang.Object
  extended by org.kaboum.geom.KaboumGeometryDisplayDescriptor

public class KaboumGeometryDisplayDescriptor
extends java.lang.Object

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...)

Author:
Jérôme Gasperi aka jrom

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

KaboumGeometryDisplayDescriptor

public KaboumGeometryDisplayDescriptor(java.lang.String _name)
Default constructor


KaboumGeometryDisplayDescriptor

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)
Constructor

Parameters:
name - DisplayDescriptor name (unique identifier)
color - Geometry color
hiliteColor - Geometry hilited color
modifiedColor - Geometry modified color
pointType - Point type (cf: KaboumControlPoint)
pointHeight - Point height
pointWidth - Point width
pointWidth - Line width
pointColor - Point Color
pointHiliteColor - Point Hilite Color
pointImage - Image drawn at point position (null if not define)
filling - True: object is filled (only valid for polygon)
Method Detail

getName

public java.lang.String getName()
Get name


getColor

public java.awt.Color getColor()
Get color


getHiliteColor

public java.awt.Color getHiliteColor()
Get hilite color


getModifiedColor

public java.awt.Color getModifiedColor()
Get modified color


getPointType

public int getPointType()
Get point type


getPointHeight

public int getPointHeight()
Get point height


getPointWidth

public int getPointWidth()
Get point width


getLineWidth

public int getLineWidth()
Get line width


getPointColor

public java.awt.Color getPointColor()
Get point color


getPointHiliteColor

public java.awt.Color getPointHiliteColor()
Get point hilite color


getPointImage

public java.awt.Image getPointImage()
Get point image


getFilling

public boolean getFilling()
Get Filling


setColor

public void setColor(java.awt.Color color)
Set color

Parameters:
color - New color

setHiliteColor

public void setHiliteColor(java.awt.Color color)
Set hilite color

Parameters:
color - New hilite color

setModifiedColor

public void setModifiedColor(java.awt.Color color)
Set modified color

Parameters:
color - New modified color

setPointType

public void setPointType(int type)
Set point type

Parameters:
type - New point type

setPointColor

public void setPointColor(java.awt.Color color)
Set point color

Parameters:
color - New point color

setPointHiliteColor

public void setPointHiliteColor(java.awt.Color color)
Set point hilite color

Parameters:
color - New point hilite color

setPointImage

public void setPointImage(java.awt.Image image)
Set point image

Parameters:
image - New point image

setFilling

public void setFilling(boolean fill)
Set fill status

Parameters:
fill - True: object is filled (only for polygon)

write

public void write()
Really usefull for debugging



Copyright © 2005 Kaboum team. All Rights Reserved.