MetaDone
metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape:

List of all members.

Public Member Functions

 AbstractCustomAnchorShape (Shape shape, Stroke stroke, boolean filled, Color fillColor)
boolean isFilled ()
Color getFillColor ()
Stroke getStroke ()
boolean isLineOriented ()
void paint (Graphics2D graphics, boolean source)

Protected Member Functions

Shape getShape ()

Private Attributes

final boolean filled
final Stroke stroke
final Shape shape
final Color fillColor

Detailed Description

An abstract anchor shape to easily create other shapes.

You should give just a shape and other optional parameters and that shape will be draw at the end of the edge and will be line oriented (by default).

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.AbstractCustomAnchorShape ( Shape  shape,
Stroke  stroke,
boolean  filled,
Color  fillColor 
)

Initializes this anchor shape.

Parameters:
shapeThe drawn shape
strokeThe stroke (optional)
filledWhether the shape is filled
fillColorThe color with which the shape is filled (optional)

References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.filled, metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.shape, and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.stroke.


Member Function Documentation

Color metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getFillColor ( )

Gets the fill color of the shape.

If the returned color is null, the already set color of the graphics should be used.

Returns:
Color or null

References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.fillColor.

Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint().

Shape metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getShape ( ) [protected]
Stroke metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getStroke ( )
boolean metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.isFilled ( )

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations