Class Draw


public class Draw extends MeshCollection
  • Field Details

    • defaultFontId0

      public int defaultFontId0
    • defaultFontId

      public int defaultFontId
  • Constructor Details

    • Draw

      public Draw()
  • Method Details

    • allocMesh

      public void allocMesh(String thisID, Mesh m)
      Overrides:
      allocMesh in class MeshCollection
    • initShape

      public void initShape()
      Overrides:
      initShape in class MeshCollection
    • setProperty

      public void setProperty(String propertyName, Object value, BS bs)
      Specified by:
      setProperty in class Shape
    • setTitle

      protected String[] setTitle(Object value)
      Overrides:
      setTitle in class MeshCollection
    • getPropertyData

      public boolean getPropertyData(String property, Object[] data)
      Overrides:
      getPropertyData in class Shape
      Parameters:
      property -
      data -
      Returns:
      true if serviced
    • getProperty

      public Object getProperty(String property, int index)
      Overrides:
      getProperty in class Shape
      Parameters:
      property -
      index -
      Returns:
      true if serviced
    • clean

      protected void clean()
      Overrides:
      clean in class MeshCollection
    • setModelVisibilityFlags

      public void setModelVisibilityFlags(BS bsModels)
      Overrides:
      setModelVisibilityFlags in class MeshCollection
      Parameters:
      bsModels -
    • checkObjectClicked

      public Map<String,Object> checkObjectClicked(int x, int y, int action, BS bsVisible, boolean drawPicking)
      Overrides:
      checkObjectClicked in class Shape
      Parameters:
      x -
      y -
      action -
      bsVisible -
      drawPicking - TODO
      Returns:
      Hashtable containing information about pt clicked
    • checkObjectHovered

      public boolean checkObjectHovered(int x, int y, BS bsVisible)
      Overrides:
      checkObjectHovered in class Shape
      Parameters:
      x -
      y -
      bsVisible -
      Returns:
      T/F
    • checkObjectDragged

      public boolean checkObjectDragged(int prevX, int prevY, int x, int y, int dragAction, BS bsVisible)
      Overrides:
      checkObjectDragged in class Shape
      Parameters:
      prevX -
      prevY -
      x -
      y -
      dragAction -
      bsVisible -
      Returns:
      T/F
    • isPolygonDisplayable

      public static boolean isPolygonDisplayable(Mesh mesh, int i)
    • is2DPoint

      public static boolean is2DPoint(T3 pt)
    • getShapeDetail

      public Object getShapeDetail()
      Overrides:
      getShapeDetail in class Shape
    • getShapeState

      public String getShapeState()
      Specified by:
      getShapeState in class Shape
    • randomPoint

      public static P3 randomPoint()