bookExamples.ch26Graphics.draw2d
Class Hexagon
java.lang.Object
   bookExamples.ch26Graphics.draw2d.shapes.DJShape
bookExamples.ch26Graphics.draw2d.shapes.DJShape
       bookExamples.ch26Graphics.draw2d.Hexagon
bookExamples.ch26Graphics.draw2d.Hexagon
- All Implemented Interfaces: 
- Drawable, java.beans.PropertyEditor, java.io.Serializable
- public class Hexagon 
- extends DJShape- implements java.beans.PropertyEditor
- See Also:
- Serialized Form
 
 
| Constructor Summary | 
| Hexagon(int x1,
        int y1,
        int x2,
        int y2)
 | 
 
 
| Methods inherited from class bookExamples.ch26Graphics.draw2d.shapes.DJShape | 
| drawLine, erase, getAffineTransform, getBackground, getCenterPoint, getDistance, getForeground, getForegroundColor, getOldAffineTransform, getPcs, getRunAffinePanel, getSize, getX1, getX2, getY1, getY2, isGrouped, isSelected, restoreState, saveState, setAffineTransform, setBackground, setForeground, setForegroundColor, setGrouped, setLocation, setOldAffineTransform, setPcs, setSelected, setSize, setX1, setX2, setY1, setY2 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Hexagon
public Hexagon(int x1,
               int y1,
               int x2,
               int y2)
getInstance
public DJShape getInstance(int x1,
                           int y1,
                           int x2,
                           int y2)
- 
- Specified by:
- getInstancein class- DJShape
 
- 
 
getCenter
public java.awt.Point getCenter()
- 
- Specified by:
- getCenterin class- DJShape
 
- 
 
setValue
public void setValue(java.lang.Object value)
- 
- Specified by:
- setValuein interface- java.beans.PropertyEditor
 
- 
 
getValue
public java.lang.Object getValue()
- 
- Specified by:
- getValuein interface- java.beans.PropertyEditor
 
- 
 
isPaintable
public boolean isPaintable()
- 
- Specified by:
- isPaintablein interface- java.beans.PropertyEditor
 
- 
 
paintValue
public void paintValue(java.awt.Graphics gfx,
                       java.awt.Rectangle box)
- 
- Specified by:
- paintValuein interface- java.beans.PropertyEditor
 
- 
 
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- 
- Specified by:
- getJavaInitializationStringin interface- java.beans.PropertyEditor
 
- 
 
getAsText
public java.lang.String getAsText()
- 
- Specified by:
- getAsTextin interface- java.beans.PropertyEditor
 
- 
 
setAsText
public void setAsText(java.lang.String text)
               throws java.lang.IllegalArgumentException
- 
- Specified by:
- setAsTextin interface- java.beans.PropertyEditor
 
- 
- Throws:
- java.lang.IllegalArgumentException
 
getTags
public java.lang.String[] getTags()
- 
- Specified by:
- getTagsin interface- java.beans.PropertyEditor
 
- 
 
getCustomEditor
public java.awt.Component getCustomEditor()
- 
- Specified by:
- getCustomEditorin interface- java.beans.PropertyEditor
 
- 
 
supportsCustomEditor
public boolean supportsCustomEditor()
- 
- Specified by:
- supportsCustomEditorin interface- java.beans.PropertyEditor
 
- 
 
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- 
- Specified by:
- addPropertyChangeListenerin interface- java.beans.PropertyEditor
- Overrides:
- addPropertyChangeListenerin class- DJShape
 
- 
 
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- 
- Specified by:
- removePropertyChangeListenerin interface- java.beans.PropertyEditor
- Overrides:
- removePropertyChangeListenerin class- DJShape
 
- 
 
draw
public void draw(java.awt.Graphics g)
- 
- Specified by:
- drawin interface- Drawable
 
-