| java.lang.Object org.openlaszlo.iv.flash.api.FlashItem org.openlaszlo.iv.flash.api.shape.StrightEdgeRecord
StrightEdgeRecord | final public class StrightEdgeRecord extends FlashItem (Code) | | Straight-edge record.
The straight-edge record 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 line:
- General lines.
- Horizontal lines.
- Vertical lines.
General lines store both X & Y deltas, the horizontal and vertical
lines store only the X delta and Y delta respectively.
author: Dmitry Skavish |
GENERAL_LINE | final public static int GENERAL_LINE(Code) | | |
HORIZ_LINE | final public static int HORIZ_LINE(Code) | | |
VERT_LINE | final public static int VERT_LINE(Code) | | |
StrightEdgeRecord | public StrightEdgeRecord()(Code) | | |
getDeltaX | public int getDeltaX()(Code) | | |
getDeltaY | public int getDeltaY()(Code) | | |
getType | public int getType()(Code) | | |
newHLine | public static StrightEdgeRecord newHLine(int deltaX)(Code) | | Creates horizontal line
Parameters: deltaX - new X delta horizontal line |
newLine | public static StrightEdgeRecord newLine(int deltaX, int deltaY)(Code) | | Creates general line
Parameters: deltaX - new X delta Parameters: deltaY - new Y delta general line |
newVLine | public static StrightEdgeRecord newVLine(int deltaY)(Code) | | Creates vertical line
Parameters: deltaY - new Y delta vertical line |
setDeltaX | public void setDeltaX(int deltaX)(Code) | | |
setDeltaY | public void setDeltaY(int deltaY)(Code) | | |
setType | public void setType(int type)(Code) | | |
|
|