ElegantJ PDF Library Java API Specification v1.1

com.elegantj.pdf
Class MediaBox

java.lang.Object
  extended byjava.awt.geom.RectangularShape
      extended byjava.awt.geom.Rectangle2D
          extended byjava.awt.Rectangle
              extended bycom.elegantj.pdf.MediaBox
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, java.awt.Shape

public class MediaBox
extends java.awt.Rectangle

MediaBox defines a rectangle which specifies the 'natural size' of the page, for example the dimensions of an A4 sheet of paper.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
static MediaBox MEDIA_11x17
          MediaBox defining a page in 11x17 format
static MediaBox MEDIA_a0
          MediaBox defining a page in a0 format
static MediaBox MEDIA_a1
          MediaBox defining a page in a1 format
static MediaBox MEDIA_a10
          MediaBox defining a page in a10 format
static MediaBox MEDIA_a2
          MediaBox defining a page in a2 format
static MediaBox MEDIA_a3
          MediaBox defining a page in a3 format
static MediaBox MEDIA_a4
          MediaBox defining a page in a4 format
static MediaBox MEDIA_a5
          MediaBox defining a page in a5 format
static MediaBox MEDIA_a6
          MediaBox defining a page in a6 format
static MediaBox MEDIA_a7
          MediaBox defining a page in a7 format
static MediaBox MEDIA_a8
          MediaBox defining a page in a8 format
static MediaBox MEDIA_a9
          MediaBox defining a page in a9 format
static MediaBox MEDIA_archA
          MediaBox defining a page in archA format
static MediaBox MEDIA_archB
          MediaBox defining a page in archB format
static MediaBox MEDIA_archC
          MediaBox defining a page in archC format
static MediaBox MEDIA_archD
          MediaBox defining a page in archD format
static MediaBox MEDIA_archE
          MediaBox defining a page in archE format
static MediaBox MEDIA_b0
          MediaBox defining a page in b0 format
static MediaBox MEDIA_b1
          MediaBox defining a page in b1 format
static MediaBox MEDIA_b2
          MediaBox defining a page in b2 format
static MediaBox MEDIA_b3
          MediaBox defining a page in b3 format
static MediaBox MEDIA_b4
          MediaBox defining a page in b4 format
static MediaBox MEDIA_b5
          MediaBox defining a page in b5 format
static MediaBox MEDIA_flsa
          MediaBox defining a page in flsa format
static MediaBox MEDIA_flse
          MediaBox defining a page in flse format
static MediaBox MEDIA_halfletter
          MediaBox defining a page in halfletter format
static MediaBox MEDIA_ledger
          MediaBox defining a page in ledger format
static MediaBox MEDIA_legal
          MediaBox defining a page in legal format
static MediaBox MEDIA_letter
          MediaBox defining a page in letter format
static MediaBox MEDIA_note
          MediaBox defining a page in note format
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
MediaBox(int x, int y, int w, int h)
          Constructs the mediabox with specified x, y, width, height
 
Method Summary
 java.lang.Object clone()
          Returns the clone of this object
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Field Detail

MEDIA_letter

public static final MediaBox MEDIA_letter
MediaBox defining a page in letter format


MEDIA_note

public static final MediaBox MEDIA_note
MediaBox defining a page in note format


MEDIA_legal

public static final MediaBox MEDIA_legal
MediaBox defining a page in legal format


MEDIA_a0

public static final MediaBox MEDIA_a0
MediaBox defining a page in a0 format


MEDIA_a1

public static final MediaBox MEDIA_a1
MediaBox defining a page in a1 format


MEDIA_a2

public static final MediaBox MEDIA_a2
MediaBox defining a page in a2 format


MEDIA_a3

public static final MediaBox MEDIA_a3
MediaBox defining a page in a3 format


MEDIA_a4

public static final MediaBox MEDIA_a4
MediaBox defining a page in a4 format


MEDIA_a5

public static final MediaBox MEDIA_a5
MediaBox defining a page in a5 format


MEDIA_a6

public static final MediaBox MEDIA_a6
MediaBox defining a page in a6 format


MEDIA_a7

public static final MediaBox MEDIA_a7
MediaBox defining a page in a7 format


MEDIA_a8

public static final MediaBox MEDIA_a8
MediaBox defining a page in a8 format


MEDIA_a9

public static final MediaBox MEDIA_a9
MediaBox defining a page in a9 format


MEDIA_a10

public static final MediaBox MEDIA_a10
MediaBox defining a page in a10 format


MEDIA_b0

public static final MediaBox MEDIA_b0
MediaBox defining a page in b0 format


MEDIA_b1

public static final MediaBox MEDIA_b1
MediaBox defining a page in b1 format


MEDIA_b2

public static final MediaBox MEDIA_b2
MediaBox defining a page in b2 format


MEDIA_b3

public static final MediaBox MEDIA_b3
MediaBox defining a page in b3 format


MEDIA_b4

public static final MediaBox MEDIA_b4
MediaBox defining a page in b4 format


MEDIA_b5

public static final MediaBox MEDIA_b5
MediaBox defining a page in b5 format


MEDIA_archE

public static final MediaBox MEDIA_archE
MediaBox defining a page in archE format


MEDIA_archD

public static final MediaBox MEDIA_archD
MediaBox defining a page in archD format


MEDIA_archC

public static final MediaBox MEDIA_archC
MediaBox defining a page in archC format


MEDIA_archB

public static final MediaBox MEDIA_archB
MediaBox defining a page in archB format


MEDIA_archA

public static final MediaBox MEDIA_archA
MediaBox defining a page in archA format


MEDIA_flsa

public static final MediaBox MEDIA_flsa
MediaBox defining a page in flsa format


MEDIA_flse

public static final MediaBox MEDIA_flse
MediaBox defining a page in flse format


MEDIA_halfletter

public static final MediaBox MEDIA_halfletter
MediaBox defining a page in halfletter format


MEDIA_11x17

public static final MediaBox MEDIA_11x17
MediaBox defining a page in 11x17 format


MEDIA_ledger

public static final MediaBox MEDIA_ledger
MediaBox defining a page in ledger format

Constructor Detail

MediaBox

public MediaBox(int x,
                int y,
                int w,
                int h)
Constructs the mediabox with specified x, y, width, height

Parameters:
x - The x coordinate for mediabox
y - The x yoordinate for mediabox
w - The w width for mediabox
h - The h width for mediabox
Method Detail

clone

public java.lang.Object clone()
Returns the clone of this object

Returns:
The clone of this object

ElegantJ PDF Library Java API Specification v1.1

For any feedback, suggestion, or query, please revert back to support@elegantjpdf.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjpdf.com
All Rights Reserved.