public class DebugPoint extends Object
| Constructor and Description |
|---|
DebugPoint(Point2D point)
Class constructor for only a point with no line.
|
DebugPoint(Point2D point,
Point2D startPoint)
Class constructor for a point with a line.
|
DebugPoint(Point2D point,
Point2D startPoint,
Color color)
Class constructor for a colored line.
|
DebugPoint(Point2D point,
Point2D startPoint,
String msg)
Class constructor for a line with text.
|
DebugPoint(Point2D point,
Point2D startPoint,
String msg,
Color color)
Class constructor for a colored line with text.
|
DebugPoint(Point2D point,
String msg)
Class constructor for a point with text.
|
DebugPoint(Point2D point,
String msg,
Color color)
Class constructor for a colored point with text.
|
DebugPoint(String msg)
Class constructor for text only.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Get the color of this DebugPoint.
|
Point2D |
getPoint()
Get the point associated with this DebugPoint.
|
Point2D |
getStartPoint()
Get the start point associated with this DebugPoint.
|
String |
getText()
Get the text associated with this DebugPoint.
|
boolean |
hasStartPoint()
Whether or not this DebugPoint has a start point.
|
boolean |
hasText()
Whether or not this DebugPoint has associated text.
|
public DebugPoint(Point2D point)
point - the location of the debug pointpublic DebugPoint(String msg)
msg - the text for this text-only DebugPointpublic DebugPoint(Point2D point, Point2D startPoint)
point - the location of the debug pointstartPoint - the point from which to draw a line to the debug
pointpublic DebugPoint(Point2D point, String msg)
point - the location of the debug pointmsg - the text to display alongside the debug pointpublic DebugPoint(Point2D point, String msg, Color color)
point - the location of the debug pointmsg - the text to display alongside the debug pointcolor - the color with which to display the point and textpublic DebugPoint(Point2D point, Point2D startPoint, String msg)
point - the location of the debug pointstartPoint - the point from which to draw a line to the debug
pointmsg - the text to display alongside the debug pointpublic DebugPoint(Point2D point, Point2D startPoint, Color color)
point - the location of the debug pointstartPoint - the point from which to draw a line to the debug
pointcolor - the color with which to display the point and linepublic DebugPoint(Point2D point, Point2D startPoint, String msg, Color color)
point - the location of the debug pointstartPoint - the point from which to draw a line to the debug
pointmsg - the text to display alongside the debug pointcolor - the color with which to display the point, line, and
textpublic boolean hasText()
public boolean hasStartPoint()
public Point2D getPoint()
public Point2D getStartPoint()
public Color getColor()
public String getText()
Copyright © 2013. All rights reserved.