public class ODGAttributeKeys extends AttributeKeys
The descriptions of the attributes have been taken from the Open Document Specification version 1.1. http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-v1.1.pdf
AttributeKeys.Alignment, AttributeKeys.Orientation, AttributeKeys.StrokePlacement, AttributeKeys.StrokeType, AttributeKeys.Underfill, AttributeKeys.WindingRule
Modifier and Type | Field and Description |
---|---|
static AttributeKey<Gradient> |
FILL_GRADIENT
Specifies the fill gradient of a ODG figure.
|
static AttributeKey<java.lang.Double> |
FILL_OPACITY
Specifies the fill opacity of a ODG figure.
|
static AttributeKey<ODGConstants.FillStyle> |
FILL_STYLE
Specifies the fill style of a ODG figure.
|
static AttributeKey<java.lang.String> |
NAME
The attribute draw:name assigns a name to the drawing shape.
|
static AttributeKey<java.lang.Double> |
OPACITY
Specifies the overall opacity of a ODG figure.
|
static AttributeKey<Gradient> |
STROKE_GRADIENT
Specifies the stroke gradient of a ODG figure.
|
static AttributeKey<java.lang.Double> |
STROKE_OPACITY
Specifies the stroke opacity of a ODG figure.
|
static AttributeKey<ODGConstants.StrokeStyle> |
STROKE_STYLE
Specifies the stroke style of a ODG figure.
|
BEZIER_PATH_LAYOUTER, CANVAS_FILL_COLOR, CANVAS_FILL_OPACITY, CANVAS_HEIGHT, CANVAS_WIDTH, CHILD_ALIGNMENT, COMPOSITE_ALIGNMENT, DECORATOR_INSETS, END_DECORATION, FILL_COLOR, FILL_UNDER_STROKE, FONT_BOLD, FONT_FACE, FONT_ITALIC, FONT_SIZE, FONT_UNDERLINE, IS_STROKE_DASH_FACTOR, IS_STROKE_MITER_LIMIT_FACTOR, LAYOUT_INSETS, ORIENTATION, PATH_CLOSED, START_DECORATION, STROKE_CAP, STROKE_COLOR, STROKE_DASH_PHASE, STROKE_DASHES, STROKE_INNER_WIDTH_FACTOR, STROKE_JOIN, STROKE_MITER_LIMIT, STROKE_PLACEMENT, STROKE_TYPE, STROKE_WIDTH, supportedAttributeMap, supportedAttributes, TEXT, TEXT_ALIGNMENT, TEXT_COLOR, TEXT_SHADOW_COLOR, TEXT_SHADOW_OFFSET, TRANSFORM, UNCLOSED_PATH_FILLED, WINDING_RULE
Modifier and Type | Method and Description |
---|---|
static java.awt.Paint |
getFillPaint(Figure f)
Gets the fill paint for the specified figure based on the attributes
FILL_GRADIENT, FILL_OPACITY, FILL_PAINT and the bounds of the figure.
|
static java.awt.Stroke |
getStroke(Figure f) |
static java.awt.Paint |
getStrokePaint(Figure f)
Gets the stroke paint for the specified figure based on the attributes
STROKE_GRADIENT, STROKE_OPACITY, STROKE_PAINT and the bounds of the figure.
|
static void |
setDefaults(Figure f)
Sets ODG default values.
|
getFont, getFontStyle, getHitStroke, getPerpendicularDrawGrowth, getPerpendicularFillGrowth, getPerpendicularHitGrowth, getStrokeTotalMiterLimit, getStrokeTotalWidth
public static final AttributeKey<java.lang.String> NAME
public static final AttributeKey<java.lang.Double> OPACITY
public static final AttributeKey<ODGConstants.FillStyle> FILL_STYLE
public static final AttributeKey<Gradient> FILL_GRADIENT
public static final AttributeKey<java.lang.Double> FILL_OPACITY
public static final AttributeKey<ODGConstants.StrokeStyle> STROKE_STYLE
public static final AttributeKey<Gradient> STROKE_GRADIENT
public static final AttributeKey<java.lang.Double> STROKE_OPACITY
public static java.awt.Paint getFillPaint(Figure f)
public static java.awt.Paint getStrokePaint(Figure f)
public static java.awt.Stroke getStroke(Figure f)
public static void setDefaults(Figure f)