Package com.storedobject.svg
Class Bar
-
Field Summary
Fields inherited from class com.storedobject.svg.AbstractGroup
children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompute()This method is invoked to perform any necessary computations just before the SVG content is generated.getLabel()doubledoubledoubledoublegetX()Retrieves the X coordinate.doublegetY()Retrieves the Y coordinate.labelGap(double labelGap) length(double length) thickness(double thickness) x(double x) Set the X coordinate.y(double y) Set the Y coordinate.Methods inherited from class com.storedobject.svg.AbstractGroup
children, innerContentMethods inherited from class com.storedobject.svg.Node
attributes, copy, createDocument, equals, escapeXml, extraContent, flipHorizontally, flipHorizontallyAroundOrigin, flipVertically, flipVerticallyAroundOrigin, getCoordinates, getId, getMargin, getSvg, hashCode, id, ID, IDValue, moveTo, moveTo, rotate, rotateAround, rotateAround, rotateAroundCenter, scale, scale, scaleHeightTo, scaleTo, scaleWidthTo, toString, toString, transform, translate, translate
-
Constructor Details
-
Bar
public Bar() -
Bar
public Bar(double length) -
Bar
-
Bar
-
Bar
-
-
Method Details
-
getX
-
getY
-
x
-
y
-
getLabel
-
label
-
getLabelGap
public double getLabelGap() -
labelGap
-
getLength
public double getLength() -
length
-
getThickness
public double getThickness() -
thickness
-
getDirection
-
getLabelDirection
-
getLabelAlignment
-
getLabelStyles
-
getBarStyles
-
compute
protected void compute()Description copied from class:NodeThis method is invoked to perform any necessary computations just before the SVG content is generated.Note: At least coordinates values should be set here properly.
- Overrides:
computein classAbstractGroup<Bar>
-