Top Inners Constructors Methods
com.openhtmltopdf.css.parser.property

public Class PrimitiveBackgroundPropertyBuilders

extends Object
Class Inheritance
Annotations
@WebDoc:https://github.com/danfickle/openhtmltopdf/wiki/Big-CSS-reference#background-properties
Imports
java.util.ArrayList, .Arrays, .BitSet, .Collections, .List, .Objects, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.parser.CSSParseException, .CSSPrimitiveValue, .CSSValue, .PropertyValue, .Token, com.openhtmltopdf.css.parser.property.PrimitivePropertyBuilders.GenericColor, com.openhtmltopdf.css.sheet.PropertyDeclaration, com.openhtmltopdf.util.WebDoc, .WebDocLocations

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
private abstract static class
private abstract static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static BitSet
setOf(IdentValue... val)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrimitiveBackgroundPropertyBuildersback to summary
public PrimitiveBackgroundPropertyBuilders()

Method Detail

setOfback to summary
private static BitSet setOf(IdentValue... val)
com.openhtmltopdf.css.parser.property back to summary

public Class PrimitiveBackgroundPropertyBuilders.BackgroundAttachment

extends MultipleIdentValue
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected BitSet
Inherited from com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleIdentValue:
processValue

Constructor Detail

BackgroundAttachmentback to summary
public BackgroundAttachment()

Method Detail

getAllowedback to summary
protected BitSet getAllowed()

Implements abstract com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleIdentValue.getAllowed.

Annotations
@Override
com.openhtmltopdf.css.parser.property back to summary

public Class PrimitiveBackgroundPropertyBuilders.BackgroundColor

extends GenericColor
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.openhtmltopdf.css.parser.property.PrimitivePropertyBuilders.GenericColor:
buildDeclarations

Constructor Detail

BackgroundColorback to summary
public BackgroundColor()
com.openhtmltopdf.css.parser.property back to summary

public Class PrimitiveBackgroundPropertyBuilders.BackgroundImage

extends MultipleBackgroundValueBuilder
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected List<PropertyValue>
Inherited from com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder:
allowsTwoValueItemsbuildDeclarationsprocessValues

Constructor Detail

BackgroundImageback to summary
public BackgroundImage()

Method Detail

processValueback to summary
protected List<PropertyValue> processValue(CSSName cssName, PropertyValue value)

Implements abstract com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.processValue.

Annotations
@Override
com.openhtmltopdf.css.parser.property back to summary

public Class PrimitiveBackgroundPropertyBuilders.BackgroundPosition

extends MultipleBackgroundValueBuilder
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
private void
checkIdentPosition(CSSName cssName, IdentValue firstIdent, IdentValue secondIdent)

private PropertyValue
private BitSet
private float
protected List<PropertyValue>
protected List<PropertyValue>
Inherited from com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder:
buildDeclarations

Constructor Detail

BackgroundPositionback to summary
public BackgroundPosition()

Method Detail

allowsTwoValueItemsback to summary
protected boolean allowsTwoValueItems()

Overrides com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.allowsTwoValueItems.

Annotations
@Override
checkIdentPositionback to summary
private void checkIdentPosition(CSSName cssName, IdentValue firstIdent, IdentValue secondIdent)
createValueForIdentback to summary
private PropertyValue createValueForIdent(IdentValue ident)
getAllowedback to summary
private BitSet getAllowed()
getPercentForIdentback to summary
private float getPercentForIdent(IdentValue ident)
processValueback to summary
protected List<PropertyValue> processValue(CSSName cssName, PropertyValue first)

Implements abstract com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.processValue.

Annotations
@Override
processValuesback to summary
protected List<PropertyValue> processValues(CSSName cssName, PropertyValue first, PropertyValue second)

Overrides com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.processValues.

Annotations
@Override
com.openhtmltopdf.css.parser.property back to summary

public Class PrimitiveBackgroundPropertyBuilders.BackgroundRepeat

extends MultipleIdentValue
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected BitSet
Inherited from com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleIdentValue:
processValue

Constructor Detail

BackgroundRepeatback to summary
public BackgroundRepeat()

Method Detail

getAllowedback to summary
protected BitSet getAllowed()

Implements abstract com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleIdentValue.getAllowed.

Annotations
@Override
com.openhtmltopdf.css.parser.property back to summary

public Class PrimitiveBackgroundPropertyBuilders.BackgroundSize

extends MultipleBackgroundValueBuilder
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final BitSet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
protected List<PropertyValue>
protected List<PropertyValue>
Inherited from com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder:
buildDeclarations

Field Detail

ALL_ALLOWEDback to summary
private static final BitSet ALL_ALLOWED

Constructor Detail

BackgroundSizeback to summary
public BackgroundSize()

Method Detail

allowsTwoValueItemsback to summary
protected boolean allowsTwoValueItems()

Overrides com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.allowsTwoValueItems.

Annotations
@Override
processValueback to summary
protected List<PropertyValue> processValue(CSSName cssName, PropertyValue first)

Implements abstract com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.processValue.

Annotations
@Override
processValuesback to summary
protected List<PropertyValue> processValues(CSSName cssName, PropertyValue first, PropertyValue second)

Overrides com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.processValues.

Annotations
@Override
com.openhtmltopdf.css.parser.property back to summary

private abstract Class PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder

extends AbstractPropertyBuilder
Class Inheritance
Known Direct Subclasses
com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.BackgroundImage, com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.BackgroundSize, com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.BackgroundPosition, com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleIdentValue

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected boolean
public List<PropertyDeclaration>
buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed)

Implements com.openhtmltopdf.css.parser.property.PropertyBuilder.buildDeclarations.

Builds a list of PropertyDeclaration objects for the CSS property cssName.

protected abstract List<PropertyValue>
protected List<PropertyValue>
Inherited from com.openhtmltopdf.css.parser.property.AbstractPropertyBuilder:
buildDeclarationscheckAngleTypecheckForbidInheritcheckIdentcheckIdentLengthNumberOrPercentTypecheckIdentLengthOrPercentTypecheckIdentOrColorTypecheckIdentOrIntegerTypecheckIdentOrLengthTypecheckIdentOrNumberTypecheckIdentOrStringcheckIdentOrURITypecheckIdentTypecheckInheritAllcheckInheritAllowedcheckIntegercheckLengthOrPercentTypecheckLengthTypecheckNumberTypecheckValiditycheckValueCountcheckValueCountcopyOfisLengthisLengthHelper

Constructor Detail

MultipleBackgroundValueBuilderback to summary
private MultipleBackgroundValueBuilder()

Method Detail

allowsTwoValueItemsback to summary
protected boolean allowsTwoValueItems()
buildDeclarationsback to summary
public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed)

Implements com.openhtmltopdf.css.parser.property.PropertyBuilder.buildDeclarations.

Doc from com.openhtmltopdf.css.parser.property.PropertyBuilder.buildDeclarations.

Builds a list of PropertyDeclaration objects for the CSS property cssName. values must contain CSSPrimitiveValue objects.

Annotations
@Override
processValueback to summary
protected abstract List<PropertyValue> processValue(CSSName cssName, PropertyValue value)
processValuesback to summary
protected List<PropertyValue> processValues(CSSName cssName, PropertyValue val1, PropertyValue val2)
com.openhtmltopdf.css.parser.property back to summary

private abstract Class PrimitiveBackgroundPropertyBuilders.MultipleIdentValue

extends MultipleBackgroundValueBuilder
Class Inheritance
Known Direct Subclasses
com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.BackgroundRepeat, com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.BackgroundAttachment

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected abstract BitSet
protected List<PropertyValue>
Inherited from com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder:
allowsTwoValueItemsbuildDeclarationsprocessValues

Constructor Detail

MultipleIdentValueback to summary
private MultipleIdentValue()

Method Detail

getAllowedback to summary
protected abstract BitSet getAllowed()
processValueback to summary
protected List<PropertyValue> processValue(CSSName cssName, PropertyValue value)

Implements abstract com.openhtmltopdf.css.parser.property.PrimitiveBackgroundPropertyBuilders.MultipleBackgroundValueBuilder.processValue.

Annotations
@Override