gishur.x2.gui
Class DisplayXPoint

java.lang.Object
  |
  +--gishur.gui2.DrawAtom
        |
        +--gishur.gui2.DrawObject
              |
              +--gishur.gui2.DisplayObject
                    |
                    +--gishur.gui2.DisplayInteractiveObject
                          |
                          +--gishur.gui2.DisplayInteractiveModel
                                |
                                +--gishur.x2.gui.DisplayXObject
                                      |
                                      +--gishur.x2.gui.DisplayXPoint

public class DisplayXPoint
extends DisplayXObject

This class is a simple visualization class for the geometric points represented by the XPoint class of the core package. The appeareance of the point is highly configurable by the use of painter classes of the type BasePointPainter. The point painter is not locally stored - it is stored in the properties. So it is possible to visualize large point sets with this class with almost no overhead. If no point painter is specified via properties, a new point painter of the type PointPainter will be created and stored at the local properties list of this object. To use another point painter defined in properties higher in the hierachy, one has to remove the automatically created property entry at this object.

Properties Summary
Used Prefix Meaning
xpoint Prefix for all properties used at this class and at the used PointPainter for the point (see property style at this class).
Key Value Type Default value Meaning
style gishur.x2.gui.Style None The Style-object which defines the shape of this DisplayXPoint and which creates the Painters.

Created Painters
Painting order Name Type Tasks
1 point Painter The Painter managing the drawing of this DisplayXPoint

Version:
1.0
Author:
Thomas Wolf

Fields inherited from class gishur.gui2.DisplayInteractiveObject
ACTIVE, ACTIVE1, ACTIVE2, ACTIVE3, ACTIVE4, NORMAL, SELECTED
 
Fields inherited from class gishur.gui2.DrawAtom
BLOCK_REPAINT, MARK_RECALC, MARK_REPAINT, MARK_SIZE, REPAINT, UNBLOCK_REPAINT, USER_STATES_FIRST, USER_STATES_MASK
 
Constructor Summary
DisplayXPoint(ModelController model)
          Constructs a new DisplayXPoint and connects it with the given ModelController (that must have a XPoint object as source object (model).
DisplayXPoint(XPoint source)
          Constructs a new DisplayXPoint and connects it with the given XPoint via the construction of a new ModelController.
 
Method Summary
protected  ElementTransform createElementTransform()
          Creates a new element transformation object.
protected  void recalculate(RenderContext context, PropertyStatusReader properties)
          Forces the DrawAtom to recalculate its representation.
 
Methods inherited from class gishur.x2.gui.DisplayXObject
screenX2Transformation
 
Methods inherited from class gishur.gui2.DisplayInteractiveModel
controller, setContoller, setSource, source
 
Methods inherited from class gishur.gui2.DisplayInteractiveObject
activate, activate, active, checkActiveElement, deactivate, elementTransform, refreshPropertyStatus, select, selected, setActiveElement, setSupportActivation, setSupportElementTransform, setSupportSelection, supportActivation, supportElementTransform, supportSelection, unselect
 
Methods inherited from class gishur.gui2.DisplayObject
addEventListener, calculateDockingPoint, calculateDockingPoint, next, parent, prev, processDrawEvent, removeEventListener
 
Methods inherited from class gishur.gui2.DrawObject
addDrawDependency, addPainter, blockRepaint, checkState, checkStateCleared, child, clear, clearCache, clearState, dependency, dirty, disableEvents, draw, draw, enableEvents, ensureRecalculate, findPainter, firstPainter, fullscreen, hide, hide, insert, levelMask, levelUsed, locate, makeDirty, makeDirty, next, nextPainter, prepeareRenderContext, prev, processEvent, propertyReader, recalculate, remove, removeDrawDependency, repaint, screenTransformation, setFullscreen, setPaintBeforeMembers, setScreenTransformation, setState, show, show, state, state, unblockRepaint, unblockRepaint, visible
 
Methods inherited from class gishur.gui2.DrawAtom
addProperties, collectHits, dispatchEvent, displayManager, drawComponent, getBounds, getLocalProperty, getProperty, getProperty, getRequiredProperty, preprocessEvent, processMessage, properties, removeProperty, sendEvent, sendMessage, setBounds, setPropertiesTo, setProperty, setProperty, setProperty, setProperty, toString, toString, toStringDetail, toTreeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisplayXPoint

public DisplayXPoint(ModelController model)
Constructs a new DisplayXPoint and connects it with the given ModelController (that must have a XPoint object as source object (model).
Parameters:
model - the ModelController that controls the source.

DisplayXPoint

public DisplayXPoint(XPoint source)
Constructs a new DisplayXPoint and connects it with the given XPoint via the construction of a new ModelController.
Parameters:
source - the source object.
Method Detail

recalculate

protected void recalculate(RenderContext context,
                           PropertyStatusReader properties)
Forces the DrawAtom to recalculate its representation. This method will only be called, if it became dirty via a call to the DrawObject.makeDirty(boolean) method or something has happened, that causes all DrawAtoms to recalculate their representation. This method should only be called by the render system.
Overrides:
recalculate in class DrawObject
Parameters:
context - the RenderContext to use
properties - the PropertyStatusReader to use for reading properties

createElementTransform

protected ElementTransform createElementTransform()
Creates a new element transformation object. This method will be called by DisplayInteractiveObject.elementTransform() and should be overwritten by subclasses in order to support element transformation objects correctly.
Overrides:
createElementTransform in class DisplayInteractiveObject
Returns:
new element transformation object for this DisplayObject.