com.rolemodelsoft.drawlet.shapes.lines
Class AdornedLineTool

java.lang.Object
  |
  +--com.rolemodelsoft.drawlet.basics.AbstractInputEventHandler
        |
        +--com.rolemodelsoft.drawlet.basics.CanvasTool
              |
              +--com.rolemodelsoft.drawlet.basics.ConstructionTool
                    |
                    +--com.rolemodelsoft.drawlet.shapes.ShapeTool
                          |
                          +--com.rolemodelsoft.drawlet.shapes.lines.LineTool
                                |
                                +--com.rolemodelsoft.drawlet.shapes.lines.ConnectingLineTool
                                      |
                                      +--com.rolemodelsoft.drawlet.shapes.lines.AdornedLineTool

public class AdornedLineTool
extends ConnectingLineTool

This tool produces AdornedLines


Fields inherited from class com.rolemodelsoft.drawlet.shapes.ShapeTool
anchorX, anchorY
 
Fields inherited from class com.rolemodelsoft.drawlet.basics.ConstructionTool
figure
 
Fields inherited from class com.rolemodelsoft.drawlet.basics.CanvasTool
canvas
 
Constructor Summary
AdornedLineTool(DrawingCanvas canvas)
          Creates a new AdornedLineTool initialized with the given DrawingCanvas.
 
Method Summary
protected  Figure basicNewFigure(int x, int y)
          Create and answer a new Figure.
 
Methods inherited from class com.rolemodelsoft.drawlet.shapes.lines.ConnectingLineTool
mousePressed, mouseReleased
 
Methods inherited from class com.rolemodelsoft.drawlet.shapes.lines.LineTool
mouseDragged, mouseMoved, movePoint
 
Methods inherited from class com.rolemodelsoft.drawlet.basics.ConstructionTool
newFigure, setProperties
 
Methods inherited from class com.rolemodelsoft.drawlet.basics.CanvasTool
getX, getY
 
Methods inherited from class com.rolemodelsoft.drawlet.basics.AbstractInputEventHandler
keyPressed, keyReleased, keyTyped, mouseClicked, mouseDoubleClicked, mouseEntered, mouseExited, mouseSingleClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdornedLineTool

public AdornedLineTool(DrawingCanvas canvas)
Creates a new AdornedLineTool initialized with the given DrawingCanvas.
Parameters:
canvas - the DrawingCanvas to create AdornedLines on.
Method Detail

basicNewFigure

protected Figure basicNewFigure(int x,
                                int y)
Create and answer a new Figure.
Overrides:
basicNewFigure in class ConnectingLineTool
Parameters:
x - the x coordinate
y - the y coordinate