com.lizardtech.djvu.anno
Class Line

java.lang.Object
  extended by com.lizardtech.djvu.DjVuObject
      extended by com.lizardtech.djvu.anno.Rect
          extended by com.lizardtech.djvu.anno.Line
All Implemented Interfaces:
DjVuInterface, Hyperlink

public class Line
extends Rect

Implements line map areas.


Field Summary
static java.lang.String LINE_TAG
          Tag name for this map type.
 
Fields inherited from class com.lizardtech.djvu.anno.Rect
ARROW_TAG, BGCOLOR_TAG, BORDER_AVIS_TAG, HILITE_TAG, LINE_ARROW_TAG, LINE_CLR_TAG, LINE_WIDTH_TAG, LINECOLOR_TAG, MAP_LINE, MAP_OVAL, MAP_POLY, MAP_RECT, MAP_TEXT, MAPAREA_TAG, NO_BORDER, NO_BORDER_TAG, NO_HILITE, OPACITY_TAG, PUSHPIN_TAG, RECT_TAG, SHADOW_EIN_BORDER, SHADOW_EIN_BORDER_TAG, SHADOW_EOUT_BORDER, SHADOW_EOUT_BORDER_TAG, SHADOW_IN_BORDER, SHADOW_IN_BORDER_TAG, SHADOW_OUT_BORDER, SHADOW_OUT_BORDER_TAG, SOLID_BORDER, SOLID_BORDER_TAG, TARGET_SELF, TEXTCOLOR_TAG, URL_TAG, XOR_BORDER, XOR_BORDER_TAG, XOR_HILITE
 
Fields inherited from class com.lizardtech.djvu.DjVuObject
hasReferences
 
Constructor Summary
Line()
          Creates a new Oval object.
 
Method Summary
static Line createLine(DjVuInterface ref)
          Creates an instance of Text with the options interherited from the specified reference.
 int getMapType()
          Query the map type.
 java.util.Vector getPoints()
          Method generating a list of defining coordinates.
 java.lang.String getShapeName()
          Returns "line"
 Rect init(int x0, int y0, int x1, int y1)
          Changes the line geometry
 
Methods inherited from class com.lizardtech.djvu.anno.Rect
computeArray, contains, createRect, get_shape_name, getBgColor, getBorderColor, getBorderType, getBorderWidth, getBounds, getComment, getHiliteColor, getInfoHeight, getInfoWidth, getLineColor, getLineWidth, getOpacity, getScaledHeight, getScaledWidth, getTarget, getTextColor, getURL, getXCoordinates, getYCoordinates, init, isArrow, isBorderAlwaysVisible, isEmpty, isPushpin, isValid, isVisible, map, move, reset, resize, rotateArea, setArrow, setBgColor, setBorderAlwaysVisible, setBorderColor, setBorderType, setBorderWidth, setComment, setHiliteColor, setLineColor, setLineWidth, setOpacity, setPageSize, setPushpin, setTarget, setTextColor, setURL, setVisible, transform, unmap
 
Methods inherited from class com.lizardtech.djvu.DjVuObject
checkLockTime, create, create, createSoftReference, createWeakReference, getDjVuOptions, getFromReference, invoke, setDjVuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_TAG

public static final java.lang.String LINE_TAG
Tag name for this map type.

See Also:
Constant Field Values
Constructor Detail

Line

public Line()
Creates a new Oval object.

Method Detail

getMapType

public int getMapType()
Query the map type.

Overrides:
getMapType in class Rect
Returns:
MAP_TEXT

createLine

public static Line createLine(DjVuInterface ref)
Creates an instance of Text with the options interherited from the specified reference.

Parameters:
ref - Object to interherit DjVuOptions from.
Returns:
a new instance of Text.

getShapeName

public java.lang.String getShapeName()
Returns "line"

Returns:
LINE_TAG

getPoints

public java.util.Vector getPoints()
Method generating a list of defining coordinates. (default are the opposite corners of the enclosing rectangle)

Overrides:
getPoints in class Rect
Returns:
a vector of points

init

public Rect init(int x0,
                 int y0,
                 int x1,
                 int y1)
Changes the line geometry

Parameters:
x0 - starting x location
y0 - starting y location
x1 - ending x location
y1 - ending y location
Returns:
the initialized shape