|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
org.jscience.awt.util.DrawnRectangle
org.jscience.awt.util.EtchedRectangle
public class EtchedRectangle
A DrawnRectangle that draws an etched border.
Drawn etched in by default, drawing style used by paint() is controlled by etchedIn() and etchedOut(). Note that etchedIn() and etchedOut() do not result in anything being painted, but only set the state for the next call to paint(). To set the state and paint in one operation, use paintEtchedIn() and paintEtchedOut().
Although it is permissible to set the thickness of EtchedRectangles, they tend to loose the etching effect if thickness is greater than 4.
The current state of the rectangle may be obtained by calling isEtchedIn().
DrawnRectangle,
ThreeDRectangle,
gjt.test.DrawnRectangleTest,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
|---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
| Field Summary | |
|---|---|
protected static Etching |
_defaultEtching
|
| Fields inherited from class org.jscience.awt.util.DrawnRectangle |
|---|
_defaultThickness, drawInto |
| Fields inherited from class java.awt.Rectangle |
|---|
height, width, x, y |
| Fields inherited from class java.awt.geom.Rectangle2D |
|---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
| Constructor Summary | |
|---|---|
EtchedRectangle(java.awt.Component drawInto)
|
|
EtchedRectangle(java.awt.Component drawInto,
Etching etching,
int thickness,
int x,
int y,
int w,
int h)
|
|
EtchedRectangle(java.awt.Component drawInto,
int thickness)
|
|
EtchedRectangle(java.awt.Component drawInto,
int x,
int y,
int w,
int h)
|
|
EtchedRectangle(java.awt.Component drawInto,
int thickness,
int x,
int y,
int w,
int h)
|
|
| Method Summary | |
|---|---|
void |
etchedIn()
|
void |
etchedOut()
|
boolean |
isEtchedIn()
|
void |
paint()
|
void |
paintEtchedIn()
|
void |
paintEtchedOut()
|
java.lang.String |
paramString()
|
| Methods inherited from class org.jscience.awt.util.DrawnRectangle |
|---|
brighter, clear, clearExterior, clearInterior, component, fill, fill, getFillColor, getInnerBounds, getLineColor, getThickness, setFillColor, setLineColor, setThickness, toString |
| Methods inherited from class java.awt.Rectangle |
|---|
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, translate, union |
| Methods inherited from class java.awt.geom.Rectangle2D |
|---|
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
| Methods inherited from class java.awt.geom.RectangularShape |
|---|
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.Shape |
|---|
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
| Field Detail |
|---|
protected static Etching _defaultEtching
| Constructor Detail |
|---|
public EtchedRectangle(java.awt.Component drawInto)
public EtchedRectangle(java.awt.Component drawInto,
int thickness)
public EtchedRectangle(java.awt.Component drawInto,
int x,
int y,
int w,
int h)
public EtchedRectangle(java.awt.Component drawInto,
int thickness,
int x,
int y,
int w,
int h)
public EtchedRectangle(java.awt.Component drawInto,
Etching etching,
int thickness,
int x,
int y,
int w,
int h)
| Method Detail |
|---|
public void etchedIn()
public void etchedOut()
public boolean isEtchedIn()
public void paint()
paint in class DrawnRectanglepublic void paintEtchedIn()
public void paintEtchedOut()
public java.lang.String paramString()
paramString in class DrawnRectangle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||