|
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.svg.SVGAttributeKeys
public class SVGAttributeKeys
SVGAttributeKeys.
Nested Class Summary | |
---|---|
static class |
SVGAttributeKeys.TextAlign
|
static class |
SVGAttributeKeys.TextAnchor
|
Nested classes/interfaces inherited from class org.jhotdraw.draw.AttributeKeys |
---|
AttributeKeys.Orientation, AttributeKeys.StrokePlacement, AttributeKeys.StrokeType, AttributeKeys.Underfill, AttributeKeys.WindingRule |
Field Summary | |
---|---|
static AttributeKey<java.lang.String> |
DESCRIPTION
Specifies the description of an SVG drawing. |
static AttributeKey<Gradient> |
FILL_GRADIENT
Specifies the fill gradient of a SVG figure. |
static AttributeKey<java.lang.Double> |
FILL_OPACITY
Specifies the fill opacity of a SVG figure. |
static AttributeKey<java.lang.String> |
LINK
Specifies a link. |
static AttributeKey<java.lang.Double> |
OPACITY
Specifies the overall opacity of a SVG figure. |
static AttributeKey<Gradient> |
STROKE_GRADIENT
Specifies the stroke gradient of a SVG figure. |
static AttributeKey<java.lang.Double> |
STROKE_OPACITY
Specifies the stroke opacity of a SVG figure. |
static AttributeKey<SVGAttributeKeys.TextAlign> |
TEXT_ALIGN
Specifies the text alignment of a SVGText figure. |
static AttributeKey<SVGAttributeKeys.TextAnchor> |
TEXT_ANCHOR
Specifies the text anchor of a SVGText figure. |
static AttributeKey<java.lang.String> |
TITLE
Specifies the title of an SVG drawing. |
static AttributeKey<java.awt.Color> |
VIEWPORT_FILL
Specifies the viewport-fill of an SVG viewport. |
static AttributeKey<java.lang.Double> |
VIEWPORT_FILL_OPACITY
Specifies the viewport-fill-opacity of an SVG viewport. |
Constructor Summary | |
---|---|
SVGAttributeKeys()
|
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 double |
getPerpendicularHitGrowth(Figure f)
Returns the distance, that a Rectangle needs to grow (or shrink) to make hit detections on a shape as specified by the FILL_UNDER_STROKE and STROKE_POSITION attributes of a figure. |
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 SVG default values. |
Methods inherited from class org.jhotdraw.draw.AttributeKeys |
---|
getFont, getFontStyle, getPerpendicularDrawGrowth, getPerpendicularFillGrowth, getStroke, 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> TITLE
public static final AttributeKey<java.lang.String> DESCRIPTION
public static final AttributeKey<java.awt.Color> VIEWPORT_FILL
public static final AttributeKey<java.lang.Double> VIEWPORT_FILL_OPACITY
public static final AttributeKey<SVGAttributeKeys.TextAnchor> TEXT_ANCHOR
public static final AttributeKey<SVGAttributeKeys.TextAlign> TEXT_ALIGN
public static final AttributeKey<Gradient> FILL_GRADIENT
public static final AttributeKey<java.lang.Double> FILL_OPACITY
public static final AttributeKey<java.lang.Double> OPACITY
public static final AttributeKey<Gradient> STROKE_GRADIENT
public static final AttributeKey<java.lang.Double> STROKE_OPACITY
public static final AttributeKey<java.lang.String> LINK
Constructor Detail |
---|
public SVGAttributeKeys()
Method Detail |
---|
public static java.awt.Paint getFillPaint(Figure f)
public static java.awt.Paint getStrokePaint(Figure f)
public static void setDefaults(Figure f)
public static double getPerpendicularHitGrowth(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 |