Class Labels


public class Labels extends AtomShape
  • Field Details

    • strings

      public String[] strings
    • formats

      public String[] formats
    • bgcolixes

      public short[] bgcolixes
    • fids

      public int[] fids
    • offsets

      public int[] offsets
    • bsFontSet

      public BS bsFontSet
    • bsBgColixSet

      public BS bsBgColixSet
    • defaultOffset

      public int defaultOffset
    • defaultAlignment

      public int defaultAlignment
    • defaultZPos

      public int defaultZPos
    • defaultFontId

      public int defaultFontId
    • defaultColix

      public short defaultColix
    • defaultBgcolix

      public short defaultBgcolix
    • defaultPaletteID

      public byte defaultPaletteID
    • defaultPointer

      public int defaultPointer
    • zeroFontId

      public int zeroFontId
  • Constructor Details

    • Labels

      public Labels()
  • Method Details

    • initShape

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

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

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

      public void putLabel(int i, Text text)
    • getLabel

      public Text getLabel(int i)
    • putBox

      public void putBox(int i, float[] boxXY)
    • getBox

      public float[] getBox(int i)
    • setAtomClickability

      public void setAtomClickability()
      Overrides:
      setAtomClickability in class AtomShape
    • checkObjectClicked

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

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

      public short getColix2(int i, Atom atom, boolean isBg)