org.openbp.cockpit.modeler.figures.generic
Class XBarFigure

java.lang.Object
  extended by CH.ifa.draw.standard.AbstractFigure
      extended by org.openbp.cockpit.modeler.figures.generic.BasicFigure
          extended by org.openbp.cockpit.modeler.figures.generic.XFigure
              extended by org.openbp.cockpit.modeler.figures.generic.XRectangleFigure
                  extended by org.openbp.cockpit.modeler.figures.generic.XBarFigure
All Implemented Interfaces:
CH.ifa.draw.framework.Figure, CH.ifa.draw.util.Storable, java.io.Serializable, java.lang.Cloneable, ChildFigure, Colorizable

public class XBarFigure
extends XRectangleFigure

The bar figure displays one or more horizontal bars.

Author:
Heiko Erhardt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openbp.cockpit.modeler.figures.generic.XRectangleFigure
barHeight, box, frameCount, frameDistance, nBars
 
Fields inherited from class org.openbp.cockpit.modeler.figures.generic.XFigure
DECO_FILLCOLOR2, DECO_FRAMECOLOR, DECO_FRAMESTROKE, descriptor, needUpdatePaint, paint
 
Fields inherited from class org.openbp.cockpit.modeler.figures.generic.BasicFigure
DECO_FILLCOLOR, DECO_OVERLAY
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
Constructor Summary
XBarFigure()
          Default constructor.
 
Method Summary
protected  void drawFigure(java.awt.Graphics g)
          Draws the figure.
protected  void drawFrame(java.awt.Graphics g)
          Draws the frame of the figure.
 
Methods inherited from class org.openbp.cockpit.modeler.figures.generic.XRectangleFigure
basicDisplayBox, basicMoveBy, createRectangularShape, createShape, displayBox, drawAppliances, handles, initialize, placeAdjacent
 
Methods inherited from class org.openbp.cockpit.modeler.figures.generic.XFigure
changed, clone, draw, drawImage, getDefaultFillColor, getDefaultFillColor2, getDefaultFrameColor, getDescriptor, getFillColor2, getFrameColor, getFrameStroke, getImageIcon, getOrientation, requestPaintUpdate, setDescriptor, setFillColor, setFillColor2, setFrameColor, setFrameStroke, setImageIcon, setOrientation, updatePaint
 
Methods inherited from class org.openbp.cockpit.modeler.figures.generic.BasicFigure
decorateValue, getDecorationOwner, getFillColor, getParent, setParent
 
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, canConnect, center, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getAttribute, getZValue, includes, invalidate, isEmpty, listener, moveBy, read, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface CH.ifa.draw.framework.Figure
addFigureChangeListener, addToContainer, canConnect, center, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, figures, findFigureInside, getAttribute, getZValue, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange
 
Methods inherited from interface CH.ifa.draw.util.Storable
read, write
 

Constructor Detail

XBarFigure

public XBarFigure()
Default constructor.

Method Detail

drawFigure

protected void drawFigure(java.awt.Graphics g)
Draws the figure.

Overrides:
drawFigure in class XRectangleFigure
Parameters:
g - Graphics to draw to

drawFrame

protected void drawFrame(java.awt.Graphics g)
Draws the frame of the figure.

Overrides:
drawFrame in class XRectangleFigure
Parameters:
g - Graphics to draw to


Copyright © 2011. All Rights Reserved.