@ParametersAreNonnullByDefault
public class DefaultExtendedCodeAreaLayoutProfile
extends java.lang.Object
implements org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
| Constructor and Description |
|---|
DefaultExtendedCodeAreaLayoutProfile() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeBytesPerRow(int halfCharsPerPage,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure) |
int |
computeClosestCharacterPosition(long positionX,
int characterWidth,
int bytesPerRow,
org.exbin.bined.CodeType codeType) |
int |
computeCodeCharacterPosition(long positionX,
int characterWidth,
int bytesPerRow,
org.exbin.bined.CodeType codeType) |
int |
computeFirstByteHalfCharPos(int byteOffset,
org.exbin.bined.CodeAreaSection section,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure) |
int |
computeHalfCharsPerRow(org.exbin.bined.extended.ExtendedCodeAreaStructure structure) |
int |
computeHeaderAreaHeight(int fontHeight) |
int |
computeHeaderOffsetPositionY() |
int |
computeLastByteHalfCharPos(int byteOffset,
org.exbin.bined.CodeAreaSection section,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure) |
org.exbin.bined.CodeAreaCaretPosition |
computeMovePosition(org.exbin.bined.CodeAreaCaretPosition position,
org.exbin.bined.basic.MovementDirection direction,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure,
int rowsPerPage) |
int |
computePixelPosition(int codeCharPosition,
int characterWidth,
org.exbin.bined.basic.CodeAreaViewMode viewMode,
org.exbin.bined.CodeType codeType,
int bytesPerRow) |
int |
computePositionByte(int rowHalfCharPosition,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure) |
int |
computePositionX(int halfCharPosition,
int characterWidth,
int halfSpaceWidth) |
int |
computeRowPositionAreaWidth(int characterWidth,
int rowPositionLength) |
int |
computeRowPositionOffsetPositionX() |
long |
computeRowsPerDocument(org.exbin.bined.extended.ExtendedCodeAreaStructure structure) |
DefaultExtendedCodeAreaLayoutProfile |
createCopy()
Copy constructor.
|
org.exbin.bined.extended.layout.PositionIterator |
createPositionIterator(org.exbin.bined.CodeType codeType,
org.exbin.bined.basic.CodeAreaViewMode viewMode,
int bytesPerRow) |
int |
getBottomHeaderSpace() |
int |
getDoubleSpaceGroupSize() |
int |
getHalfSpaceGroupSize() |
int |
getLeftRowPositionSpace() |
int |
getRightRowPositionSpace() |
int |
getSpaceGroupSize() |
org.exbin.bined.extended.layout.SpaceType |
getSpaceSizeTypeBefore(int byteOffset,
int characterWidth) |
int |
getTopHeaderSpace() |
boolean |
isHalfShiftedUsed() |
boolean |
isShowHeader() |
boolean |
isShowRowPosition() |
void |
setBottomHeaderSpace(int bottomHeaderSpace) |
void |
setDoubleSpaceGroupSize(int doubleSpaceGroupSize) |
void |
setHalfSpaceGroupSize(int halfSpaceGroupSize) |
void |
setLeftRowPositionSpace(int leftRowPositionSpace) |
void |
setRightRowPositionSpace(int rightRowPositionSpace) |
void |
setShowHeader(boolean showHeader) |
void |
setShowRowPosition(boolean showRowPosition) |
void |
setSpaceGroupSize(int spaceGroupSize) |
void |
setTopHeaderSpace(int topHeaderSpace) |
public DefaultExtendedCodeAreaLayoutProfile()
@Nonnull public DefaultExtendedCodeAreaLayoutProfile createCopy()
createCopy in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeHalfCharsPerRow(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
computeHalfCharsPerRow in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeBytesPerRow(int halfCharsPerPage,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
computeBytesPerRow in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic long computeRowsPerDocument(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
computeRowsPerDocument in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computePositionByte(int rowHalfCharPosition,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
computePositionByte in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeFirstByteHalfCharPos(int byteOffset,
org.exbin.bined.CodeAreaSection section,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
computeFirstByteHalfCharPos in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeLastByteHalfCharPos(int byteOffset,
org.exbin.bined.CodeAreaSection section,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
computeLastByteHalfCharPos in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile@Nonnull
public org.exbin.bined.CodeAreaCaretPosition computeMovePosition(org.exbin.bined.CodeAreaCaretPosition position,
org.exbin.bined.basic.MovementDirection direction,
org.exbin.bined.extended.ExtendedCodeAreaStructure structure,
int rowsPerPage)
computeMovePosition in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeCodeCharacterPosition(long positionX,
int characterWidth,
int bytesPerRow,
org.exbin.bined.CodeType codeType)
public int computeClosestCharacterPosition(long positionX,
int characterWidth,
int bytesPerRow,
org.exbin.bined.CodeType codeType)
@Nonnull
public org.exbin.bined.extended.layout.PositionIterator createPositionIterator(org.exbin.bined.CodeType codeType,
org.exbin.bined.basic.CodeAreaViewMode viewMode,
int bytesPerRow)
createPositionIterator in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computePixelPosition(int codeCharPosition,
int characterWidth,
org.exbin.bined.basic.CodeAreaViewMode viewMode,
org.exbin.bined.CodeType codeType,
int bytesPerRow)
@Nonnull
public org.exbin.bined.extended.layout.SpaceType getSpaceSizeTypeBefore(int byteOffset,
int characterWidth)
public int computePositionX(int halfCharPosition,
int characterWidth,
int halfSpaceWidth)
computePositionX in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic boolean isShowHeader()
isShowHeader in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic void setShowHeader(boolean showHeader)
setShowHeader in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int getBottomHeaderSpace()
public void setBottomHeaderSpace(int bottomHeaderSpace)
public int getLeftRowPositionSpace()
public void setLeftRowPositionSpace(int leftRowPositionSpace)
public boolean isShowRowPosition()
isShowRowPosition in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic void setShowRowPosition(boolean showRowPosition)
setShowRowPosition in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int getTopHeaderSpace()
public void setTopHeaderSpace(int topHeaderSpace)
public int getRightRowPositionSpace()
public void setRightRowPositionSpace(int rightRowPositionSpace)
public int getHalfSpaceGroupSize()
public void setHalfSpaceGroupSize(int halfSpaceGroupSize)
public int getSpaceGroupSize()
public void setSpaceGroupSize(int spaceGroupSize)
public int getDoubleSpaceGroupSize()
public void setDoubleSpaceGroupSize(int doubleSpaceGroupSize)
public boolean isHalfShiftedUsed()
isHalfShiftedUsed in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeRowPositionAreaWidth(int characterWidth,
int rowPositionLength)
computeRowPositionAreaWidth in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeHeaderAreaHeight(int fontHeight)
computeHeaderAreaHeight in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeHeaderOffsetPositionY()
computeHeaderOffsetPositionY in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfilepublic int computeRowPositionOffsetPositionX()
computeRowPositionOffsetPositionX in interface org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile