com.lizardtech.djvu.anno
Class Oval

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

public class Oval
extends Rect

Implements elliptical map areas. The only supported types of border are NO_BORDER, XOR_BORDER and SOLID_BORDER. Its contents can not be highlighted either.


Field Summary
static java.lang.String OVAL_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
Oval()
          Creates a new Oval object.
 
Method Summary
 boolean contains(int x, int y)
          Check if the point is inside the hyperlink area
static Oval createOval(DjVuInterface ref)
          Creates an instance of Oval with the options interherited from the specified reference.
 int getMapType()
          Query the map type.
 java.lang.String getShapeName()
          Returns "oval"
 boolean isValid()
          Checks if the object is OK.
 
Methods inherited from class com.lizardtech.djvu.anno.Rect
computeArray, createRect, get_shape_name, getBgColor, getBorderColor, getBorderType, getBorderWidth, getBounds, getComment, getHiliteColor, getInfoHeight, getInfoWidth, getLineColor, getLineWidth, getOpacity, getPoints, getScaledHeight, getScaledWidth, getTarget, getTextColor, getURL, getXCoordinates, getYCoordinates, init, isArrow, isBorderAlwaysVisible, isEmpty, isPushpin, 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

OVAL_TAG

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

See Also:
Constant Field Values
Constructor Detail

Oval

public Oval()
Creates a new Oval object.

Method Detail

getMapType

public int getMapType()
Query the map type.

Overrides:
getMapType in class Rect
Returns:
MAP_OVAL

createOval

public static Oval createOval(DjVuInterface ref)
Creates an instance of Oval with the options interherited from the specified reference.

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

getShapeName

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

Returns:
QVAL_TAG

isValid

public boolean isValid()
Checks if the object is OK.

Overrides:
isValid in class Rect
Returns:
true if valid

contains

public boolean contains(int x,
                        int y)
Check if the point is inside the hyperlink area

Overrides:
contains in class Rect
Parameters:
x - horizontal position
y - vertical position
Returns:
true if the given point is inside the hyperlink area