public interface Line extends Shape
| Modifier and Type | Field and Description |
|---|---|
static String |
ARROW
String to use arrows as markers
|
| Modifier and Type | Method and Description |
|---|---|
LineData |
asDataObject()
Returns an
LineData corresponding to the handled object. |
default double[] |
getCoordinates()
Gets the coordinates of the LineData shape.
|
double |
getX1()
Returns the x-coordinate of the starting point of an untransformed line.
|
double |
getX2()
Returns the x-coordinate of the end point of an untransformed line.
|
double |
getY1()
Returns the y-coordinate of the starting point of an untransformed line.
|
double |
getY2()
Returns the y-coordinate of the end point of an untransformed line.
|
default void |
setCoordinates(double[] coordinates)
Sets the coordinates of the LineData shape.
|
default void |
setCoordinates(double x1,
double y1,
double x2,
double y2)
Sets the coordinates of the LineData shape.
|
void |
setX1(double x1)
Set the x-coordinate of the starting point of an untransformed line.
|
void |
setX2(double x2)
Set the x-coordinate of the end point of an untransformed line.
|
void |
setY1(double y1)
Set the y-coordinate of the starting point of an untransformed line.
|
void |
setY2(double y2)
Set the y-coordinate of the end point of an untransformed line.
|
default Shape |
toAWTShape()
Converts the shape to an
Shape. |
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getText, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setText, setTransform, setTransform, setZ, toAWTTransform, toImageJaddAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlinkcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdatestatic final String ARROW
LineData asDataObject()
LineData corresponding to the handled object.asDataObject in interface RemoteObjectasDataObject in interface Shapedefault Shape toAWTShape()
Shape.toAWTShape in interface Shapedouble getX1()
void setX1(double x1)
x1 - See above.double getX2()
void setX2(double x2)
x2 - See above.double getY1()
void setY1(double y1)
y1 - See above.double getY2()
void setY2(double y2)
y2 - See above.default void setCoordinates(double x1,
double y1,
double x2,
double y2)
x1 - x-coordinate of the starting point of an untransformed line.y1 - y-coordinate of the starting point of an untransformed line.x2 - x-coordinate of the end point of an untransformed line.y2 - y-coordinate of the end point of an untransformed line.default double[] getCoordinates()
default void setCoordinates(double[] coordinates)
coordinates - Array of coordinates containing {X1,Y1,X2,Y2}.Copyright © 2020–2023 GReD. All rights reserved.