Module org.bzdev.graphics
Package org.bzdev.obnaming.misc
package org.bzdev.obnaming.misc
Common compound-parameter-type classes.
This package contains classes annotated by the @CompoundParmType annotation and represents collections of parameters likely to be generally useful for writing obnaming factory classes.
-
BasicStrokeParm
has a methodBasicStrokeParm.createBasicStroke()
that will create an instance of BasicStroke. This method will return a configured value or a default value. The default value will be null if the constructor is called with a single boolean argument whose value istrue
. In this case null is also returned if the width is set to zero. -
ColorParm
has a methodColorParm.createColor()
that will create an instance of Color. This method will return a configured value or a default value. The default value will be null if ColorParm's constructor is called with no arguments. A configured value will never be null. -
GraphFontParm
has a methodGraphFontParm.createFontParms()
that will create an instance of Graph.FontParms. The default value will be null if the name of the font is null (not the empty string or the string "null") and can be configured by calling GraphFontParm's constructor with a single boolean argument equal totrue
.
-
ClassDescriptionCreate a
BasicStroke
pragmatically.Obnaming factory support class for java.awt.BasicStroke.End cap class.A BasicStrokeParm configured so that, unless the stroke is modified,BasicStrokeParm.createBasicStroke()
will return a stroke whose width is 4.0.Class specifying enumation constants defining how lines are joined.A BasicStrokeParm configured so that, unless the stroke is modified,BasicStrokeParm.createBasicStroke()
will return null (for a zero-width stroke).A BasicStrokeParm configured so that, unless the stroke is modified,BasicStrokeParm.createBasicStroke()
will return a stroke whose width is 1.0.A BasicStrokeParm configured so that, unless the stroke is modified,BasicStrokeParm.createBasicStroke()
will return a stroke whose width is 3.0.A BasicStrokeParm configured so that, unless the stroke is modified,BasicStrokeParm.createBasicStroke()
will return a stroke whose width is 2.0.A BasicStrokeParm configured so that, unless the stroke is modified,BasicStrokeParm.createBasicStroke()
will return a stroke whose width is zero.Factory support class for defining colors.An instance of ColorParm whose default constructor returns an object initialized to the CSS color specification "black".An instance of ColorParm whose default constructor returns an object initialized to the CSS color specification "blue".An instance of ColorParm whose default constructor returns an object initialized to the CSS color specification "green".An instance of ColorParm whose default constructor returns an object initialized to the CSS color specification "red".An instance of ColorParm whose default constructor returns an object initialized to the CSS color specification "WHITE".Class to provide named-object-factory parameters specifying instances of Graph.FontParms.Font style specification.