@ALDAOperator(genericExecutionMode=ALL,
level=APPLICATION)
public class DrawLine
extends MTBOperator
| Modifier and Type | Field and Description |
|---|---|
private Color |
color |
private Point2D.Double |
end |
private MTBImage |
inImg |
private Point2D.Double |
start |
| Constructor and Description |
|---|
DrawLine() |
DrawLine(MTBImage inImg,
Point2D.Double start,
Point2D.Double end) |
| Modifier and Type | Method and Description |
|---|---|
private void |
line()
Draw line into image.
|
void |
operate() |
void |
setColor(Color c)
Specify color to use for drawing.
|
readResolveaddOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory@Parameter(label="inImg",
required=true,
direction=INOUT,
supplemental=false,
description="input image",
dataIOOrder=0)
private transient MTBImage inImg
@Parameter(label="start",
required=true,
direction=IN,
supplemental=false,
description="starting point of the line",
dataIOOrder=1)
private Point2D.Double start
@Parameter(label="end",
required=true,
direction=IN,
supplemental=false,
description="end point of the line",
dataIOOrder=2)
private Point2D.Double end
@Parameter(label="color",
required=false,
direction=IN,
supplemental=false,
description="color value for drawing the line, value rINT:gINT:bINT",
dataIOOrder=3)
private Color color
public DrawLine()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic DrawLine(MTBImage inImg, Point2D.Double start, Point2D.Double end) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic void operate()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException,
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorde.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionde.unihalle.informatik.Alida.exceptions.ALDProcessingDAGExceptionprivate void line()
public void setColor(Color c)
c - Color to use for drawing the line.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.