bookExamples.ch26Graphics.draw2d.shapes
Class Spiral
java.lang.Object
bookExamples.ch26Graphics.draw2d.shapes.DJShape
bookExamples.ch26Graphics.draw2d.shapes.Spiral
- All Implemented Interfaces:
- Containment, Drawable
public class Spiral
- extends DJShape
- implements Drawable, Containment
Constructor Summary |
Spiral(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, getPcs, getRunAffinePanel, getSize, getX1, getX2, getY1, getY2, isSelected, restoreState, setAffineTransform, setBackground, setForeground, setForegroundColor, setLocation, setPcs, setSelected, setSize, setX1, setX2, setY1, setY2 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Spiral
public Spiral(int x1,
int y1,
int x2,
int y2)
getPolygon
public java.awt.Polygon getPolygon()
getCenter
public java.awt.Point getCenter()
- Specified by:
getCenter
in class DJShape
setShear
public void setShear(double theta,
double shx,
double shy)
drawPolygon2
public void drawPolygon2(java.awt.Graphics g,
java.awt.Polygon p)
drawPolygon
public void drawPolygon(java.awt.Graphics g,
java.awt.Polygon p)
drawMat3
public void drawMat3(java.awt.Graphics g)
drawRotateGraphics
public void drawRotateGraphics(java.awt.Graphics g)
drawTransformedShape
public void drawTransformedShape(java.awt.Graphics g)
draw
public void draw(java.awt.Graphics g)
- Specified by:
draw
in interface Drawable
getInstance
public DJShape getInstance(int x1,
int y1,
int x2,
int y2)
- Specified by:
getInstance
in class DJShape
isPaintable
public boolean isPaintable()
supportsCustomEditor
public boolean supportsCustomEditor()
getCustomEditor
public java.awt.Component getCustomEditor()
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
- Overrides:
addPropertyChangeListener
in class DJShape
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
- Overrides:
removePropertyChangeListener
in class DJShape
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
getAsText
public java.lang.String getAsText()
getJavaInitializationString
public java.lang.String getJavaInitializationString()
getTags
public java.lang.String[] getTags()
setAsText
public void setAsText(java.lang.String text)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
paintValue
public void paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box)
contains
public boolean contains(double x,
double y)
- Specified by:
contains
in interface Containment
getShape
public java.awt.Shape getShape()