bookExamples.ch26Graphics.draw2d.shapes
Class RtTriangle2d
java.lang.Object
   bookExamples.ch26Graphics.draw2d.shapes.DJShape
bookExamples.ch26Graphics.draw2d.shapes.DJShape
       bookExamples.ch26Graphics.draw2d.shapes.RtTriangle2d
bookExamples.ch26Graphics.draw2d.shapes.RtTriangle2d
- All Implemented Interfaces: 
- Containment, Drawable, java.beans.PropertyEditor, java.io.Serializable
- public class RtTriangle2d 
- extends DJShape- implements java.beans.PropertyEditor, Containment
Created by IntelliJ IDEA.
 User: Keith Shaffer
 Date: Feb 3, 2005
 Time: 6:21:16 PM
 To change this template use File | Settings | File Templates.
- See Also:
- Serialized Form
 
 
| Constructor Summary | 
| RtTriangle2d(int _x1,
             int _y1,
             int _x2,
             int _y2)
 | 
 
 
| Methods inherited from class bookExamples.ch26Graphics.draw2d.shapes.DJShape | 
| addPropertyChangeListener, drawLine, erase, getAffineTransform, getBackground, getCenterPoint, getDistance, getForeground, getForegroundColor, getOldAffineTransform, getPcs, getRunAffinePanel, getSize, getX1, getX2, getY1, getY2, isGrouped, isSelected, removePropertyChangeListener, 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, wait, wait, wait | 
 
| Methods inherited from interface java.beans.PropertyEditor | 
| addPropertyChangeListener, removePropertyChangeListener | 
 
RtTriangle2d
public RtTriangle2d(int _x1,
                    int _y1,
                    int _x2,
                    int _y2)
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
 
getInstance
public DJShape getInstance(int x1,
                           int y1,
                           int x2,
                           int y2)
- 
- Specified by:
- getInstancein class- DJShape
 
- 
 
getX
public int getX()
- 
 
- 
 
getY
public int getY()
- 
 
- 
 
getW
public int getW()
- 
 
- 
 
getH
public int getH()
- 
 
- 
 
draw
public void draw(java.awt.Graphics g)
- 
- Specified by:
- drawin interface- Drawable
 
- 
 
drawAnnotation
public void drawAnnotation(java.awt.Graphics g,
                           java.awt.geom.Rectangle2D r)
- 
 
- 
 
draw2
public void draw2(java.awt.Graphics g)
- 
 
- 
 
getCenter
public java.awt.Point getCenter()
- 
- Specified by:
- getCenterin class- DJShape
 
- 
 
isPaintable
public boolean isPaintable()
- 
- Specified by:
- isPaintablein interface- java.beans.PropertyEditor
 
- 
 
supportsCustomEditor
public boolean supportsCustomEditor()
- 
- Specified by:
- supportsCustomEditorin interface- java.beans.PropertyEditor
 
- 
 
update
public final void update()
- 
 
- 
 
getCustomEditor
public java.awt.Component getCustomEditor()
- 
- Specified by:
- getCustomEditorin interface- java.beans.PropertyEditor
 
- 
 
getValue
public java.lang.Object getValue()
- 
- Specified by:
- getValuein interface- java.beans.PropertyEditor
 
- 
 
setValue
public void setValue(java.lang.Object value)
- 
- Specified by:
- setValuein interface- java.beans.PropertyEditor
 
- 
 
getAsText
public java.lang.String getAsText()
- 
- Specified by:
- getAsTextin interface- java.beans.PropertyEditor
 
- 
 
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- 
- Specified by:
- getJavaInitializationStringin interface- java.beans.PropertyEditor
 
- 
 
getTags
public java.lang.String[] getTags()
- 
- Specified by:
- getTagsin 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
 
paintValue
public void paintValue(java.awt.Graphics gfx,
                       java.awt.Rectangle box)
- 
- Specified by:
- paintValuein interface- java.beans.PropertyEditor
 
- 
 
contains
public boolean contains(double x,
                        double y)
- 
- Specified by:
- containsin interface- Containment
 
- 
 
getShape
public java.awt.Shape getShape()
- 
 
-