co.uk.sentinelweb.views.draw.model
Class DrawingElement

java.lang.Object
  extended by co.uk.sentinelweb.views.draw.model.DrawingElement
Direct Known Subclasses:
Drawing, Group, Stroke

public abstract class DrawingElement
extends java.lang.Object


Field Summary
 RectF calculatedBounds
           
 PointF calculatedCentre
           
 PointF calculatedCOG
           
 PointF calculatedDim
           
 java.lang.String className
           
 RectF clipRect
           
 boolean locked
           
 float opacity
           
 boolean visible
           
 
Constructor Summary
DrawingElement()
           
 
Method Summary
 void addNameSpaced(java.lang.String nameSpace, java.lang.String param, java.lang.Object value)
           
abstract  void applyTransform(TransformOperatorInOut t, DrawingElement de)
           
 VecRenderObject delete(VecRenderer r)
           
 DrawingElement duplicate()
           
abstract  DrawingElement duplicate(boolean shallow)
           
 java.lang.String getId()
           
 java.lang.String getInfo()
           
 java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Object>> getNameSpaced()
           
 java.util.HashMap<java.lang.String,java.lang.Object> getNameSpaced(java.lang.String nameSpace)
           
 java.lang.Object getNameSpaced(java.lang.String nameSpace, java.lang.String param)
           
 OnAsyncListener<?> getUpdateListener()
           
 boolean isLocked()
           
 boolean isVisible()
           
 void removeNameSpaced(java.lang.String nameSpace, java.lang.String param)
           
 void setId(java.lang.String id)
           
 void setLocked(boolean locked)
           
 void setNameSpaced(java.lang.String nameSpace, java.util.HashMap<java.lang.String,java.lang.Object> params)
           
 void setUpdateListener(OnAsyncListener<?> updateListener)
           
 void setVisible(boolean visible)
           
abstract  void update(boolean deep, VecRenderer r, UpdateFlags flags)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locked

public boolean locked

visible

public boolean visible

clipRect

public RectF clipRect

className

public java.lang.String className

opacity

public float opacity

calculatedBounds

public RectF calculatedBounds

calculatedCOG

public PointF calculatedCOG

calculatedCentre

public PointF calculatedCentre

calculatedDim

public PointF calculatedDim
Constructor Detail

DrawingElement

public DrawingElement()
Method Detail

duplicate

public DrawingElement duplicate()

duplicate

public abstract DrawingElement duplicate(boolean shallow)

update

public abstract void update(boolean deep,
                            VecRenderer r,
                            UpdateFlags flags)

getUpdateListener

public OnAsyncListener<?> getUpdateListener()

setUpdateListener

public void setUpdateListener(OnAsyncListener<?> updateListener)

isLocked

public boolean isLocked()
Returns:
the locked

setLocked

public void setLocked(boolean locked)
Parameters:
locked - the locked to set

getId

public java.lang.String getId()
Returns:
the id

setId

public void setId(java.lang.String id)
Parameters:
id - the id to set

isVisible

public boolean isVisible()
Returns:
the visible

setVisible

public void setVisible(boolean visible)
Parameters:
visible - the visible to set

getInfo

public java.lang.String getInfo()

getNameSpaced

public java.util.HashMap<java.lang.String,java.util.HashMap<java.lang.String,java.lang.Object>> getNameSpaced()
Returns:

getNameSpaced

public java.util.HashMap<java.lang.String,java.lang.Object> getNameSpaced(java.lang.String nameSpace)
Parameters:
nameSpace -
Returns:

getNameSpaced

public java.lang.Object getNameSpaced(java.lang.String nameSpace,
                                      java.lang.String param)
Parameters:
nameSpace -
param -
Returns:

setNameSpaced

public void setNameSpaced(java.lang.String nameSpace,
                          java.util.HashMap<java.lang.String,java.lang.Object> params)
Parameters:
nameSpace -
params -

addNameSpaced

public void addNameSpaced(java.lang.String nameSpace,
                          java.lang.String param,
                          java.lang.Object value)
Parameters:
nameSpace -
param -
value -

removeNameSpaced

public void removeNameSpaced(java.lang.String nameSpace,
                             java.lang.String param)
Parameters:
nameSpace -
param -

delete

public VecRenderObject delete(VecRenderer r)
Parameters:
r -
Returns:

applyTransform

public abstract void applyTransform(TransformOperatorInOut t,
                                    DrawingElement de)