Class MappingOptionTriplet
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.triplets.AbstractTriplet
org.apache.fop.afp.modca.triplets.MappingOptionTriplet
- All Implemented Interfaces:
Triplet,Streamable,StructuredData
Specifies the mapping of data object presentation space to object area
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytethe data object is centred, all data that falls within the object area extents will be presented but data that falls outside will not be presentedstatic final byteMigration mapping option: Image point-to-pel.static final byteMigration mapping option: Image point-to-pel with double dot.static final bytethe data object is placed in the upper left corner, all data must be presented within the object area extentsstatic final bytethe data object is placed in the upper left corner, all data that falls within the object area extents will be presented but data that falls outside will not be presentedstatic final byteMigration mapping option: Replicate and trim.static final bytethe data object is centred, aspect ratio is not always preservedstatic final bytethe data object is centred and symmetrically scaled up or down while preserving aspect ratiostatic final byteused to map ip3i print data objectsFields inherited from class org.apache.fop.afp.modca.triplets.AbstractTriplet
idFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTHFields inherited from interface org.apache.fop.afp.modca.triplets.Triplet
AREA_DEFINITION, ATTRIBUTE_QUALIFIER, ATTRIBUTE_VALUE, CHARACTER_ROTATION, CMR_TAG_FIDELITY, CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER, COLOR_FIDELITY, COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR, COLOR_SPECIFICATION, COMMENT, DATA_OBJECT_FONT_DESCRIPTOR, DESCRIPTOR_POSITION, DEVICE_APPEARANCE, ENCODING_SCHEME_ID, EXTENDED_RESOURCE_LOCAL_IDENTIFIER, FINISHING_FIDELITY, FINISHING_OPERATION, FONT_DESCRIPTOR_SPECIFICATION, FONT_FIDELITY, FONT_HORIZONTAL_SCALE_FACTOR, FONT_RESOLUTION_AND_METRIC_TECHNOLOGY, FULLY_QUALIFIED_NAME, LOCALE_SELECTOR, MAPPING_OPTION, MAX_LENGTH, MEASUREMENT_UNITS, MEDIA_EJECT_CONTROL, MEDIA_FIDELITY, MEDIUM_MAP_PAGE_NUMBER, MEDIUM_ORIENTATION, MODCA_INTERCHANGE_SET, OBJECT_AREA_SIZE, OBJECT_BYTE_EXTENT, OBJECT_BYTE_OFFSET, OBJECT_CLASSIFICATION, OBJECT_COUNT, OBJECT_DATE_AND_TIMESTAMP, OBJECT_FUNCTION_SET_SPECIFICATION, OBJECT_OFFSET, OBJECT_STRUCTURED_FIELD_EXTENT, OBJECT_STRUCTURED_FIELD_OFFSET, PAGE_OVERLAY_CONDITIONAL_PROCESSING, PAGE_POSITION_INFORMATION, PARAMETER_VALUE, PRESENTATION_CONTROL, PRESENTATION_SPACE_MIXING_RULE, PRESENTATION_SPACE_RESET_MIXING, RENDERING_INTENT, RESOURCE_LOCAL_IDENTIFIER, RESOURCE_OBJECT_INCLUDE, RESOURCE_SECTION_NUMBER, RESOURCE_USAGE_ATTRIBUTE, TEXT_FIDELITY, TONER_SAVER, UNIVERSAL_DATE_AND_TIMESTAMP, UP3I_FINISHING_OPERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the data length of this structured fieldvoidDataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class org.apache.fop.afp.modca.triplets.AbstractTriplet
getData, getIdMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
POSITION
public static final byte POSITIONthe data object is placed in the upper left corner, all data must be presented within the object area extents- See Also:
-
POSITION_AND_TRIM
public static final byte POSITION_AND_TRIMthe data object is placed in the upper left corner, all data that falls within the object area extents will be presented but data that falls outside will not be presented- See Also:
-
SCALE_TO_FIT
public static final byte SCALE_TO_FITthe data object is centred and symmetrically scaled up or down while preserving aspect ratio- See Also:
-
CENTER_AND_TRIM
public static final byte CENTER_AND_TRIMthe data object is centred, all data that falls within the object area extents will be presented but data that falls outside will not be presented- See Also:
-
IMAGE_POINT_TO_PEL
public static final byte IMAGE_POINT_TO_PELMigration mapping option: Image point-to-pel.- See Also:
-
IMAGE_POINT_TO_PEL_DOUBLE_DOT
public static final byte IMAGE_POINT_TO_PEL_DOUBLE_DOTMigration mapping option: Image point-to-pel with double dot.- See Also:
-
REPLICATE_AND_TRIM
public static final byte REPLICATE_AND_TRIMMigration mapping option: Replicate and trim.- See Also:
-
SCALE_TO_FILL
public static final byte SCALE_TO_FILLthe data object is centred, aspect ratio is not always preserved- See Also:
-
UP3I_PRINT_DATA
public static final byte UP3I_PRINT_DATAused to map ip3i print data objects- See Also:
-
-
Constructor Details
-
MappingOptionTriplet
public MappingOptionTriplet(byte mapValue) Main constructor- Parameters:
mapValue- the mapping option to use
-
-
Method Details
-
getDataLength
public int getDataLength()Returns the data length of this structured field- Returns:
- the data length of this structured field
-
writeToStream
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream- Parameters:
os- the outputsteam stream- Throws:
IOException- an I/O exception of some sort has occurred.
-