java2dx by
jTEM

de.jtem.java2dx.modelling
Class SubdividedPolygon2D

java.lang.Object
  extended by de.jtem.java2dx.modelling.ModellingTool2D
      extended by de.jtem.java2dx.modelling.DraggablePolygon2D
          extended by de.jtem.java2dx.modelling.SubdividedPolygon2D
All Implemented Interfaces:
ModellingTool, Serializable, Cloneable, EventListener, ChangeListener

public class SubdividedPolygon2D
extends DraggablePolygon2D

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.jtem.java2dx.modelling.ModellingTool2D
ModellingTool2D.TranslationTool
 
Field Summary
protected  PolygonSubdivider subdivider
           
 
Constructor Summary
SubdividedPolygon2D()
           
SubdividedPolygon2D(int defaultPointCount, int defaultArrangement, double defaultTranslationX, double defaultTranslationY, double defaultRadius, boolean closed, boolean drawingPoints, double maximalCurvatureLength, double maximalEdgeLength, int subdivisionMethod)
           
SubdividedPolygon2D(SubdividedPolygon2D p)
           
 
Method Summary
 SubdividedPolygon2D clone()
           
 double getMaximalCurvatureLength()
           
 double getMaximalEdgeLength()
           
 int getSubdivisionMethod()
           
 void recallModelState()
           
 void setMaximalCurvatureLength(double l)
           
 void setMaximalEdgeLength(double l)
           
 void setSubdivisionMethod(int subdivisionMethod)
           
 void storeModelState()
           
protected  void updateFromModel()
          Respond to a change of the model state.
protected  void updateModelFromController()
           
 
Methods inherited from class de.jtem.java2dx.modelling.DraggablePolygon2D
getActionTree, getControlPoints, getControlScene, getDefaultArrangement, getDefaultPointCount, getDefaultRadius, getDefaultTranslationX, getDefaultTranslationY, getModel, isDrawingPoints, reset, setDefaultArrangement, setDefaultPointCount, setDefaultRadius, setDefaultTranslationX, setDefaultTranslationY, setDrawingPoints, setMenuDragListener, translate, updateViewFromModel
 
Methods inherited from class de.jtem.java2dx.modelling.ModellingTool2D
addActionTree, addChangeListener, fireModelChange, getMenu, getMenuDragListener, getModelType, getName, getViewScene, moveTo, removeChangeListener, setModelType, setName, stateChanged
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subdivider

protected PolygonSubdivider subdivider
Constructor Detail

SubdividedPolygon2D

public SubdividedPolygon2D()

SubdividedPolygon2D

public SubdividedPolygon2D(int defaultPointCount,
                           int defaultArrangement,
                           double defaultTranslationX,
                           double defaultTranslationY,
                           double defaultRadius,
                           boolean closed,
                           boolean drawingPoints,
                           double maximalCurvatureLength,
                           double maximalEdgeLength,
                           int subdivisionMethod)

SubdividedPolygon2D

public SubdividedPolygon2D(SubdividedPolygon2D p)
Method Detail

clone

public SubdividedPolygon2D clone()
Specified by:
clone in interface ModellingTool
Overrides:
clone in class DraggablePolygon2D

getMaximalCurvatureLength

public double getMaximalCurvatureLength()

getMaximalEdgeLength

public double getMaximalEdgeLength()

getSubdivisionMethod

public int getSubdivisionMethod()

recallModelState

public void recallModelState()
Specified by:
recallModelState in interface ModellingTool
Overrides:
recallModelState in class DraggablePolygon2D

setMaximalCurvatureLength

public void setMaximalCurvatureLength(double l)

setMaximalEdgeLength

public void setMaximalEdgeLength(double l)

setSubdivisionMethod

public void setSubdivisionMethod(int subdivisionMethod)

storeModelState

public void storeModelState()
Specified by:
storeModelState in interface ModellingTool
Overrides:
storeModelState in class DraggablePolygon2D

updateFromModel

protected void updateFromModel()
Description copied from class: ModellingTool2D
Respond to a change of the model state.

Overrides:
updateFromModel in class DraggablePolygon2D

updateModelFromController

protected void updateModelFromController()
Overrides:
updateModelFromController in class DraggablePolygon2D

java2dx by
jTEM

jTEM