
package com.jfixby.r3.api.ui.unit.raster;

import com.jfixby.cmns.api.geometry.CanvasPosition;
import com.jfixby.cmns.api.geometry.ORIGIN_RELATIVE_HORIZONTAL;
import com.jfixby.cmns.api.geometry.ORIGIN_RELATIVE_VERTICAL;
import com.jfixby.cmns.api.geometry.Rectangle;
import com.jfixby.cmns.api.geometry.RectangleCorner;

public interface ProjectableComponent extends CanvasComponent {

	Rectangle shape ();

	double getWidth ();

	double getHeight ();

	void setSize (double width, double height);

	void setWidth (double width);

	void setHeight (double height);

	void setOriginRelative (ORIGIN_RELATIVE_HORIZONTAL orX, ORIGIN_RELATIVE_VERTICAL orY);

	void setOriginRelativeX (ORIGIN_RELATIVE_HORIZONTAL orX);

	void setOriginRelativeY (ORIGIN_RELATIVE_VERTICAL orY);

	// public void setOriginAbsolute(double origin_x, double origin_y);

	void setOriginRelative (double ORIGIN_RELATIVE_HORIZONTAL, double ORIGIN_RELATIVE_VERTICAL);

	void setOriginRelativeX (double ORIGIN_RELATIVE_HORIZONTAL);

	void setOriginRelativeY (double ORIGIN_RELATIVE_VERTICAL);

	public Rectangle setupShape (Rectangle other);

	RectangleCorner getTopLeftCorner ();

	RectangleCorner getTopRightCorner ();

	RectangleCorner getBottomLeftCorner ();

	RectangleCorner getBottomRightCorner ();

	CanvasPosition getPosition ();
}

@@ -616,13 +616,38 @@
 TAL 
-orX, 
+ORIGIN_RELATIVE_HORIZONTAL,%0A%09%09
 ORIG
@@ -663,27 +663,48 @@
 VE_VERTICAL 
-orY
+ORIGIN_RELATIVE_VERTICAL
 );%0A%0A%09void se
@@ -752,11 +752,34 @@
 TAL 
-orX
+ORIGIN_RELATIVE_HORIZONTAL
 );%0A%0A
@@ -833,11 +833,32 @@
 CAL 
-orY
+ORIGIN_RELATIVE_VERTICAL
 );%0A%0A

fix naming