org.jpedal.display.Display Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OpenViewerFX Show documentation
Show all versions of OpenViewerFX Show documentation
Open Source (LGPL) JavaFX PDF Viewer for NetBeans plugin
The newest version!
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* Display.java
* ---------------
*/
package org.jpedal.display;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import org.jpedal.objects.acroforms.AcroRenderer;
import org.jpedal.render.DynamicVectorRenderer;
import org.jpedal.text.TextLines;
public interface Display {
/**
* when no display is set
*/
int NODISPLAY = 0;
/**
* show pages one at a time
*/
int SINGLE_PAGE = 1;
/**
* show all pages
*/
int CONTINUOUS = 2;
/**
* show all pages two at a time
*/
int CONTINUOUS_FACING = 3;
/**
* show pages two at a time
*/
int FACING = 4;
/**
* PageFlowing mode
*/
int PAGEFLOW = 5;
/**
* Portfolio Detail mode
*/
int PORTFOLIO_DETAIL = 6;
/**
* Portfolio Tile mode
*/
int PORTFOLIO_TILE = 7;
int DISPLAY_LEFT_ALIGNED = 1;
int DISPLAY_CENTERED = 2;
double getIndent();
int[] getCursorBoxOnScreenAsArray();
void forceRedraw();
void setPageRotation(int displayRotation);
void resetViewableArea();
void paintPage(Graphics2D g2, AcroRenderer formRenderer, TextLines textLines);
void updateCursorBoxOnScreen(int[] newOutlineRectangle, int outlineColor, int pageNumber, int x_size, int y_size);
void drawCursor(Graphics g, float scaling);
void drawFacing(Rectangle visibleRect);
enum BoolValue {
TURNOVER_ON,
SEPARATE_COVER
}
/**
* flag used in development of layout modes
*/
boolean debugLayout = false;
int[] getPageSize(int displayView);
void decodeOtherPages(int pageNumber, int pageCount);
void stopGeneratingPage();
void refreshDisplay();
Rectangle getDisplayedRectangle();
void disableScreen();
void flushPageCaches();
void init(float scaling, int displayRotation, int pageNumber, DynamicVectorRenderer currentDisplay, boolean isInit);
void drawBorder();
void setup(boolean useAcceleration, PageOffsets currentOffset);
int getYCordForPage(int page);
int getYCordForPage(int page, float scaling);
int getXCordForPage(int currentPage);
void setThumbnailPanel(GUIThumbnailPanel thumbnails);
void setScaling(float scaling);
@SuppressWarnings("UnusedDeclaration")
void setPageOffsets(int page);
void dispose();
void setAcceleration(boolean enable);
void setAccelerationAlwaysRedraw(boolean enable);
void setObjectValue(int type, Object newValue);
int[] getHighlightedImage();
void setHighlightedImage(int[] i);
float getOldScaling();
boolean getBoolean(BoolValue option);
void setBoolean(BoolValue option, boolean value);
}