public class Blob extends Object implements ConnectorEnd
Modifier and Type | Field and Description |
---|---|
static int |
BLOB_CIRCLE
Specify a circle style
|
static int |
BLOB_DIAMOND
Specify a diamond style
|
Stroke |
stroke
The stroke.
|
Constructor and Description |
---|
Blob()
Create a new circle blob at (0,0).
|
Blob(double x,
double y,
double normal,
int style)
Create a new blob at the given coordinates and in the given style.
|
Blob(int style)
Create a new blob at (0,0) in the given style.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds()
Get the bounding box of the shape used to draw
this connector end.
|
void |
getConnection(Point2D p)
Get the connection point into the given point
|
void |
getOrigin(Point2D p)
Get the origin into the given point.
|
double |
getSizeUnit()
Get the size unit.
|
int |
getStyle()
Get the style.
|
boolean |
isFilled()
Test if the blob is filled or not.
|
void |
paint(Graphics2D g)
Paint the blob.
|
void |
reshape()
Recalculate the shape of the blob.
|
void |
setFilled(boolean flag)
Test the flag that sets whether to fill the blob.
|
void |
setNormal(double angle)
Set the normal of the blob.
|
void |
setOrigin(double x,
double y)
Set the end-point of the blob.
|
void |
setSizeUnit(double s)
Set the size unit.
|
void |
setStyle(int s)
Set the style.
|
void |
translate(double x,
double y)
Translate the origin by the given amount.
|
public static final int BLOB_CIRCLE
public static final int BLOB_DIAMOND
public Stroke stroke
public Blob()
public Blob(int style)
public Blob(double x, double y, double normal, int style)
public Rectangle2D getBounds()
getBounds
in interface ConnectorEnd
public void getConnection(Point2D p)
getConnection
in interface ConnectorEnd
public void getOrigin(Point2D p)
getOrigin
in interface ConnectorEnd
public double getSizeUnit()
public int getStyle()
public boolean isFilled()
public void paint(Graphics2D g)
paint
in interface ConnectorEnd
public void reshape()
public void setFilled(boolean flag)
public void setNormal(double angle)
setNormal
in interface ConnectorEnd
public void setOrigin(double x, double y)
setOrigin
in interface ConnectorEnd
public void setSizeUnit(double s)
public void setStyle(int s)
public void translate(double x, double y)
translate
in interface ConnectorEnd
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.