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 DrawConfig
gfxConfig
protected java.awt.geom.Rectangle2D
rect
-
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 void
draw(IDrawContext ctx, DepictorTransformation t)
java.awt.geom.Rectangle2D
getBoundingRect()
boolean
isMovable()
boolean
isOnProductSide(float x, float y)
boolean
isSelected()
void
move(float dx, float dy)
void
scale(float scaling)
void
setRect(float x, float y, float w, float h)
void
setSelected(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:
setSelected
in interfaceIDrawingObject
-
isSelected
public boolean isSelected()
- Specified by:
isSelected
in interfaceIDrawingObject
-
move
public void move(float dx, float dy)
- Specified by:
move
in interfaceIDrawingObject
-
getBoundingRect
public java.awt.geom.Rectangle2D getBoundingRect()
- Specified by:
getBoundingRect
in interfaceIDrawingObject
-
setRect
public void setRect(float x, float y, float w, float h)
- Specified by:
setRect
in interfaceIDrawingObject
-
scale
public void scale(float scaling)
- Specified by:
scale
in interfaceIDrawingObject
-
draw
public void draw(IDrawContext ctx, DepictorTransformation t)
- Specified by:
draw
in interfaceIDrawingObject
-
isMovable
public boolean isMovable()
- Specified by:
isMovable
in interfaceIDrawingObject
-
isOnProductSide
public boolean isOnProductSide(float x, float y)
-
-