|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.draw.AttributeKeys
org.jhotdraw.samples.odg.ODGAttributeKeys
public class ODGAttributeKeys
ODGAttributeKeys.
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jhotdraw.draw.AttributeKeys |
---|
AttributeKeys.Orientation, AttributeKeys.StrokePlacement, AttributeKeys.StrokeType, AttributeKeys.Underfill, AttributeKeys.WindingRule |
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jhotdraw.draw.AttributeKeys |
---|
getFont, getFontStyle, getPerpendicularDrawGrowth, getPerpendicularFillGrowth, getPerpendicularHitGrowth, getStrokeTotalMiterLimit, getStrokeTotalWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
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)
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |