jimgpnt
Class JImageQuadArrowObject

java.lang.Object
  extended by jimgpnt.JImagePaintObject
      extended by jimgpnt.JImageQuadArrowObject

public class JImageQuadArrowObject
extends JImagePaintObject

Draws a "QuadArrow".

Copyright (c) 2004 Alistair Dickie. All Rights Reserved. See alistairdickie.com for contact details See licence.txt for licence infomation


Constructor Summary
JImageQuadArrowObject(java.awt.Color color, java.awt.geom.Point2D locationStart, java.awt.geom.Point2D locationEnd, java.awt.geom.Point2D locationCtrl, java.awt.Stroke stroke, boolean antialiased, boolean filled, float alpha)
           
JImageQuadArrowObject(java.awt.Color color, java.awt.geom.Point2D locationStart, java.awt.Stroke stroke, boolean antialiased, boolean filled, float alpha)
           
 
Method Summary
 void addGraphics(java.awt.Graphics2D g)
           
 JImagePaintObject createCopy(int xOffset, int yOffset)
           
 boolean finished(java.awt.geom.Point2D point)
           
 java.awt.geom.Point2D[] getHighlightPoints()
           
 java.awt.geom.Point2D.Double getIntersectionPoint(java.awt.geom.Point2D.Double pointA, double slopeA, java.awt.geom.Point2D.Double pointB, double slopeB)
           
 double getLineSlope(java.awt.geom.Line2D.Double line)
           
 java.awt.geom.Point2D getLocationCtrl()
           
 java.awt.geom.Point2D getLocationEnd()
           
 java.awt.geom.Point2D getLocationStart()
           
 java.awt.Stroke getStroke()
           
 java.awt.geom.QuadCurve2D.Double getSubCurve(java.awt.geom.QuadCurve2D.Double quad, double t)
           
 java.awt.geom.Point2D.Double getTPoint(java.awt.geom.Line2D.Double line, double distance)
           
 double[] getTranslation()
           
 void init()
           
 boolean isFilled()
           
 java.awt.geom.Point2D.Double pointOnQuad(java.awt.geom.QuadCurve2D.Double quad, double t)
           
 void setFilled(boolean filled)
           
 void setLocationCtrl(java.awt.geom.Point2D locationCtrl)
           
 void setLocationEnd(java.awt.geom.Point2D locationEnd)
           
 void setLocationMiddle(java.awt.geom.Point2D point)
           
 void setLocationStart(java.awt.geom.Point2D locationStart)
           
 void setStartDragLocs()
           
 void setStroke(java.awt.Stroke stroke)
           
 java.awt.geom.Point2D.Double subPoint(java.awt.geom.Line2D.Double line, double t)
           
 void updateEndPoint(java.awt.geom.Point2D point)
           
 void updateHeadPoint(java.awt.geom.Point2D point)
           
 void updateLocation(java.awt.geom.Point2D point)
           
 void updateShape()
           
 void updateStartPoint(java.awt.geom.Point2D point)
           
 void updateTempPoints(java.awt.geom.Point2D point)
           
 void updateTipPoint(java.awt.geom.Point2D point)
           
 
Methods inherited from class jimgpnt.JImagePaintObject
addToGraphics, getAlpha, getColor, getCurrentPointIndex, getLocation, getStartDragLoc, isAntialiased, isSelected, keyPressed, setAlpha, setAntialiased, setColor, setCurrentPointIndex, setLocation, setSelected, setStartDragLoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JImageQuadArrowObject

public JImageQuadArrowObject(java.awt.Color color,
                             java.awt.geom.Point2D locationStart,
                             java.awt.Stroke stroke,
                             boolean antialiased,
                             boolean filled,
                             float alpha)

JImageQuadArrowObject

public JImageQuadArrowObject(java.awt.Color color,
                             java.awt.geom.Point2D locationStart,
                             java.awt.geom.Point2D locationEnd,
                             java.awt.geom.Point2D locationCtrl,
                             java.awt.Stroke stroke,
                             boolean antialiased,
                             boolean filled,
                             float alpha)
Method Detail

init

public void init()

isFilled

public boolean isFilled()

setFilled

public void setFilled(boolean filled)

updateTempPoints

public void updateTempPoints(java.awt.geom.Point2D point)

updateHeadPoint

public void updateHeadPoint(java.awt.geom.Point2D point)

updateEndPoint

public void updateEndPoint(java.awt.geom.Point2D point)

updateTipPoint

public void updateTipPoint(java.awt.geom.Point2D point)

updateStartPoint

public void updateStartPoint(java.awt.geom.Point2D point)

updateShape

public void updateShape()

addGraphics

public void addGraphics(java.awt.Graphics2D g)
Specified by:
addGraphics in class JImagePaintObject

getLocationStart

public java.awt.geom.Point2D getLocationStart()

setLocationStart

public void setLocationStart(java.awt.geom.Point2D locationStart)

getLocationEnd

public java.awt.geom.Point2D getLocationEnd()

setLocationEnd

public void setLocationEnd(java.awt.geom.Point2D locationEnd)

getLocationCtrl

public java.awt.geom.Point2D getLocationCtrl()

setLocationCtrl

public void setLocationCtrl(java.awt.geom.Point2D locationCtrl)

setLocationMiddle

public void setLocationMiddle(java.awt.geom.Point2D point)

setStartDragLocs

public void setStartDragLocs()
Specified by:
setStartDragLocs in class JImagePaintObject

updateLocation

public void updateLocation(java.awt.geom.Point2D point)
Specified by:
updateLocation in class JImagePaintObject

getStroke

public java.awt.Stroke getStroke()

setStroke

public void setStroke(java.awt.Stroke stroke)

getHighlightPoints

public java.awt.geom.Point2D[] getHighlightPoints()
Specified by:
getHighlightPoints in class JImagePaintObject

finished

public boolean finished(java.awt.geom.Point2D point)
Specified by:
finished in class JImagePaintObject

getTranslation

public double[] getTranslation()
Specified by:
getTranslation in class JImagePaintObject

createCopy

public JImagePaintObject createCopy(int xOffset,
                                    int yOffset)
Specified by:
createCopy in class JImagePaintObject

subPoint

public java.awt.geom.Point2D.Double subPoint(java.awt.geom.Line2D.Double line,
                                             double t)

getSubCurve

public java.awt.geom.QuadCurve2D.Double getSubCurve(java.awt.geom.QuadCurve2D.Double quad,
                                                    double t)

pointOnQuad

public java.awt.geom.Point2D.Double pointOnQuad(java.awt.geom.QuadCurve2D.Double quad,
                                                double t)

getTPoint

public java.awt.geom.Point2D.Double getTPoint(java.awt.geom.Line2D.Double line,
                                              double distance)

getIntersectionPoint

public java.awt.geom.Point2D.Double getIntersectionPoint(java.awt.geom.Point2D.Double pointA,
                                                         double slopeA,
                                                         java.awt.geom.Point2D.Double pointB,
                                                         double slopeB)

getLineSlope

public double getLineSlope(java.awt.geom.Line2D.Double line)


Copyright © 2004 Alistair Dickie. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

1. The origin of this Software must not be misrepresented; you must not claim that you wrote the original software. If you use the Software in a product, an acknowledgment in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original Software.

3. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Alistair Dickie - See alistairdickie.com for contact details.