projectPrototype.view.graphicEditor.graphicElement
Class Line
java.lang.Object
projectPrototype.view.graphicEditor.graphicElement.GraphicElement
projectPrototype.view.graphicEditor.graphicElement.Line
- public class Line
- extends GraphicElement
- Author:
- Administrator
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
|
Field Summary |
private boolean |
dashed
|
| Fields inherited from class projectPrototype.view.graphicEditor.graphicElement.GraphicElement |
bgColor, conector, cursor, lineColor, MIN_HEIGHT, MIN_WIDTH, oldP1, oldP2, p1, p2, selector |
|
Constructor Summary |
Line(Point p1,
Point p2,
java.awt.Color lineColor,
boolean dashed)
|
| Methods inherited from class projectPrototype.view.graphicEditor.graphicElement.GraphicElement |
adjustConectors, autoAdjust, createConectors, createDraggableElement, getConector, getCursor, getGraphicElement, getGraphicElementSelector, getP1, getP2, getRectangle, isSelected, move, select, setP1, setP2 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dashed
private boolean dashed
Line
public Line(Point p1,
Point p2,
java.awt.Color lineColor,
boolean dashed)
paint
public void paint(java.awt.Graphics g)
- Specified by:
paint in class GraphicElement
over
public boolean over(Point p)
- Overrides:
over in class GraphicElement
createSelector
protected GraphicElementSelector createSelector()
- Overrides:
createSelector in class GraphicElement
verifyMinimalSize
public void verifyMinimalSize()
- Overrides:
verifyMinimalSize in class GraphicElement
orderPoints
public void orderPoints()