public class GUIDisplay extends Object implements Display
Display.BoolValue| Modifier and Type | Field and Description |
|---|---|
boolean |
accelerationAlwaysRedraw |
static boolean |
allowChangeCursor
Flag if we should allow cursor to change
|
int |
crh
used to draw demo cross
|
double |
cropH |
double |
cropW |
double |
cropX |
double |
cropY |
int |
crw
used to draw demo cross
|
int |
crx
used to draw demo cross
|
int |
cry
used to draw demo cross
|
DynamicVectorRenderer |
currentDisplay |
PageOffsets |
currentOffset |
RenderChangeListener |
customRenderChangeListener
Normally null - user object to listen to paint events
|
static boolean |
default_separateCover |
static boolean |
default_turnoverOn |
protected DisplayOffsets |
displayOffsets |
int |
displayRotation
local copies
|
protected double[] |
displayScalingDbl |
int |
displayView
local copies
|
boolean |
ignoreScalingForAcceleration |
protected double |
indent |
int |
insetH |
int |
insetW |
boolean |
isInitialised |
boolean[] |
isRotated |
int |
lastDisplayRotation |
protected int |
lastEnd |
protected int |
lastFormPage |
protected int |
lastIndent
tracks indent so changing to continuous does not disturb display
|
float |
lastScaling |
protected int |
lastStart |
MultiDisplayOptions |
multiDisplayOptions |
float |
oldRotation
any scaling factor being used to convert co-ords into correct values
and to alter image size
|
float |
oldScaling
any scaling factor being used to convert co-ords into correct values
and to alter image size
|
DecoderOptions |
options |
boolean |
overRideAcceleration
flag to switch back to unaccelerate screen if no enough memory for scaling
|
PdfPageData |
pageData |
int |
pageNumber |
int[] |
pageOffsetH
Keep a record of cumulative offsets for SINGLE_PAGE mode
|
int[] |
pageOffsetW
Keep a record of cumulative offsets for SINGLE_PAGE mode
|
protected int |
pageUsedForTransform |
int |
rh |
int |
rw |
int |
rx |
int |
ry |
float |
scaling |
protected GUIThumbnailPanel |
thumbnails |
int |
topH |
int |
topW |
boolean |
useAcceleration
render screen using hardware acceleration
|
CONTINUOUS, CONTINUOUS_FACING, debugLayout, DISPLAY_CENTERED, DISPLAY_LEFT_ALIGNED, FACING, NODISPLAY, PAGEFLOW, PORTFOLIO_DETAIL, PORTFOLIO_TILE, SINGLE_PAGE| Constructor and Description |
|---|
GUIDisplay() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeOtherPages(int pageNumber,
int pageCount) |
void |
disableScreen() |
void |
dispose() |
void |
drawBorder() |
void |
drawCursor(Graphics g,
float scaling) |
void |
drawFacing(Rectangle visibleRect) |
void |
flushPageCaches() |
void |
forceRedraw() |
boolean |
getBoolean(Display.BoolValue option) |
int[] |
getCursorBoxOnScreenAsArray() |
Rectangle |
getDisplayedRectangle() |
Rectangle |
getDisplayedRectangle(boolean isShowing,
Rectangle userAnnot) |
int |
getDisplayRotation() |
int |
getEndPage() |
int[] |
getHighlightedImage() |
double |
getIndent() |
int |
getInsetH() |
int |
getInsetW() |
float |
getOldScaling() |
int[] |
getPageSize(int displayView) |
int |
getRh() |
int |
getRw() |
int |
getRx() |
int |
getRy() |
int |
getStartPage() |
int |
getXCordForPage(int page) |
int |
getYCordForPage(int page) |
int |
getYCordForPage(int page,
float scaling)
used internally by multiple pages
scaling -1 to ignore, -2 to force reset
|
void |
init(float scaling,
int displayRotation,
int pageNumber,
DynamicVectorRenderer currentDisplay,
boolean isInit) |
void |
paintPage(Graphics2D g2,
AcroRenderer formRenderer,
TextLines textLines) |
void |
refreshDisplay() |
void |
resetViewableArea() |
void |
setAcceleration(boolean enable) |
void |
setAccelerationAlwaysRedraw(boolean enable) |
void |
setBoolean(Display.BoolValue option,
boolean value) |
void |
setCurrentDisplay(DynamicVectorRenderer pageView) |
void |
setHighlightedImage(int[] highlightedImage) |
void |
setObjectValue(int type,
Object newHandler)
general method to pass in Objects - only takes RenderChangeListener at present
|
void |
setPageOffsets(int pageNumber)
workout offsets so we can draw pages
|
void |
setPageRotation(int newRotation)
initialise panel and set size to display during updates and update the AffineTransform to new values
|
void |
setPageSize(int pageNumber,
float scaling) |
void |
setScaling(float scaling) |
void |
setThumbnailPanel(GUIThumbnailPanel thumbnails) |
void |
setup(boolean useAcceleration,
PageOffsets currentOffset) |
void |
stopGeneratingPage() |
void |
updateCursorBoxOnScreen(int[] newOutlineRectangle,
int outlineColor,
int pageNumber,
int x_size,
int y_size) |
protected int lastFormPage
protected int lastStart
protected int lastEnd
protected int pageUsedForTransform
protected int lastIndent
protected double indent
public RenderChangeListener customRenderChangeListener
public int rx
public int ry
public int rw
public int rh
protected DisplayOffsets displayOffsets
public DecoderOptions options
public static boolean allowChangeCursor
public final MultiDisplayOptions multiDisplayOptions
public static boolean default_turnoverOn
public static boolean default_separateCover
public DynamicVectorRenderer currentDisplay
public boolean isInitialised
public boolean overRideAcceleration
public boolean useAcceleration
public boolean ignoreScalingForAcceleration
public boolean accelerationAlwaysRedraw
public PageOffsets currentOffset
protected GUIThumbnailPanel thumbnails
public int[] pageOffsetH
public int[] pageOffsetW
public boolean[] isRotated
public int topW
public int topH
public double cropX
public double cropY
public double cropW
public double cropH
public int crx
public int cry
public int crw
public int crh
public int displayRotation
public int displayView
public int lastDisplayRotation
public int insetW
public int insetH
public float scaling
public float lastScaling
public int pageNumber
public float oldScaling
public float oldRotation
public PdfPageData pageData
protected double[] displayScalingDbl
public int getYCordForPage(int page,
float scaling)
getYCordForPage in interface Displaypublic boolean getBoolean(Display.BoolValue option)
getBoolean in interface Displaypublic void setBoolean(Display.BoolValue option, boolean value)
setBoolean in interface Displaypublic void setObjectValue(int type,
Object newHandler)
setObjectValue in interface Displaytype - newHandler - public int[] getPageSize(int displayView)
getPageSize in interface DisplaydisplayView - is of type intpublic void setup(boolean useAcceleration,
PageOffsets currentOffset)
public void setAcceleration(boolean enable)
setAcceleration in interface Displaypublic void setAccelerationAlwaysRedraw(boolean enable)
setAccelerationAlwaysRedraw in interface Displaypublic void setPageSize(int pageNumber,
float scaling)
public void decodeOtherPages(int pageNumber,
int pageCount)
decodeOtherPages in interface Displaypublic void disableScreen()
disableScreen in interface Displaypublic float getOldScaling()
getOldScaling in interface Displaypublic void refreshDisplay()
refreshDisplay in interface Displaypublic void flushPageCaches()
flushPageCaches in interface Displaypublic void init(float scaling,
int displayRotation,
int pageNumber,
DynamicVectorRenderer currentDisplay,
boolean isInit)
public void setThumbnailPanel(GUIThumbnailPanel thumbnails)
setThumbnailPanel in interface Displaypublic void stopGeneratingPage()
stopGeneratingPage in interface Displaypublic int getYCordForPage(int page)
getYCordForPage in interface Displaypublic int getStartPage()
public int getEndPage()
public void setScaling(float scaling)
setScaling in interface Displaypublic void setHighlightedImage(int[] highlightedImage)
setHighlightedImage in interface Displaypublic int[] getHighlightedImage()
getHighlightedImage in interface Displaypublic void drawBorder()
drawBorder in interface Displaypublic int getXCordForPage(int page)
getXCordForPage in interface Displaypublic void setPageOffsets(int pageNumber)
setPageOffsets in interface Displaypublic int[] getCursorBoxOnScreenAsArray()
getCursorBoxOnScreenAsArray in interface Displaypublic void forceRedraw()
forceRedraw in interface Displaypublic void setPageRotation(int newRotation)
setPageRotation in interface Displaypublic void resetViewableArea()
resetViewableArea in interface Displaypublic void paintPage(Graphics2D g2, AcroRenderer formRenderer, TextLines textLines)
public void updateCursorBoxOnScreen(int[] newOutlineRectangle,
int outlineColor,
int pageNumber,
int x_size,
int y_size)
updateCursorBoxOnScreen in interface Displaypublic void drawCursor(Graphics g, float scaling)
drawCursor in interface Displaypublic void drawFacing(Rectangle visibleRect)
drawFacing in interface Displaypublic void setCurrentDisplay(DynamicVectorRenderer pageView)
public int getDisplayRotation()
public int getRx()
public int getRy()
public int getRw()
public int getRh()
public int getInsetW()
public int getInsetH()
public Rectangle getDisplayedRectangle()
getDisplayedRectangle in interface DisplayCopyright © 2017. All rights reserved.