public class StraightEdgeRecord extends EdgeRecord
StraightEdgeRecord
stores the edge as an X-Y delta. The delta is
added to the current drawing position, and this becomes the new drawing
position. The edge is rendered between the old and new drawing positions.
Straight edge records support three types of lines:
Modifier and Type | Class and Description |
---|---|
static class |
StraightEdgeRecord.LineType
Type of line.
|
ShapeRecord.ShapeRecordType
MAX_DELTA_IN_TWIPS
Constructor and Description |
---|
StraightEdgeRecord() |
StraightEdgeRecord(int deltaX,
int deltaY) |
Modifier and Type | Method and Description |
---|---|
int |
getDeltaX() |
int |
getDeltaY() |
StraightEdgeRecord.LineType |
getLineType()
Get line type.
|
int |
getNumBits()
Get number of bits required to store delta x/y.
|
void |
setDelta(int deltaX,
int deltaY) |
getShapeRecordType, getTypeFlag
public StraightEdgeRecord()
public StraightEdgeRecord(int deltaX, int deltaY)
public int getDeltaX()
public int getDeltaY()
public void setDelta(int deltaX, int deltaY)
public int getNumBits()
public StraightEdgeRecord.LineType getLineType()
Copyright © 2016 The Apache Software Foundation. All rights reserved.