|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TGLineOp
public class TGLineOp
TGLineOp provides a TurtleGraphics Line graphics Operation. A line of a specified penWidth is drawn between two TurtleSpace points.
Field Summary | |
---|---|
TGPoint |
endPt1
|
TGPoint |
endPt2
|
Constructor Summary | |
---|---|
TGLineOp(TGPoint pt1,
TGPoint pt2,
java.awt.Color color,
int width)
Return a TGLineOp, a line drawing operation. |
|
TGLineOp(TGPoint pt1,
TGPoint pt2,
java.awt.Color color,
int width,
float[] pattern)
Return a TGLineOp, a line drawing operation. |
|
TGLineOp(TGPoint pt1,
TGPoint pt2,
java.awt.Color color,
int width,
float[] pattern,
int lineCap)
Return a TGLineOp, a line drawing operation. |
|
TGLineOp(TGPoint pt1,
TGPoint pt2,
java.awt.Color color,
int width,
int lineCap)
Return a TGLineOp, a line drawing operation. |
Method Summary | |
---|---|
java.awt.Rectangle |
doIt(java.awt.image.BufferedImage inMemoryImage)
Draw the line defined by this TGLineOp object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final TGPoint endPt1
public final TGPoint endPt2
Constructor Detail |
---|
public TGLineOp(TGPoint pt1, TGPoint pt2, java.awt.Color color, int width)
pt1
- one end TGPoint of the linept2
- other end TGPoint of the linecolor
- AWT Color for line's pixelswidth
- number of pixels for width of the linepublic TGLineOp(TGPoint pt1, TGPoint pt2, java.awt.Color color, int width, int lineCap)
pt1
- one end TGPoint of the linept2
- other end TGPoint of the linecolor
- AWT Color for line's pixelswidth
- number of pixels for width of the linelineCap
- type of endcaps on the linepublic TGLineOp(TGPoint pt1, TGPoint pt2, java.awt.Color color, int width, float[] pattern)
pt1
- one end TGPoint of the linept2
- other end TGPoint of the linecolor
- AWT Color for line's pixelswidth
- number of pixels for width of the linepattern
- dashed line pattern. even elements are draw
amounts, odd elements are skip amountspublic TGLineOp(TGPoint pt1, TGPoint pt2, java.awt.Color color, int width, float[] pattern, int lineCap)
pt1
- one end TGPoint of the linept2
- other end TGPoint of the linecolor
- AWT Color for line's pixelswidth
- number of pixels for width of the linepattern
- dashed line pattern. even elements are draw
amounts, odd elements are skip amountslineCap
- type of endcaps on the lineMethod Detail |
---|
public java.awt.Rectangle doIt(java.awt.image.BufferedImage inMemoryImage)
doIt
in interface TGGraphicsOp
inMemoryImage
- where to draw
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |