Resource Base
Table of contents

LineDrawingItem

The LineDrawingItem class is a subclass of DrawingItem and represents a line drawing item used for drawing line segments on the view.

Definition

Assembly: package com.dynamsoft.dce

class LineDrawingItem extends DrawingItem

Methods

Method Description
getLine Get the line information of the LineDrawingItem.
getMediaType Get the media type of the DrawingItem.
LineDrawingItem Create an instance of LineDrawingItem.
LineDrawingItem(line,coordinateBase) Create an instance of LineDrawingItem.

Interited Methods

The following methods are inherited from the superclass DrawingItem.

Method Description
setDrawingStyleId Set the DrawingStyle of the DrawingItem. If a DrawingItem holds a drawing style ID, it will not use the default style of its layer.
getDrawingStyleId Get the DrawingStyle of the DrawingItem.
setState Set the state of the DrawingItem.
getState Get the state of the DrawingItem.
getCoordinateBase Get the coordinate base of the DrawingItem. The coordinate base is image by default.
getMediaType Get the media type of the DrawingItem.
addNote Add a note to the DrawingItem.
getNote Get the specified Note.
hasNote Check whether the specified Note exists.
updateNote Update the content of the specified Note.
deleteNote Remove the specified Note with the specified name.
getAllNotes Get all Notes of this DrawingItem.
clearNotes Remove all Notes of this DrawingItem.

getLine

Get the line information of the LineDrawingItem.

com.dynamsoft.core.LineSegment getLine(){}

getMediaType

Get the media type of the DrawingItem.

EnumDrawingItemMeidaType getMediaType;

LineDrawingItem(line)

Create an instance of LineDrawingItem.

LineDrawingItem(com.dynamsoft.core.LineSegment line){}

Parameters

line: A LineSegment object that stores the line coordinates information.

Return Value

An instance of LineDrawingItem.

LineDrawingItem(line,coordinateBase)

Create an instance of LineDrawingItem.

LineDrawingItem(com.dynamsoft.core.LineSegment line, EnumCoordinateBase coordinateBase){}

Parameters

line: A LineSegment object that stores the line coordinates information.
coordinateBase: The coordinate base of the DrawingItem.

Return Value

An instance of LineDrawingItem.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 4.x
      • Version 4.2.10
      • Version 4.2.1
      • Version 4.2.0
      • Version 4.0.2
      • Version 4.0.1
      • Version 4.0.0
    • Version 3.x
      • Version 3.0.3
      • Version 3.0.2
      • Version 3.0.1
      • Version 3.0.0
    • Version 2.x
      • Version 2.3.21
      • Version 2.3.20
      • Version 2.3.12
      • Version 2.3.11
      • Version 2.3.10
      • Version 2.3.5
      • Version 2.3.4
      • Version 2.3.3
      • Version 2.3.2
      • Version 2.3.1
      • Version 2.3.0
      • Version 2.1.4
      • Version 2.1.3
      • Version 2.1.1
      • Version 2.0.0
    Change +