Package com.actelion.research.share.gui
Class Arrow
- java.lang.Object
-
- com.actelion.research.share.gui.Arrow
-
- All Implemented Interfaces:
IDrawingObject
public class Arrow extends java.lang.Object implements IDrawingObject
-
-
Field Summary
Fields Modifier and Type Field Description protected DrawConfiggfxConfigprotected java.awt.geom.Rectangle2Drect
-
Constructor Summary
Constructors Constructor Description Arrow(DrawConfig cfg, double x, double y, double w, double h)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(IDrawContext ctx, DepictorTransformation t)java.awt.geom.Rectangle2DgetBoundingRect()booleanisMovable()booleanisOnProductSide(float x, float y)booleanisSelected()voidmove(float dx, float dy)voidscale(float scaling)voidsetRect(float x, float y, float w, float h)voidsetSelected(boolean b)
-
-
-
Field Detail
-
gfxConfig
protected final DrawConfig gfxConfig
-
rect
protected java.awt.geom.Rectangle2D rect
-
-
Constructor Detail
-
Arrow
public Arrow(DrawConfig cfg, double x, double y, double w, double h)
-
-
Method Detail
-
setSelected
public void setSelected(boolean b)
- Specified by:
setSelectedin interfaceIDrawingObject
-
isSelected
public boolean isSelected()
- Specified by:
isSelectedin interfaceIDrawingObject
-
move
public void move(float dx, float dy)- Specified by:
movein interfaceIDrawingObject
-
getBoundingRect
public java.awt.geom.Rectangle2D getBoundingRect()
- Specified by:
getBoundingRectin interfaceIDrawingObject
-
setRect
public void setRect(float x, float y, float w, float h)- Specified by:
setRectin interfaceIDrawingObject
-
scale
public void scale(float scaling)
- Specified by:
scalein interfaceIDrawingObject
-
draw
public void draw(IDrawContext ctx, DepictorTransformation t)
- Specified by:
drawin interfaceIDrawingObject
-
isMovable
public boolean isMovable()
- Specified by:
isMovablein interfaceIDrawingObject
-
isOnProductSide
public boolean isOnProductSide(float x, float y)
-
-