Class DefaultExtendedCodeAreaLayoutProfile
- java.lang.Object
-
- org.exbin.bined.swing.extended.layout.DefaultExtendedCodeAreaLayoutProfile
-
- All Implemented Interfaces:
org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
@ParametersAreNonnullByDefault public class DefaultExtendedCodeAreaLayoutProfile extends java.lang.Object implements org.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
Layout profile for extended code area.
-
-
Constructor Summary
Constructors Constructor Description DefaultExtendedCodeAreaLayoutProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
createCopy
@Nonnull public DefaultExtendedCodeAreaLayoutProfile createCopy()
Copy constructor.- Specified by:
createCopy
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
- Returns:
- copy of profile
-
computeHalfCharsPerRow
public int computeHalfCharsPerRow(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeHalfCharsPerRow
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeBytesPerRow
public int computeBytesPerRow(int halfCharsPerPage, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeBytesPerRow
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeRowsPerDocument
public long computeRowsPerDocument(org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeRowsPerDocument
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computePositionByte
public int computePositionByte(int rowHalfCharPosition, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computePositionByte
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeFirstByteHalfCharPos
public int computeFirstByteHalfCharPos(int byteOffset, org.exbin.bined.CodeAreaSection section, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeFirstByteHalfCharPos
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeLastByteHalfCharPos
public int computeLastByteHalfCharPos(int byteOffset, org.exbin.bined.CodeAreaSection section, org.exbin.bined.extended.ExtendedCodeAreaStructure structure)
- Specified by:
computeLastByteHalfCharPos
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeMovePosition
@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)
- Specified by:
computeMovePosition
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeCodeCharacterPosition
public int computeCodeCharacterPosition(long positionX, int characterWidth, int bytesPerRow, org.exbin.bined.CodeType codeType)
-
computeClosestCharacterPosition
public int computeClosestCharacterPosition(long positionX, int characterWidth, int bytesPerRow, org.exbin.bined.CodeType codeType)
-
createPositionIterator
@Nonnull public org.exbin.bined.extended.layout.PositionIterator createPositionIterator(org.exbin.bined.CodeType codeType, org.exbin.bined.basic.CodeAreaViewMode viewMode, int bytesPerRow)
- Specified by:
createPositionIterator
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computePixelPosition
public int computePixelPosition(int codeCharPosition, int characterWidth, org.exbin.bined.basic.CodeAreaViewMode viewMode, org.exbin.bined.CodeType codeType, int bytesPerRow)
-
getSpaceSizeTypeBefore
@Nonnull public org.exbin.bined.extended.layout.SpaceType getSpaceSizeTypeBefore(int byteOffset, int characterWidth)
-
computePositionX
public int computePositionX(int halfCharPosition, int characterWidth, int halfSpaceWidth)
- Specified by:
computePositionX
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
isShowHeader
public boolean isShowHeader()
- Specified by:
isShowHeader
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
setShowHeader
public void setShowHeader(boolean showHeader)
- Specified by:
setShowHeader
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
getBottomHeaderSpace
public int getBottomHeaderSpace()
-
setBottomHeaderSpace
public void setBottomHeaderSpace(int bottomHeaderSpace)
-
getLeftRowPositionSpace
public int getLeftRowPositionSpace()
-
setLeftRowPositionSpace
public void setLeftRowPositionSpace(int leftRowPositionSpace)
-
isShowRowPosition
public boolean isShowRowPosition()
- Specified by:
isShowRowPosition
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
setShowRowPosition
public void setShowRowPosition(boolean showRowPosition)
- Specified by:
setShowRowPosition
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
getTopHeaderSpace
public int getTopHeaderSpace()
-
setTopHeaderSpace
public void setTopHeaderSpace(int topHeaderSpace)
-
getRightRowPositionSpace
public int getRightRowPositionSpace()
-
setRightRowPositionSpace
public void setRightRowPositionSpace(int rightRowPositionSpace)
-
getHalfSpaceGroupSize
public int getHalfSpaceGroupSize()
-
setHalfSpaceGroupSize
public void setHalfSpaceGroupSize(int halfSpaceGroupSize)
-
getSpaceGroupSize
public int getSpaceGroupSize()
-
setSpaceGroupSize
public void setSpaceGroupSize(int spaceGroupSize)
-
getDoubleSpaceGroupSize
public int getDoubleSpaceGroupSize()
-
setDoubleSpaceGroupSize
public void setDoubleSpaceGroupSize(int doubleSpaceGroupSize)
-
isHalfShiftedUsed
public boolean isHalfShiftedUsed()
- Specified by:
isHalfShiftedUsed
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeRowPositionAreaWidth
public int computeRowPositionAreaWidth(int characterWidth, int rowPositionLength)
- Specified by:
computeRowPositionAreaWidth
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeHeaderAreaHeight
public int computeHeaderAreaHeight(int fontHeight)
- Specified by:
computeHeaderAreaHeight
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeHeaderOffsetPositionY
public int computeHeaderOffsetPositionY()
- Specified by:
computeHeaderOffsetPositionY
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
computeRowPositionOffsetPositionX
public int computeRowPositionOffsetPositionX()
- Specified by:
computeRowPositionOffsetPositionX
in interfaceorg.exbin.bined.extended.layout.ExtendedCodeAreaLayoutProfile
-
-