E - component typeD - decoration typeI - shape typepublic class ArrowShape<E extends javax.swing.JComponent,D extends WebDecoration<E,D>,I extends ArrowShape<E,D,I>> extends AbstractShape<E,D,I>
| Modifier and Type | Field and Description |
|---|---|
protected CompassDirection |
direction
Arrow corner direction.
|
id| Constructor and Description |
|---|
ArrowShape() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Shape |
createArrowButtonShape(ShapeType type,
java.awt.Rectangle bounds,
CompassDirection direction)
Returns arrow shape.
|
java.awt.Insets |
getBorderInsets(E c,
D d)
Returns shape borders size.
|
CompassDirection |
getDirection(E c)
Returns corner direction.
|
java.awt.Shape |
getShape(ShapeType type,
java.awt.Rectangle bounds,
E c,
D d)
Returns shape provided for shade painting.
|
java.lang.Object[] |
getShapeSettings(java.awt.Rectangle bounds,
E c,
D d)
Returns exclusive shape settings used to cache the shape itself.
|
I |
merge(I shape) |
clone, getDefaultId, getId, getStretchInfo, isVisible, p@XStreamAsAttribute protected CompassDirection direction
public CompassDirection getDirection(E c)
c - componentpublic java.awt.Insets getBorderInsets(E c, D d)
IShapec - painted componentd - painted decoration statepublic java.awt.Shape getShape(ShapeType type, java.awt.Rectangle bounds, E c, D d)
IShapetype - requested shape typebounds - painting boundsc - painted componentd - painted decoration stateprotected java.awt.Shape createArrowButtonShape(ShapeType type, java.awt.Rectangle bounds, CompassDirection direction)
type - requested shape typebounds - painting boundsdirection - arrow directionpublic java.lang.Object[] getShapeSettings(java.awt.Rectangle bounds,
E c,
D d)
IShapegetShapeSettings in interface IShape<E extends javax.swing.JComponent,D extends WebDecoration<E,D>,I extends ArrowShape<E,D,I>>getShapeSettings in class AbstractShape<E extends javax.swing.JComponent,D extends WebDecoration<E,D>,I extends ArrowShape<E,D,I>>bounds - painting boundsc - painted componentd - painted decoration statepublic I merge(I shape)
merge in interface com.alee.api.Mergeable<I extends ArrowShape<E,D,I>>merge in class AbstractShape<E extends javax.swing.JComponent,D extends WebDecoration<E,D>,I extends ArrowShape<E,D,I>>